I actually intended to post about something else first. It was going to be about coding something in PHP to gzip mootools files. Of course, you can’t share code snippets without having a a Syntax Highlighter for wordpress. There are a few of these.
- WP-Syntax – A geshi oriented syntax highlighter. I tried this, but you see, the problem is that Wordpress often replaces normal quotes or single quotes with stupid wordpress quotes. They should really get rid of those.
- Google Syntax Highlighter – I’m not sure exactly where Google comes into this, but it’s actually decent. It’s all javascript based which is a plus on the server since I don’t have caching yet.
- Syntax Highlighter Plus – I found this while searching around. It fixed some bugs and has more language support.
So after searching for a while; both on Google and Wordpress’ search, I found something I liked. I bring you my pick: Syntax Highlighter Plus.
echo("Go Syntax Highlighter Plus");
$a = 10;
$b = 2;
$str = 'SELECT COUNT(*) FROM yarrs WHERE yarr_id = %1$d AND yarr_base = %2$d';
$query = sprintf($str, $a, $b);
Possibly related posts: