I've installed Sunburst Code Prettify on my new blog. The prettifier uses Highlight.js to prettify code. I've placed the following Python code in a post:
[prettify class="python"]
>>> s=set(['a','b','c'])
>>> ''.join(s)
'acb'
[/prettify]
And got the following highlighting (with some paragraphs for context):
The line breaks are lost, some >
were converted to ”
, and there's an annoying gray background behind the rounded black code frame.
I've tried another Highlight.js plugin, wp-highlight.js:
[code lang="python"]
>>> s=set(['a','b','c'])
>>> ''.join(s)
'acb'
[/code]
And got:
Same gray background, same loss of line breaks.
I've tried switching themes (currently using Mosaic, switched to the standard Twenty-Ten), with no success.
Any ideas what went wrong?
Update - what I've tried:
<pre>
:
<pre>
[prettify class="python"]
>>> s=set(['a','b','c'])
>>> ''.join(s)
'acb'
[/prettify]
</pre>
Empty lines:
[prettify class="python"]
>>> s=set(['a','b','c'])
>>> ''.join(s)
'acb'
[/prettify]