.codepost { background-color: #ffffff; width: 500px; height: auto; white-space: nowrap; overflow: scroll; padding-left: 2px; padding-bottom: 5px; } #### sub html_escape { my $text = shift; return '' unless $text; #$text =~ s{\;}{#59;}gso; $text =~ s{&}{&}gso; #$text =~ s{#59;}{;}gso; $text =~ s{"}{"}gso; $text =~ s{ }{ \ }gso; $text =~ s{\*}{*}gso; $text =~ s{<}{<}gso; $text =~ s{>}{>}gso; $text =~ s{'}{'}gso; $text =~ s{\)}{)}gso; $text =~ s{\(}{(}gso; $text =~ s{\\}{\}gso; # need this! $text =~ s{\t}{ \  \  \ }gso; $text =~ s{\|}{\|}gso; # going to keep this $text =~ s{\n}{
}gso; $text =~ s{\cM}{}gso; return $text; } ##
## $message =~ s~
~=br=~isg; while ($message =~ s{\[code\]([\S\s].+?[\S\s])\[/code\]} { my $tmp = $1; $tmp =~ s!!>!g; # ' $tmp =~ s!:!:!g; $tmp =~ s!\[![!g; $tmp =~ s!\\!\!g; $tmp =~ s!\]!]!g; $tmp =~ s!\)!)!g; $tmp =~ s!\(!(!g; $tmp =~ s!\|!|!g; $tmp =~ s!([^\&])(\#.*?(=br=))!$1$2!g; $tmp =~ s!('.*?('|=br=))!$1!g; $tmp =~ s!(".*?("|=br=))!$1!g; $tmp =~ s!(return)!$1!g; $tmp =~ s!(require)!$1!g; $tmp =~ s!(while)!$1!g; $tmp =~ s!(foreach)!$1!g; $tmp =~ s!(for)!$1!g; $tmp =~ s!(my)!$1!g; $tmp =~ s!(sub)!$1!g; $tmp =~ s!([^\w])(if)([^\w]*)!$1$2$3!g; $tmp =~ s!(unless)!$1!g; $tmp =~ s!(elsif)!$1!g; $tmp =~ s!(else)!$1!g; $tmp =~ s!(use)!$1!g; $tmp =~ s!(package)!$1!g; $tmp =~ s!<!<!g; $tmp =~ s!>!>!g; $tmp =~ s!"!"!g; $tmp =~ s!"!"!g; #" $tmp =~ s!\s{1};!;!g; #$tmp =~ s!>br>!\n!g; $tmp = "
# $msg{code}
" . $tmp . '
# Code End
'; }exisog) {} $message =~ s~=br=~
~isg;