Posted by

Downer, a simple Markdown editor

So I recently released my application Downer to the Mac App Store. It’s a simple, minimalistic and powerful markdown editor. It sports a tabbed interface and has a “dual-view” layout, one editor pane where you type and one preview pane where you get a live preview of the document ( you can turn either off, if one of them is bothering you).

Today version 1.1 has been published and it adds a rich text editor, in which you get a small preview inline. Like bold, italic and strikethrough will be just that in the editor pane. Headers will be bold, to make them stand out more and to make them more discoverable. Hyperlinks will also be made clickable and opens in your default web browser. I’ve changed the markdown lib to use Sunrise, which in turn adds support for things like fenced code blocks and not only that, but syntax colored fenced code blocks!

Next up will probably be iCloud and Dropbox syncing of documents.

Be sure to grab Downer from the Mac App Store today!

ViewPager 1.2

My ViewPager module has now reached version 1.2 and is pending in the Appcelerator Marketplace.
Update:
Now live in the Marketplace!

What’s new you ask?

Made quite a few changes “under the hood”, fixed a few bugs and hopefully made some smaller performance boost.

The “major” thing in this version are the added events. You can register three kind of events to the pager.

pageChange

pager.addEventListener("pageChange", function (e) {
    Ti.API.debug("page changed from " + e.from + " to " + e.to);
});

pageScroll

pager.addEventListener("pageScroll", function(e) {
    Ti.API.debug("pageScroll page: " + e.page + ", offset: " + e.offset + ", offsetPixels: " + e.offsetPx);
});

pageState

pager.addEventListener("pageState", function (e) {
    Ti.API.debug("page " + e.page + " changed state to " + e.state + " = " + e.stateString);
});

I’ve also added a bunch of properties (some getters and some setter). Like:

length – Get the number of pages in the pager
currentPage – Get the currently showing page
initalPage – Set the page to be the displayed when showing the pager

All the properties you can set on creation time can now also be set using properties. They’re named the same as the ones you already can set. If they are font or padding, just add the word before e.g. fontColor, fontSize, paddingLeft, etc.

The demo project has been updated.

I’ve also uploaded the demo application on Google Play which will make it easier for folks to try it before they buy it :)

Happy days.