There have been a couple of posts in the last few weeks that have used the <pre> tag instead of the <code> tag, with the result that a really long line of code or output isn't wrapped, making the main page of the site really w-i-d-e.

These super wide posts do get considered, and after a while the problem is addressed, but in the mean time, it bugs me. I admit that this is a pet peeve -- blame that on my background in newspaper production. A solution that suggests itself is to get rid of the <pre> tags that allow this kind of thing to happen. Is this tag necessary?

I think I'd rather have a chunk of code that's unreadable because it's rendered in a proportional font, than having something that looks fine, except that it's 200 characters wide and ruins the rest of the page.

Alternatively, can I suggest or gently urge the Janitors to act a little more quickly on the posts that require <code> tags in place of <pre>?

Another alternative is to move the hint If you think you're going to use <pre> tags — don't! .. so a spot above the list of approved tags -- although I don't know if that would work any better than the current solution.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds


In reply to Those 'wide load' posts by talexb

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.