Your code will look exactly like it does on google-code.
As of April 2026, Prettify GC Syntax Highlighter is a WordPress prettify plugin with 20 active installations and a 4.3/5 rating from 3 reviews. It has been downloaded 8.6K+ times in total. Requires WordPress 3.0.5+ and PHP false+. Available on WordPress.org since 2011. Last updated 13 years ago — may have compatibility concerns. Top alternative: WP-Markdown.
This plugin has prettify.js copied directly from google-code source browser. So your code will look exactly like it does on google-code.
CSS is slightly modified to embolden keywords and types.
See prettify.js for license details (Apache License 2.0). Other files are available under GPLv2.
<pre class="prettyprint">
// Put your code here.
</pre>
Or with shortcode:
[code]
// Put your code here.
[/code]
The plugin automatically makes highlighted code html-safe:
<pre class="prettyprint">
Anything that goes here will be quoted to appear on the page as-is.
For example: <head></head><body></body>
</pre>
To avoid quoting your code, add dontquote as the first class.
<pre class="d…
| WordPress | 3.0.5+ requiredTested up to 3.4.2 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.