Saturday, November 7, 2009

Testing syntaxhighlighter

Quick test of syntaxhighlighter. Particularly cool is that the site hosts the files, as explained here. One problem though, the code set inside <script> tags doesn't render in the preview. Using <pre class="..."> does work but you need to HTML encode all those special characters like less than, greater than and double quotes. It seems that the code within the <script> also does not appear when the RSS feed is viewed in Google Reader. Some Python: Some C++: Some XML:
<?xml version="1.0" ?>
<root>
</root>