monkdiscuss
LanX
<i>UPDATE: Plz see [id://852500] !</i><P>
Hi <P>
using <c><pre></c> tags are considered a sin within the monastery, but I wanna suggest to use them when citing from perldocs and similar sources.<P>
When displayed in a terminalš the docs already have a hard linebreak only some characters longer than <c><code></c> has, always inserting "+" breakes for these <10 chars IMHO doesn't worth it.<P>
Please compare the readability of<P>
<readmore>
<H4>using <c><code></c></H4>
<c>
The auto-increment operator has a little extra builtin magic to it.
...
"undef" is always treated as numeric, and in particular is changed to 0
before incrementing (so that a post-increment of an undef value will
return 0 rather than "undef").
</c><P>
<H4>using <c><pre></c></h4>
<pre>
The auto-increment operator has a little extra builtin magic to it.
...
"undef" is always treated as numeric, and in particular is changed to 0
before incrementing (so that a post-increment of an undef value will
return 0 rather than "undef").
</pre><P>
if someone is concerend about font-size you might add additional <c><tt></c> <P>
<H4>using <c><pre><tt></c></h4>
<pre><tt>
The auto-increment operator has a little extra builtin magic to it.
...
"undef" is always treated as numeric, and in particular is changed to 0
before incrementing (so that a post-increment of an undef value will
return 0 rather than "undef").
</tt></pre>
</readmore><P>
Another possibility could be to augment the chars/line number in <c><code></c>
to allow easy citing of perldocs.<P>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-708738">
<p>Cheers Rolf
</div></div><P>
1) hmm depends on the terminal-with but perldoc seem to have a min-width of 80 chars.<P>
UPDATE:
Hmm ... the line-width of perldocs seems to be a convention, it depends on the author if he wraps after 80 chars.<P>
The synopsis of [doc://Scalar::Util] is an example for bad formatting.