You don't. You write the data into <code> elements inside the <div>, which are styled to be block-level, thus solving the line-break problem.
Type: Posts; User: Twey; Keyword(s):
You don't. You write the data into <code> elements inside the <div>, which are styled to be block-level, thus solving the line-break problem.
It would be appropriate to use separate <code> elements for each line, or replace linebreaks with <br> elements as you have been doing.
Hmm? Output? What output? :)
That was just an example of caret code using an expanding textbox, there's no output involved.
function $(elid){
return document.getElementById(elid);
}$ is a terrible name for a function. Prototype was evidently written by a deranged Perl scripter.It would be nice to avoid...