I use MarsEdit4 for my blog posts. It allows me to write offline and post content to my WordPress site.

I want to write solely in markdown which I do and that’s great. If I need to use any extensions of my website I have to manually type the HTML code for them. One such is Enlighter code highlighter.

<pre class="EnlighterJSRAW" data-enlighter-language="yaml"> </pre>

I like what it does for my blog and as such I want to use it. But typing it all the time is painful.

Hotkeys for success

Enter MarsEdit 4 macros. Formatting macros allow for pre-configured snippets to be applied to your writing to help speed and ease content creation.

In MarsEdit 4 hit Format > Customise and in the menu his the + icon


After hitting + you get the following menu:


This will bind the output of the example code snippet at the start of the post to Shift+CMD+M. This has made it much easier for me to add code snippets.

When the blog is posted Markdown is converted into HTML and rendered as normal. Easy done and happy days. If you’re using MarsEdit 4, what macros do you have?

Leave a Reply

Your email address will not be published. Required fields are marked *