Wordpress Syntax Highlighting Plugin
I just installed a syntax highlighting plugin and below are the results. Usually installing and configuring plugins isn't such a chore, but this time it was slightly more complicated.
<h1>Sample Heading...</h1> This is just a bunch of meaningless text <ul> <li>List Item One</li> <li>List Item Two</li> <li>List Item Three</li> <li>List Item Four <ul> </ul> </li> </ul>
There were a couple of code related errors. For some reason the path to the 'geshi.php' file was wrong. Or at least it seemed. Without changing a line of code and only by refreshing the screen the errors magically disappeared. Unfortunately I spent 30 minutes trying to figure out why the path to geshi.php was incorrect before refreshing the page.
Also, if you choose to use this plugin, there's a good chance you'll have to write some code to style the 'pre' tag. Take a peek at what I used:
pre { font-size:11px; width:100%; overflow:auto; border:1px dotted #ccc; padding:5px; }
Nice plugin! Hopefully over the next few years (or more), I'll have the chance to put it to good use.












Leave a Reply