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.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

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

This discussion is related to the GoogleCodePrettify addon.
edited March 2011 in Vanilla 2.0 - 2.2
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.