Term::ANSIColor::Markup is a Perl module that provides a simple and friendly way to colorize screen output; You can do it using HTML-like tags.
You can use the same names for tag names as ones Term::ANSIColor provides. See the documentation of Term::ANSIColor to get to know what names you can use.
SYNOPSIS
use Term::ANSIColor::Markup;
my $text = qq{aaa< red >bbb< bold >ccc< /bold >ddd< black >< on_yellow>eee< /on_yellow >fff< /red > > ggg};
my $parser = Term::ANSIColor::Markup->new;
$parser->parse($text);
print $parser->text;
# or just call colorize method this way:
print Term::ANSIColor::Markup->colorize($text);
Product's homepage
Requirements:
· Perl