in reply to (Client side) Perl Syntax Highlighter
Fascinating! These patches fix the moving my issue (actually any key word that follows a comment will right shift onClick refresh) and convert tabs to 4 spaces for consistency.
45c45 < s = s.replace(/\&/g, "&").replace(/</g, "<").replace( +/>/g, ">").replace(/\n/g, "<BR>"); --- > s = s.replace(/\&/g, "&").replace(/</g, "<").replace( +/>/g, ">").replace(/\n/g, "<BR>").replace(/\t/g, ' '); 80c80 < re = /\#.*?(\r|\n)/; --- > re = /\#.*?[\r|\n]+/;
cheers
tachyon
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: (Client side) Perl Syntax Highlighter
by Jaap (Curate) on Mar 12, 2004 at 21:29 UTC | |
by tachyon (Chancellor) on Mar 12, 2004 at 21:45 UTC |
In Section
Perl Monks Discussion