This is a simple plugin that adds google-code-prettify (
http://code.google.com/p/google-code-prettify/) to discussion pages. This will enable syntax highlighting inside <code class="prettyprint"> blocks in comments.
Simple usage:
<code class="prettyprint">var x = 1;
doSomething();</code>
That will produce:
With line numbers:
<code class="prettyprint
linenums">var x = 1;
doSomething();</code>
That will produce:

See http://google-code-prettify.googlecode.com/svn/trunk/README.html for full usage details.
Please ask any questions in this thread.
1 • •
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •is there a way to enable '"prettyprint linenums" to be done by default when <'code'> selected?
- Spam
- Abuse
- Troll
2 • Off Topic Insightful 2Awesome LOL •