This may be obvious to more seasoned monks, so my apologies if this bores your socks off, but I had a small learning experience today that inspired me to write a few lines. As a relatively new monk I have tried to be careful to observe customs and conventions of the monestary when I post. Chief among these is the use of code tags. Imagine my surprise when a
response I posted to a SoPW was subsequently considered for lack of code tags.
I was flummoxed until ikegami helpfully pointed out that the long regex would not wrap inside the code tags without a newline. Although I was sure I had included at least one newline, I went back and made certain that newlines preceded and followed the oneliner regex.
What I learned is that wrapping does not happen if the only newline between code tags immediately preceds the close code tag.
In other words, this won't wrap:
<code>really-long-regular-expression
[newline]</code>
but this will:
<code>[newline]
really-long-regular-expression</code>
On a side note, as evidenced by the consideration, it seems that monks abhor unwrapped text in much the same way that nature abhors a vacuum.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.