Testing Syntax Plugin

I’ve been looking into a way to add code to the articles here for a while. I have in some occasions actually avoided adding code samples to the articles because it did not fit so well into the standard wordpress styles. Since I’m in a plugin mood today I decided to check if there’s a plugin that would fetch code directly from my subversion server so I can quote realtime examples and perhaps even change diffs.

Well, I haven’t quite made it that far yet but I did bump into this little syntax colorizing gem. Below you find a small snippet of code from my linkchecker Perl script:

#!/usr/bin/env perl

use File::Spec;
use FindBin;
use lib File::Spec->catdir($FindBin::Bin, File::Spec->updir, "perlmodules");

use Dbg;
use DBPass;
use DutchieConfig;
use HTML::Parser ();
use WWW::RobotRules;
use LWP::Simple qw(get);

use DBI;
use LWP::UserAgent;

$version = "Dutchie Linkchecker/0.3 see http://dutchie.org/linkchecker.php";

More Coding

If you enjoyed reading this article you might be interested in reading some more articles in the Coding category on 3DN Techblog:

email

About Fred Leeflang

Hoi! Ik ben de website beheerder van de Forza website.