Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: using <pre> tags for citing perldocs!

by toolic (Bishop)
on Aug 02, 2010 at 14:09 UTC ( #852476=note: print w/replies, xml ) Need Help??


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 (Sage) 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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://852476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-01-22 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?