Code Markup WordPress plugin version 1.2

Thursday, 16 August 2007

Code Markup, my WordPress plugin that makes it easy to include program code samples in your posts, has been updated to version 1.2. Code Markup lets you include HTML markup in the code sample; it magically knows which characters should be displayed as code and which should be rendered as HTML. Version 1.2 has a few tweaks that will make it more useful and usable.

The best new feature is that Code Markup now fixes a WordPress bug where backslashes inside a <pre> block would not be displayed. With Code Markup, such backslashes are now displayed even if not in a code block.

The “allow” attribute is now called “markup”. I could never remember whether allow="span" meant that <span> was allowed as a literal or allowed as markup. Now I hope it’s clearer: markup="span" means that <span> will be treated as markup, not displayed literally.

For backwards-compatibility, you can still use “allow” as the attribute name. So any existing code blocks will still work with the new Code Markup.

Finally, Code Markup works better now with tags and comments that span multiple lines.

Download

For details and download, see the main Code Markup page.

Tags:

2 comments

You can leave a comment, or trackback from your own site.

  1. Hi! Thanx for a useful, simple and nice plugin!

Leave a comment