~,
-start => qq~
~,
-string => sub {
my $code = &CGI::escapeHTML( $_[0] );
$code =~ s~\r?\n~
\n~g;
$code =~ s~^(\s+)~' ' x length($1)~gem;
$code =~ s/ / /g;
$code =~ s~\r?\n~
\n~g;
return $code;
},
-end => qq~
~,
-description => 'Dumme Code-Tags',
},
# the following tags use $SourceHighlightBin to color code
perl => {
-start => qq~
~,
-string => sub {
my $code = &PBoard::Posting::HighlightPerlCode( $_[0] );
$code =~ s~\r?\n~
\n~g;
return $code;
},
-description => 'Code-Tags mit Syntax highlightning fuer perl',
},
java => {
-start => qq~
~,
-string => sub {
my $code = &PBoard::Posting::HighlightJavaCode( $_[0] );
$code =~ s~\r?\n~
\n~g;
return $code;
},
-description => 'Code-Tags mit Syntax highlightning fuer Java',
},
...