May
12
2012
In Praise of Markdown

I hate word-processors. They are the spawn of the devil, for anyone of an artistic temperament. Ugly, bloated and stinking of corporate dullness, they sit there, sucking the very creativity out of you. Every time someone sends me a Word document, a bit more of my soul withers and dies. And it’s just as bad when I have to write up some kind of formal document myself. Even though I’ve eschewed Microsoft and its evil bug-ridden virus-infested software for years, I still feel the bile rise in my throat when I fire up the equally ugly-stick-beaten freebie alternative, NeoOffice, on my mac.

Quite apart from the fugliness, the launch times measured in ice-ages and the general stinkiness of word-processors, I hate using the damned things. I hate their stupid impenetrable style menus. I hate the way they seem to switch fonts willy-nilly. I hate the way pasted in text never formats up the same as existing text. I hate their stupid use of fucking tables. I hate the way they make the lovely practice of crafting words and sentences feel like having your teeth extracted, without anaesthetic. In short, I hate them.

If any of the above rings a bell with you, then meet Markdown.

Markdown [created by Apple pundit John Gruber] is a really easy to learn syntax for formatting [or ‘marking up’. Do you see what he did there?] text, which can then be converted into PDFs, HTML etc. You can write Markdown in any text editor, so no need to fire up some huge bloated word-processor, and there are also some nice looking dedicated Markdown editors, which make writing a pleasure again.

More on that later, but first let’s take a look at this Markdown syntax itself. I said it was easy to learn and, if you’ve been frequenting internet forums and the like for any length of time, you probably already know some markdown –although you might not know that you know it!

Ever seen anyone on a forum use asterisks to *emphasise* some text? Well, that’s Markdown. Most forum software doesn’t understand Markdown, so just shows those asterisks as asterisks but, with forum software that did understand Markdown, or working in a text editor that understands markdown; instead of those asterisks, you’d see italic text. It’s really that simple. with Markdown, instead of having to pick through stupid style menus, or highlight text and apply formatting, you just stick the appropriate punctuation at the beginning and end of the word, line of text or paragraph and, when you export to PDF, or HTML, or whatever, Markdown automatically converts that to nicely formatted text.

Some simple examples: showing the syntax and what it does:

One asterisk gives you *italic text* — One asterisk gives you italic text

One underscore gives you _italic text_ too – One underscore gives you italic text too

Two asterisks give you **bold text** – Two asterisks give you bold text

Two undersores give you __bold text__ too – Two underscores give you bold text too

Hash symbols give you headings in various sizes. Markdown follows the HTML convention that size 1 is the biggest and size 6 the smallest:

######A Size Six Header######

A Size Six Header

#####A Size Five Header#####

A Size Five Header

####A Size Four Header####

A Size Four Header

###A Size Three Header###

A Size Three Header

##A Size Two Header##

A Size Two Header

#A Size One Header#

A Size One Header

If you need to use some of those horrible bullet point lists, beloved of Word document monkeys, you can do that in Markdown too. Just put each item on a separate line and insert an asterisk followed by a space at the start, if you want a bullet point [ie. unordered] list and a number plus full stop and space, if you want a numbered [ie. ordered] list. Like so:

Unordered list:

* dog
* cat
* albatross

gives you

  • dog
  • cat
  • albatross

Ordered list:

1. dog
2. cat
3. albatross

gives you

  1. dog
  2. cat
  3. albatross

