0

Syntax highlighting: improve Perl regex highlighting

Johannes Ernst 7 years ago updated by Marc Strapetz 7 years ago 1

It gets tripped up here:

if( $test =~ m!^(.*)/([^/]+)$! ) {


Here's another:

$localFileName =~ s!.*/!!;

We are using a "code prettify" Java port here. It would be interesting whether your code snippet is properly highlighted by the native code scripts. AFAIK, stackoverflow.com is using "prettify", too.