Any way to get syntax-highlighted code blocks with Text::MultiMarkdown?
pagaltzis at gmx.de
Mon Dec 6 11:45:52 EST 2010
* Dr. Drang <drdrang at gmail.com> [2010-12-06 17:10]:
> I just added syntax highlighting to my blog by wedging a call
> to Pygments into my fork of PHP Markdown Extra (yet another
> abuse of Michel's code). You could do a similar thing with
> MultiMarkdown by changing the _DoCodeBlocks function.
Markdown spits out HTML. Any highlighter that can fish `<pre>`
and `<code>` out of HTML and highlight it will work on the
Markdown’s output. There is no need to wedge any of this into
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Markdown-Discuss