Thank you, ...

...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.


In reply to Re^2: Syntax highlighting for CPAN by LanX
in thread Syntax highlighting for CPAN by ELISHEVA

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.