Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Need examples for PerlMonks HTML Tags (suggestions)

by tye (Sage)
on Mar 05, 2008 at 22:59 UTC ( [id://672307]=note: print w/replies, xml ) Need Help??


in reply to Re: Need examples for PerlMonks HTML Tags
in thread Need examples for PerlMonks HTML Tags

For <h1>, I'd rather the message be "Don't use these" (as is noted at Perl Monks Approved HTML tags).

Note the red plus sign and lack of line number on the continuati­ons after wrapping is performed

Showing line numbers is not the default. For those fortunate enough to have a browser that supports soft hyphens (&shy;), "auto code wrapping" is a much nicer option and it doesn't produce any red plus signs (it can produce red hyphens but only when the wrapping happens in the middle of a long block of non-spaces).

(sometimes at unfortunat­e points, as seen in this instance.

There would likely be no "unfortunate point" when "auto code wrapping" is used but even for non-auto wrapping each user can pick their preferred line width so you shouldn't assert that the code will be wrapped at an "unfortunate" point in your specific example.

The main point for BR tags should probably also be "Don't use these". A note that </br> is a particulary bad idea might be warranted.

Update: By far the most common use of BR tags
is inappropriate.
So it seems more important to stress that
they not be used inappropriately
(to introduce line wraps within a paragraph --
I'm not sure why this is so commonly done).
Since examples were desired,
an example like Thanks,<br />Tye
would seem appropriate to me,
especially if it is noted that the use of BR tags
should be the exception and
normal paragraphs should be achieved via P tags.

- tye        

Replies are listed 'Best First'.
Re^3: Need examples for PerlMonks HTML Tags (suggestions)
by Argel (Prior) on Mar 06, 2008 at 20:02 UTC
    Hmm. So how hard would it be to replace two new lines in a row with <p> tags behind the scenes so we could avoid having to actually enter them? It seems like most of the time that would match the actual intent.

      How hard would it be? The devil is in details. I've long supported taking some clues from POD and splitting paragraphs at blank lines and implying code tags for "indented" paragraphs, at least in such a way that such guessing doesn't get in other people's ways.

      So how hard would it be? Nobody has implemented it yet.

      - tye        

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found