ralsina/nikola — pull request #28 by quodlibetor (2012-05-12 02:59:11+00:00)
Title: Make python markdown do syntax-hilighted code

In order for this to work the fenced_code extension needs to be used as well, but fenced code is easier to produce programmatically and is nicer to write if you don't have a decent text editor, so I don't think that it's a loss to have it enabled.

Additionally, use the [codehilite](http://freewisdom.org/projects/python-markdown/CodeHilite) and [fenced_code](#http://freewisdom.org/projects/python-markdown/Fenced_Code_Blocks) extensions, and add a regexp substitution
to make the codehilite extension match pygments' css "api".

That regexp is necessary because codehilite produces html surrounded by a div with the `codehilite` class, instead of the standard `code` class, and pygments' stylesheet doesn't apply to it.