Mask
Mask

Reputation: 34217

How to implement syntax highlight like SO?

Best to be implemented in javascript.

And easy to use.

Upvotes: 1

Views: 268

Answers (3)

Greg Hewgill
Greg Hewgill

Reputation: 994529

Stack Overflow uses Prettify from Google.

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

Upvotes: 3

Nick Dandoulakis
Nick Dandoulakis

Reputation: 43150

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

Upvotes: 0

Eli Bendersky
Eli Bendersky

Reputation: 273756

SO are using the WMD editor.

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

Upvotes: 1

Related Questions