http://qs1969.pair.com?node_id=852476


in reply to using <pre> tags for citing perldocs!

When I quote from the docs, I use <blockquote>:
The auto-increment operator has a little extra builtin magic to it. If you increment a variable that is numeric, or that has ever been used in a numeric context, you get a normal increment. If, however, the variable has been used in only string contexts since it was set, and has a value that is not the empty string and matches the pattern /^[a-zA-Z]*[0-9]*\z/ , the increment is done as a string, preserving each character within its range, with carry:

It autoscales the width nicely.

Replies are listed 'Best First'.
Re^2: using <pre> tags for citing perldocs!
by LanX (Saint) on Aug 02, 2010 at 14:24 UTC
    good point ... but paragraphs and newlines get lost.

    123456789 123456789 123456789 123456789 123456789 123456789 123456789 +123456789

    code tags in the monastery seem to break after 70 chars, simply extending them to 80 chars would solve the problem in most cases, since xterms default to 80x25.

    I think nowadays thats acceptable, another - backward compatible - solution would be a new tag "quote" which works like "code" but with 80 chars wrap.

    <quote> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
    </quote>

    Cheers Rolf

      <blockquote>

      <p>I suppose they<br />
      might…</p>

      <p>If you don't know how teh Intertubes work.</p>

      </blockquote>

      (I know, I know, it's not as DWIW but it's still always there.)