Fork me on GitHub
Current Releases are 2.1 stable (major release) and 2.0.18.11 (security patch for 2.0)
We've also rebooted our GitHub repo, docs, and more!

Google Code Prettify v0.3 (syntax highlighting for comments)

edited March 2011 in Questions
This discussion is related to the GoogleCodePrettify addon.
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:
image

With line numbers:
<code class="prettyprint linenums">var x = 1;
doSomething();</code>

That will produce:
image

See http://google-code-prettify.googlecode.com/svn/trunk/README.html for full usage details.

Please ask any questions in this thread.
Tagged:

Comments

Sign In or Register to comment.