Text::Highlight is a syntax highlighting framework.
SYNOPSIS
use Text::Highlight 'preload';
my $th = new Text::Highlight(wrapper => "%sn");
print $th->highlight('Perl', $code);
Text::Highlight is a flexible and extensible tool for highlighting the syntax in programming code. The markup used and languages supported are completely customizable. It can output highlighted code for embedding in HTML, terminal escapes for an ANSI-capable display, or even posting on an online forum. Bundled support includes C/C++, CSS, HTML, Java, Perl, PHP and SQL.
INSTALLATION
In order to install and use this package you will need Perl version 5.005 or better.
Installation as usual:
% perl Makefile.PL
% make
% make test
% su
Password: *******
% make install
Product's homepage
Requirements:
· Perl