Your points about CSS are all valid - no problem.

I've added a post requesting discussion of allowed HTML: Additions to Approved HTML. What I've posted constitutes what I would have proposed; however, as stated in that post, I think concensus across the Monastery is important. I'll await feedback and then modify as appropriate to form a proposal that most agree on (or can, at least, live with).

As far as syntax-highlighting is concerned, I was really only providing an example contrasting the style element with the style attribute. The example could just as easily have focussed on some other aspect of styling. The script I mentioned doesn't operate on Perl, it's just written in Perl; if interested, see Syntax-highlight Non-Perl Code for HTML. Given your points about CSS, this is now entirely moot (at least with respect to PerlMonks markup).

-- Ken


In reply to Re^5: Approved PM markup: div but not span? by kcott
in thread Approved PM markup: div but not span? by BrowserUk

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.