Blogging about software using Textmate

04 Apr 2012, 1 minute read

I’m trying to force myself to be a better contributor to the software development community, and part of that is writing up my rough notes each time I solve an interesting technical problem.

To do that I’m using this Wordpress blog, and Textmate because it makes me far more likely to write the article in the first place. It also solves a problem I’ve had a few times where formatting or source is changed once you upload the article, and by keeping a local copy for the draft I’ve always got something to go back to.

The only problem then is posting source code, which this post is simple test for. If the following works:

then source code formatting works from Textmate, and on to the next challenge!

To blog to Wordpress using Textmate, you first need to add your blog to the bundle’s settings. Once you’ve done that, Ctrl-Shift-Alt-B will tell Textmate to treat your document as a Markdown blog post. From there I’ve added the following:

Title: Blogging about software using Textmate
Slug: blogging-about-software-using-textmate

I’ve then added source code using the great SyntaxHighlighter plugin by wrapping the code in sourcecode tags.

Finally I’ve posted this article to the blog using Ctrl-Command-P. Onwards.


Discuss!

Was this post useful? Why not help others find it by sharing on twitter. While you're there, get in touch and let me know what you think!

Downloading TV series with BitTorrent: getting The Daily Show and The Colbert Report in the UK Cleaning up if-else regex matches in Perl with given-when

Hi, I'm Ryan

I care about code, building great teams and the community. I run Slate Horse but I'm still a full-stack developer. Previously co-organiser of JSOxford and OxRUG.


Get in touch