Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us

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 ( to discussion pages. This will enable syntax highlighting inside <code class="prettyprint"> blocks in comments.

Simple usage:
<code class="prettyprint">var x = 1;

That will produce:

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

That will produce:

See for full usage details.

Please ask any questions in this thread.


Sign In or Register to comment.