I think you have misunderstood me. Any perl program that uses arrays (which will be a good chunk of them) is highly likely to contain code that has [...] in it. Which _requires_ that the user know the html entity name for square brackets or requires that the user wrap even trivial code snippets in code tags. By using a shortcut pattern that is extremely unlikely to occur in the language this would have been avoided. Its the same reason that tye recommends using [[shortcut]] except IMO that pattern occurs all to often in perl code (arrays of arrays) so something even less likely to be found in code would be IMO better.

The base point i think is that it shouldnt be necessary to wrap stuff in code tags. Doing so should work and maintain indentation and etc, but it shouldnt be required just to post a trivial piece of code.

---
demerphq


In reply to Re^4: Web forum markup language and the Monastery ([[...]]) by demerphq
in thread Web forum markup language and the Monastery by szabgab

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.