Howdy, Stranger!

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

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Vanilla 2.2.1 is now available.
Please upgrade to 2.2 here. The 2.0 and 2.1 branches are no longer being updated.

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

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.