如何将Perl代码着色

'Label' => 'lb', 'Line' => 'ln', }; my $formatter = Syntax::Highlight::Perl->new(); $formatter->define_substitution('<' => '<', '>' => '>', '&' => '&'); # HTML escapes. # install the formats set up above while ( my ( $type, $class ) = each %{$color_table} ) { $formatter->set_format($type, [ qq~<span class=\"$class\">~, '</span>' ] ); } print qq~<link rel="stylesheet" href="highlightPerl.css" type="text/css" />~; print '<pre>'; while (<DATA>) { print $formatter->format_string;
共4页 首页 上一页 [1] [2] [3] [4下一页 尾页>
字母检索 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z