Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

RE: Automatic CODE tags (kudra: potential problems)

by kudra (Vicar)
on Jun 20, 2000 at 16:48 UTC ( #18990=note: print w/replies, xml ) Need Help??

in reply to Automatic CODE tags

The first wouldn't work very well if the person wanted to have two pieces of code. Something like this might be intended:
I see this in a book:
for (keys %hash) { print; }
But when I do it like this, it doesn't work
for (key %thisisnotintendedasaseriousquestion) { print; }
What's wrong?
It would be rendered something like (case second box):
I see this in a book: But when I do it like this, it doesn't work
for (keys %hash) { print; } for (key %somename) { print; }

I'm imagining that the 'Code:' is added automatically. Having code on by default would give something which is somewhat hard to read, for example (case all preformatted):
I see this in a book: for (keys %hash) { print; } But it doesn't work in my example, please <a href=">look at it here!</a>

Yet I agree that something should be done... Perhaps information on how to display code and escape characters could be at the top of the page before the submission box on the Seekers of Perl Wisdom section only, in hopes that it will be read? (I don't think I'd like seeing it there, so don't consider me in favor of my own suggestion!)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2021-01-24 00:48 GMT
Find Nodes?
    Voting Booth?