App-perlhl
view release on metacpan or search on metacpan
lib/App/perlhl.pm view on Meta::CPAN
# install the formats set up above
while ( my($type, $style) = each %{$color_table} ) {
$formatter->set_format($type, [ qq{<span style="$style">}, qq{</span>} ]);
}
}
when ('ansi') {
my $color_table = { # Readability is not so good -- play with it more
'Bareword' => 'bright_green',
'Builtin_Function' => 'blue',
'Builtin_Operator' => 'bright_red',
'Character' => 'bold bright_red',
'Comment_Normal' => 'bright_blue',
'Comment_POD' => 'bright_black',
'Directive' => 'bold bright_black',
'Keyword' => 'white',
'Label' => 'bright_magenta',
'Line' => 'white',
'Number' => 'bright_red',
'Operator' => 'white',
'Package' => 'bold bright_red',
'Quote' => 'blue',
'String' => 'blue',
'Subroutine' => 'yellow',
'Symbol' => 'white',
'Variable_Array' => 'cyan',
'Variable_Hash' => 'magenta',
'Variable_Scalar' => 'green',
'Variable_Typeglob' => 'bright_red',
};
( run in 0.264 second using v1.01-cache-2.11-cpan-5dc5da66d9d )