How to combine WMD and prettify, like Stack Overflow?
Prettify needs class="prettyprint" to be add to <pre> or <code> . How to let WMD do this? Take a look at the PageDown Markdown editor... AFAIK, WMD is dead, but PageDown is a fork based on the WMD source. It's an active project based on the work done in WMD. That takes care of the Markdown editor. To get syntax highlighting working you'll also need to download source from the Google-Code-Prettify project. Combine the demo.html, demo.css, prettify.js, prettify.css into the same folder. Modify the imports accordingly: <link rel="stylesheet" href="demo.css" /> <link rel="stylesheet" href=