In HTML Text editing mode, you can apply sophisticated markup macros to your HTML content. MarsEdit comes with a number of pre-installed markup macros, for your convenience in adding styled text to your posts. If you wish to add additional HTML tags, or a common block of text that you use frequently, it's easy to add a custom macro to the menu.
Select the Format menu and choose the Edit... item at the bottom of the menu. The markup macro editor will appear. Items in the window appear in the same order as they will appear in the Format popup menu. Click and drag items to rearrange them. You may also add separator items to the menu.To add a new macro, click the + button. A sheet will appear, allowing you give the tag a name and enter the start and end parts of the tag.
The closing part of the macro is optional. You can even use the markup macros for non-HTML snippets. Anything you don't want to have to re-type is appropriate for a custom markup macro.
You may have noticed the Shortcut field in the macro editor sheet above. To set a custom keyboard shortcut for any item in the markup menu, just select the text field and press the desired keyboard combination.
Don't worry about choosing a keyboard shortcut that is already used by MarsEdit. If a conflict occurs, MarsEdit will inform you of the situation, and prevent your using the shortcut.
Use the Insert Placeholder popup menu to select from a number of convenient template items that make markup macros in MarsEdit even more powerful. For instance, a markup macro can be configured to incorporate the contents of the pasteboard into the generated markup. Now when you want to copy and paste from another application into a specific markup macro, you can do it in one easy stroke.
Templates are always enclosed with hash characters ('#') to set them apart from the rest of your macro. The entire content of the placeholder will be replaced when the macro is applied. The popup menu contains a more common description of the purpose of the placeholder. Here is a description of each of the placeholder templates available to you. After the description, a typical example of the literal placeholder is included.
Notice that the "ask" variations allow a custom prompt to be associated with the placeholder. This prompt text will be used in the alert sheet that is presented to the user when the markup macro is applied.