I think that there is a simple workaround that resolves some of the issues with syntax highlighting and the site. The solution involves adding to the standard PM CSS a set of attributes that cover the classes output by Perl::Tidy and a change in whether the 'DIV' and 'SPAN' tags are allowed by the site. (The last time i looked PerlTidy uses DIV and SPAN blocks with class info to do the highlighting.) This way people that want to post highlighted code will at least have the code renderable by PM, and that there will be the appropriate CSS to go along with it. Thus all they need to do is run perl2html on the code, and then paste it into their node.
Of course this means the CSS for each theme is adjusted and a bunch of other work, but at least its doable. At least I think it is. Maybe there is a good reason im overlooking that DIV and SPAN tags are prohibited by the site.
First they ignore you, then they laugh at you, then they fight you, then you win.
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||