Posted on May 7, 2009 in Computers by seadogNo Comments »

I use the very nice codehightlighter wordpress plugin to beautify my code postings. The plugin works great but there seems to be a problem with the &, > and < symbols which are presented as &lt; and &gt; to the webpage. I did the following changes to the code, a quick 'n' dirty hack, that just works

File: codehighlighter.php
Line: 40 after the line

$code = str_replace('< /pre>', '</pre>', $code);

Place

$code = str_replace('&gt;', '>', $code);
$code = str_replace('&lt;', '<', $code);
$code = str_replace('&amp;', '&', $code);