I thinks these sorts of problems are caused by people using <pre> tags. <code> tags are much nicer to the forum, as they do text wrapping, while allowing one to recover the original code with a download. Long titles like OT: Advice on escaping Corporate America / Starting own consultancy outfit? usually wrap automatically.
If you see such problems, consider the node for editing.
| [reply] [d/l] [select] |
I am always one to ask the meta-question "can this be automated"? So, why consider when we can s/$pretag/you-can't-do-that/g ? It seems to go with the philosophy of not trusting user input on internet forums.
I haven't checked, but I am assuming we are doing things to remove javascript...
<SCRIPT LANGUAGE="JavaScript">
document.write("Hello World!");
</SCRIPT>
So yes, why do we allow pre?
| [reply] |
because there are legitimate uses of pre tags
some monks us them to create small ascii art sigs.
Other monks use them when raw data, or the output of a script -- which they don't want to put in code blocks because it's not code, it shouldnt' be included in the code download
Generating a warning if someone submits text with a pre tag containing lines longer then N characters is one thing, but it would be a travesty to flat out reject the tag just because some people don't know how to use it in a non-obtrusive way.
PS: regecting pre tags doesn't really do anthing about long sequences of tags...
| [reply] |
| [reply] |
"Auto" code wrapping only partially works for browsers that don't support soft hyphens (it won't break long sequences of non-white-space characters and this often means you'll see very wide pages). In fact, flyingmoose's problem could well be the use of "auto" code wrapping.
For quite a long time, the only browser that supported ­ was IE6. Finally, some of the other browsers are catching up on this front. I've heard reports that the latest FireFox and latest Opera now support ­, though I haven't verified these claims.
See Re: Space or Soft Hyphens (see code wrap) to see if your browser supports soft hyphens.
I have a design for how to reformat <pre> tags similar to how "auto" code wrapping works, which will prevent most of the problems with <pre> tags making pages wide while still having them appear the same (if your window is wide enough).
I'll probably make this optional and it won't use ­ unless you've enabled auto code wrapping. No, there is no schedule for when it will be available. (At the moment, I'm still rebuilding part of my PM development platform.)
| [reply] |
| [reply] |