views:

95

answers:

3

Best to be implemented in javascript.

And easy to use.

+1  A: 

SO are using the WMD editor.

Googling for "javascript syntax highlighter" also brings up a lot of useful stuff.

Eli Bendersky
Prettify need class="prettyprint" to be add to <pre> or <code>,how to let wmd do this?
Mask
A: 

You can check out this very good code syntax highlighter project: SyntaxHighlighter

Nick D
+3  A: 

Stack Overflow uses Prettify from Google.

See this question (on meta) for more discussion about this.

Greg Hewgill
Prettify need class="prettyprint" to be add to <pre> or <code>,how to let wmd do this?
Mask
See: http://stackoverflow.com/questions/1611861/how-to-combine-wmd-and-prettify-like-so
Greg Hewgill