I was thinking to do some gamesitescript templating tutorial, so I search for a code highlighting plugin better than default code tag and I found several plugins but I encounter some compatibility issues with wordpress 2.7. One plugin standout from the rest, and works great with wordpress 2.7. The plugin I'm referring to is FV Code Highlighter by Frank Verhoeven.
FV Code Highlighter works very similar to most the other syntax highlighting scripts, but I like how the plugin uses the default dreamweaver tag color and the background color.
As of the moment, the plugin is in early stage of development and only support the following programming language PHP, HTML, CSS and XML.
Example
PHP CODE:
<?php // get host name from URL preg_match('@^(?:http://)?([^/]+)@i', "http://www.wickedhippo.com/games/16/girls.html", $matches); $host = $matches[1]; // get last two segments of host name preg_match('/[^.]+\.[^.]+$/', $host, $matches); echo "domain name is: {$matches[0]}\n"; ?>
CSS CODE:
@import url("style.css"); h2, .eligio { display: block; font-size: 13px; color: #000; padding: 18px 10px 17px 10px; line-height: 18px; border: 1px solid #e2e2e2; text-align: left; overflow: auto; } @media screen, print { pre { margin: 0px 10px 10px; } h1 { font-size: 14px; padding-top: 10px; } }
Visit FV Code Higlighter
