Addons are custom features that you can add to your Vanilla forum. Addons are created by our community of developers and people like you!
Will it work on my Vanilla Forum?
These addons are for people who downloaded and set up their own Vanilla forum. Compare your downloaded version with the version requirements on the right.
If your Vanilla forum is hosted at VanillaForums.com, this addon may already be installed there.
Vanilla Approved?
We review addons to make sure they are safe and don't cause bugs. An addon is considered to be "Vanilla Approved" once our review process is complete.
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.
History: 2010-10-23 v0.2: Removed HEREDOC which was breaking on some servers 2010-10-22 v0.1: Initial upload
TODO: - run prettyPrint() again when a comment is edited inline - limit plugin to pages with comments