Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Google Code Prettify v0.3 (syntax highlighting for comments)
ithcy
New
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:
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.
Please ask any questions in this thread.
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.
Please ask any questions in this thread.
1
Comments
is there a way to enable '"prettyprint linenums" to be done by default when <'code'> selected?