Eidetica

Link Post

Wordpress Markdown Codeblock Attributes Patch

I like to write in Markdown format but I also like using a Syntax highlighter such as Google Syntax Highlighter. The two formats do not work well together.

This patch will modify the Wordpress Markdown Plugin to allow extra attributes with a fenced codeblock in order to work with Google Syntax Highlighter. For example:


~~~ name="code" class="php"
code goes here
~~~

This will result in <pre name="code" class="php"></pre>.

Posted on Saturday, January 30, 2010. Tagged with: codemarkdownwordpress
Eidetica Personal blog of Joe Topjian.
Previous Next