If you need to embed images, or add links [handy when you’re composing a blog post, or otherwise generating text for use on the web], Markdown can do that too. The syntax is slightly more clunky here but not too onerous [and should be pretty familiar to anyone who’s ever edited an article on Wikipedia:

To make a normal link, just enclose the text which you want to make into a link in square brackets and then immediately follow this with the actual link URL in normal brackets. So:

[Click here for the beeb](http://bbc.co.uk) gives you this: Click here for the beeb

The syntax for embedding images is similar, with the addition of an exclamation mark at the start. In the case of an image, the text in the square brackets is optional [though you still need the brackets]. If supplied, that text will become a caption under the image.

No caption:

![](http://www.throup.org.uk/images/doctor_who/bbc_1986.png)

Caption:

![An old BBC logo](http://www.throup.org.uk/images/doctor_who/bbc_1986.png)

An old BBC logo
An old BBC logo

Well, there’s a quick run through on the basics of Markdown syntax. As you can see, it’s pretty simple and, I reckon, a lot easier to knock out than working with a clunky word-processor. But you might still be wondering what’s the point. Why learn this [admittedly simple] syntax, when we can just use fugly old Word anyway? Well, here are a few benefits:

  • Accessibility –Since Markdown is just plain text with asterisks, hashes etc added in, you can write it in any text editor. You don’t need no ‘steenking’ office suite. Markdown files can be saved with a .txt extension, so any app which can read text files can open them. Compare that with Microsoft Office, where different versions can’t even open other versions of Word documents, never mind word-processor documents from other office suites, such as iWork or Open Office.

  • Re-usability –Since a Markdown file is just plain text, it doesn’t have all the formatting crud embedded in it that proprietary word-processor documents do. Therefore it can easily be converted or output into different formats. Byword, the markdown editor I’m using to compose this post [yes I will come onto software in a minute!] allows me to export what I’m writing here as either HTML, or a nicely formatted up PDF. Daedalus, another one I use also does PDF and HTML but, in addition, allows you to export your Markdown documents as ePub format, which is the most widely used eBook format. Not bad eh? a web-page, a PDF, or an eBook, all from the one document –which can be created or edited in any text editor.

OK. I’ve already waffled on a lot longer than I meant to, but let’s wind this up with a quick look at some nice software apps, which make working with Markdown even easier:

Byword

This is my favourite Markdown editor. It comes in OSX and iOS flavours. so you can use it on your mac and your iPhone or iPad. Since it also integrates with Dropbox, you can work on your Byword docs on any of your Apple gadgets. You can get the iOS app on offer for £1,99 at the moment and [seeing as its a universal app] that means you get both the iPhone and iPad versions for that. The OSX version is £6,99 at the time of writing.

Byword, running on my iPad. Note the extra bar it adds above the keypad, offering easy access to things like asterisks and brackets[although, for some weird reason, not to the hash symbol]. You can also swipe the bar left and right to reveal other tools, such as word count, image embed, etc:

Byword has a preview markdown* button, which is handy for showing you that your document is going to look like you intended:

The Markdown preview. Yes, I did remember the image syntax properly, after all!

Choice of export formats. HTML, PDF, or copy HTML –handy for pasting into blog posts.

Daedalus

Daedalus is my second choice Markdown editor. It’s available for iOS only [so no integration with OSX] for £2,99 at the time of writing. It also integrates with Dropbox, to help you move your stuff between iPhone and iPad. Daedalus Touch, to give it its full name is arguably more polished looking than Byword. Daedalus’s creators make a big thing about doing away with folders and files. Instead Daedalus organises your creations into Stacks and Sheets of paper [ie. folders and files]. But, credit where it’s due, it does look nice and slick. Here’s the Stacks view, showing all my Stacks [ie. folders] of Sheets [ie. files]

Pinch or double-tap on a Stack and it opens up to reveal the Sheets inside. Pinch or double-tap on a sheet to open it for editing:

Daedalus also adds a bar across the top of the keyboard, giving access to commonly used Markdown symbols. The buttons on the Daedalus bar act as popups, with more choices nested inside and are also customiseable:

Daedalus also has more export options than Byword:

And more preference settings:

As well as a built-in look-up function, for doing basic researching from within the interface. I haven’t used this yet though. It seems a bit gimmicky to me, when I can easily switch to a full-featured web browser and back

On the whole, I think Daedalus is the more elegant, better featured and slicker-looking app, but it has two major drawbacks which keep it second choice behind Byword for me. The first, I have already mentioned: Daedalus has no OSX version, so it’s not as integrated across all my gadgets as Byword. Secondly, Daedalus doesn’t offer a preview function, which seems like an unforgiveable oversight on the developers’ part. The only way to see what your Markdown looks like is to export it as a PDF, open that and then, if you need to make any changes, go back and edit the original –and then repeat the whole process again. It’s a horribly clunky way to go about things, for an app which is otherwise so well thought out.

Well, there you have it folks. A brief introduction to the nerdy-but-accessible world of Markdown. If you hate word-processors as much as I do, why not give it a go. You might like it.

Being an Apple ‘fanboi’ of long standing [I got my first mac way back in ’93] I love my shiny iPhone and iPad. But one bugbear I have with these gadgets is the way that Apple makes it so difficult to get stuff on and off them, without either using only Apple apps, like the execrable iTunes or using clumsy workarounds such as emailing files back and forward as attachments.

So here are a few goodies I’ve discovered, over the years, which will help make this process a bit easier. First up, I’ll give Apple’s own iCloud offering a mention, seeing as it does have some good features.

iCloud

Apple’s built-in cloud storage is a pretty easy way to get files to and from your iOS gadgets, providing you don’t mind being forced to use Apple software for the entire process. I use it to synchronise my Address Book, iCal calendar and info from a few apps, which don’t need too much storage –iCloud gives you 5GB for free, with more available at pretty ungenerous rates.

The reason I find iCloud annoying and have had to look for additional alternatives lies with PhotoStream. This is a handy feature, whereby the last 1000 photos you’ve taken on your iOS gadgets are automatically stored in iCloud. In fact, it turned out to be a bit of a life-saver a few weeks back, when the missus realised she’d deleted a load of photos off her iPhone, that she needed for a college project: luckily they were all still in her PhotoStream on iCloud.

The problem with iCloud is that to get photos off it and onto your mac, you need to be using either iPhoto or Aperture [Apple’s two photo management tools]. Given that I’m already using Adobe Lightroom to manage my photos, this is a major annoyance. Both iPhoto and Aperture are hefty downloads and in my opinion Aperture [the supposed ‘Pro’ offering] is nowhere near as good as Lightroom, so I don’t see the point in installing a huge lump of crappy bloatware, just to allow me to download the odd photo to my comp.

Hence the quest to find out what else was out there.

Dropbox

There can’t be many people about who haven’t heard of Dropbox but, just in case, here’s a quick run down: Dropbox gives you a free 2GB Dropbox folder of online storage, which appears in your Finder sidebar and automatically synchronises over WiFi across all your computers and iOS gadgets. Dropbox was originally intended as an online backup and a means of synchronising your files across, say, your work and home computers, but its availability on iOS makes it equally useful for getting files onto or off your iPhone/iPad: just shove them in your Dropbox and pick them up at the other end.

Because Dropbox has been around for so long and is so well-known, you’ll find that a lot of iOS apps already support saving to and opening from Dropbox directly but, even for those that don’t, you can always open the Dropbox app, tap and hold on the file in question and wait for the Open in… menu to pop up, to open that file in any app which thinks it can handle it.

If you want more than the measley 2GB storage you get for free, Dropbox have paid plans, going up to 100GB and beyond. But one nice thing they do is a referrals system, whereby you can earn 500MB extra storage for yourself and anyone you refer. So, if you sign up with my link below, you’ll get an extra 500MB free [and so will I, so it’s all good!]

Dropbox

SugarSync

SugarSync is pretty similar to Dropbox in the way it works and synchronises across your mac and iOS devices. The main difference is that, where Dropbox creates a special new Dropbox folder on your mac, into which you have to drag anything you want to synchronise or access from your iPhone/iPad; SugarSync allows you to choose a folder or folders that already exist on your mac and use those as your synchronised folders.

SugarSync offers a more generous 5GB free, when you sign up. However, it’s not as popular as Dropbox, so not as many iOS apps support open from / save to SugarSync, as do with Dropbox. But again, Open in… makes this pretty much a non-issue. SugarSync also allow you to earn extra storage [usually 125MB at a time], by completing ‘tasks’ such as installing the mobile app, making a file available via a shared link etc. As with Dropbox, you can also earn 500MB for referring a friend, who subsequently signs up. Here’s my referral link, if you want to sign up and ‘spread the joy’:

SugarSync

Droplr

One real annoyance I had with trying to get real work done on my iPad was the absolute turd-fest that is trying to work with Tumblr on iOS. I’ve tried about three different Tumblr apps over the years and they all sucked the arse of Beelzebubb. The biggest annoyance, which they all seem to share, being the inability to add photos into a text post.

That’s where Droplr comes in. Droplr doesn’t have any of the online backup connotations that Dropbox or SugarSync do. It’s billed as simply being an easy way to move stuff about from one device to another. You only get a teensy-weensy 1GB of storage with the free version and there is talk of it being ad-supported, though I’m not quite sure how this works, or you can upgrade to 100GB storage for $3/month, which I make about £1,87. Not too shabby.

I’ve not explored Droplr’s potential for moving round files yet, but have been using it as a way of adding multiple pictures into text posts, while writing on the iPad. This is doable thanks to a really cool feature of Droplr’s handling of images:

When you upload a file to Droplr, you get a link to that file, which you can then use, or give to someone else, to download that file again on another device. However, with uploaded images, if you add a plus sign to the end of the link then, instead of working as a link to the file, it actually embeds the image itself in any web page you use it on, which means you can use this trick to add images into Tumblr posts, written on iOS, provided you upload the images to Droplr first.

Here’s what I mean. Here’s one of the images I used in my Starsky & Hutch review, which I wrote on my iPad:

http://d.pr/i/fXFw

As you can see, if I write the link normally, you just see a link to the file, back on Droplr. However, if I add a plus sign to the end of it, you see the actual image embedded right here in this post:

Pretty sneaky, eh? [And, as I’m writing this very article on my iPad, all the other images were added in the same way].

sign up here: Droplr –No referral schemes, in this case. It is what it is.

Well, that’s my round up of a couple of the ways you can get some nice free extra storage, get files onto and off your iPhone or iPad and also sneakily get round not being able to add photos into Tumblr text posts, when composing on iOS.

Tune in same time next week, when I’ll be showing you how to build a fully functional nuclear submarine out of old milk cartons and string!

I’ve been racking my brain for a week or two now, trying to remember the name, web address [anything!] of a site I came across a while back, whereby you sign up with them as an illustrator and [subject to being accepted] you get to illustrate eBooks for iPad, from a selection they sell on iTunes. I thought it might be of interest to Vanessa in particular, but also to some of the rest of you, who enjoy a bit of illustration, on the sly.

Anyway, purely by chance, I came across the link to the site in an old post on this very self-same blog. I knew I’d mentioned it before *somewhere*!

So, here it is: Pictorical

Disclaimers:

1: The above link takes you to the signup page and includes a referral code from me [They say you’ll get accepted quicker, if you refer other people].

2: I’ve had no dealings with Pictorical at all, other than signing up myself. So read the small print and make sure you know what the deal is, before committing yourself to any work. This post is just to flag up Pictorical’s existence. It is *not* an endorsement.

This is a really nice idea. In essence:

Pictorical are a publishing house, who sell ebooks for iPad. You apply to register with them as an artist and –provided they like your illustration style– they sign you up and you choose from their list of available books and illustrate it.  When it’s done, they sell it as an ebook and you [as the artist] get half the profits.

Applications are closed at the moment, but it might be one to keep an eye on for the future.

More info