Readonly::Hash %TagsBlocked => ( # [code] doesn't use the external program, so we have to do everything code => { # toCheck # -start => qq~
Code:
~, -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~
Perl:
~, -end => 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~
Java:
~, -end => 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', }, ...