Help for this page

Select Code to Download


  1. or download this
    use Term::ANSIColor ':constants';
    
    # Note that there is not normally a space betweeh the </ and code>. I 
    +added that so that Perlmonks.org wouldn't parse the post incorrectly.
    ...
    s(<code>(.+?)</ code>)($GREEN$1$RESET)g;
    s((?<=\x1b)\[(.+?)\])($RED$1$RESET)g;
    s((<!--.+?-->))($YELLOW$1$RESET)g;