Category Archives: Wordpress

Prettify plugin issues

I’ve been trying to use the Sunburst Code Prettify plugin but it simply doesn’t render quotes in code correctly….

[prettify class=”java”]String test = “12345657890”;[/prettify]

Eventually i’ve answered my own question… It appears you have to wrap the prettify short code tags in <code> tags. This was not apparent from the installation or documentation of the plugin.

[prettify class="java"]String test = "12345657890";[/prettify]

This example is using Prettify for WordPress plugin.. Just wrap the code snippet in <pre class=”prettyprint”> tag. I’ve decided to go with this one.

String test = "1234567890";