It seems to me that there are an awful lot of posts that get botched for lack of code tags. Naturally, there are none in Nodes To Consider at the moment, but there are always some such posts around.
Caution: Contents may have been coded under pressure.
I thought that a fairly simple heuristic could be added to the posting feature to look for likely code chunks, and if there are no code tags around them, give a "Woah there!" message that suggests maybe they want to wrap code tags around some of their post.
I present the heuristics I thought of in Jeff Foxworthy format. If you have better ideas or reasons these aren't a good idea, discuss.
You might need code tags if...
- you've got a single digit in square brackets
- [$ appears in your post
- you have lines ending in semicolons
- you have lines beginning with spaces or tabs
Caution: Contents may have been coded under pressure.
Back to
Perl Monks Discussion