Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: Allowed HTML tags

by JavaFan (Canon)
on Nov 27, 2008 at 12:10 UTC ( [id://726390]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Allowed HTML tags
in thread Allowed HTML tags

"improved" is a matter of opinion. You can't for instance use a line of code and highlight a section you want to focus because there's an implicit CDATA context inside.

BTW, in HTML, PRE is a blocklevel element, while CODE is an inline element, so they aren't quite interchangable, nor can you not prepend every CODE element with PRE.

IMO, it would have been better if Perlmonks just had C for code, and left the HTML CODE as is. But, IIRC, the C was introduced later as an alias for CODE.

Replies are listed 'Best First'.
Re^6: Allowed HTML tags
by ambrus (Abbot) on Nov 27, 2008 at 19:37 UTC

    You can use <tt> to just mark some inline html as code. Inline perlmonks code tags actually emit <tt> tags to the html, not <code> tags.

Re^6: Allowed HTML tags
by belg4mit (Prior) on Nov 28, 2008 at 19:39 UTC
    Hmm, I seem to recall PerlMonks used to treat inline <c> different from those in their own "paragraph" i.e; preceded by \n\n

    Update:

    Oh, I see. Thanks tye ...glad to know I only misremembered reality rather than remembered fa +ntasy.

    --
    In Bob We Trust, All Others Bring Data.

      If there are any newline(s) inside <c> or <code> tags, then the contents are rendered as a block. If no newlines are included, then it is rendered in-line. It has been that way "forever".

      The only change (made years ago) was that a newline directly after the opening tag is now ignored (other than that it still causes the contents to be rendered as a block).

      - tye        

Re^6: Allowed HTML tags
by Anonymous Monk on Nov 27, 2008 at 18:41 UTC
    Funny, you're under the impression that any of that matters

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found