in reply to Seeker of Perl Code Review
And the highlighted code looked OK. So you did a better job than emacs/jed (dunno about vim). Only thing is, it doesn't recognize the code within the regex, and also not the comments within the extended regex. But maybe you hit the ceiling here, as merlyn states that "only perl can parse perl code" (paraphrased).my $index = $#array; #Doesn't treat array as comment my $txt = "$index and something"; #Highlights $index! print OUT "$txt->test()"; #Doesn't highlight ->test() s/ (\d+ #test \w{1,3}) (\s) / $2 ? "yes" : $1 /ex; #Recognizes s///ex as the regex
The highlighted syntax looks pretty, especially in color on white. Methinks your only competitor is a2ps, you can find it on Outside links.
Nice job!
Jeroen
"We are not alone"(FZ)
|
---|
Replies are listed 'Best First'. | |
---|---|
(bbfu) (tested code) Re: Re: Seeker of Perl Code Review
by bbfu (Curate) on Mar 23, 2001 at 02:49 UTC | |
by tilly (Archbishop) on Mar 23, 2001 at 07:58 UTC | |
by jeroenes (Priest) on Mar 23, 2001 at 02:57 UTC | |
Re: Re: Seeker of Perl Code Review
by petral (Curate) on Mar 24, 2001 at 07:49 UTC |