I recently noticed that the script blocks that I had in previous posts weren’t displaying as I thought they were. It appears they had lost back slashes from the path statements.
To rectify this I started to hunt around the interweb for a WordPress Plugin to resolve the situation. I was amazed at how difficult this turned out to be. I spent several hours trying to find a good solution.
Now to be fair I could well have been doing something wrong in this process, but I checked out the Codex Syntax Highlighting Plugins and worked my way through a a few I’d found on Google.
There were a few contenders that looked like they might do the trick, but they either didn’t work as I thought (trimmed white spaces, lost formatting), or appeared a little complex to install and get working. To be fair I didn’t try them all, I just picked out a few that I thought might suit my needs.
I liked Aaron’s Code-Viewer, which let you display code from a file on the server, and make it available for download. This was nice, and I like the idea. I didn’t like how I couldn’t make the numbering go away, or that, for me, the indentation formatting was lost. I was getting warmer though!
I was impressed by this Simple Code page, and was just about to test the plugin version, when I stumbled across Chrissy’s Quick Code.
I have to say I’m really impressed. It was a snap to install, and it’s simple to use. Now I’m not really that fazed by pretty colouring of keywords etc. Don’t get me wrong, I wouldn’t knock it if a plugin had it, but I’m really stoked with the show/hide functionality of the DIV container, and just the general way it behaves and can be configured. Oh and did I mention that it just displays my code without mangling it? Yup, no trimmed white spaces, it handles long lines, and it has just a nice crisp display.
Kudos! Well done Chrissy, and thanks!