in reply to Re: Syntax highlighting for CPAN
in thread Syntax highlighting for CPAN
...but do you know why it's necessary to use yet another syntax parser for Perl?
The quality is below perltidy -html (i.e. w/o reformating), e.g. if you look at the bottom of CGI.pm you will see the hash key -values highlighted.³
Thats not much better than the pure JS solution that Corion already proposed for perlmonksı, which could easily be adopted for CPAN and automated using scriptmonkey.
Talking about automation, I couldn't find an option to save highlighting as default (e.g. in cookie).²
Sorry if I may sound overly negative, I really appreciate the effort!
It's just my mentality to ask for insight and discuss other solutions.
Cheers Rolf
1) see Free Nodelet hack: Syntax colouring
2) Hmm the setting is supposed to be stored automatically in a cookie, but I have problems to make this work in my FF.
3) seems like I misinterpreted the mechanism, looks like another pure client-side JS solution for highlighting. My Idea was rather to use perltidy for adding highlight-<span>s on the server side, and to control the CSS settings via JS on the client side. Should be much faster, too.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Syntax highlighting for CPAN
by DStaal (Chaplain) on Mar 24, 2011 at 15:28 UTC | |
by LanX (Saint) on Mar 24, 2011 at 15:42 UTC | |
Re^3: Syntax highlighting for CPAN
by Your Mother (Archbishop) on Mar 24, 2011 at 14:15 UTC |