Code formatting!
Displaying 1-11 of 11 total.
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.

Since this has come up a few times:

<pre> is just like <code>

If you have formatted code, wrap it in <pre></pre>

function see() { a.lot );
bettar = true;

if( you.areUsing() ) {
print( "<pre>" );

Posted on 2004-02-19 22:20:25


Except that it double spaces, which is hideous.

Posted on 2004-02-20 02:11:14


Doesn't in IE! :o

Posted on 2004-02-20 07:18:59


Well there's your problem :P
It also double-spaces in Opera (and probably all mozilla-based browsers, like Mozilla Firefox that I'm using)

Posted on 2004-02-20 14:53:00


I'll get to it. Later.

Posted on 2004-02-20 19:29:52


grue, you are outputting <br> inbetween every line of code.
that means you get the newline that is at the end of every line, and you get the <br> as well. i don't know which tags a browser is supposed to ignore from within a <pre> and which it is supposed to honor, but it appears as if there is a difference of opinion.

Posted on 2004-02-23 18:04:54 (last edited on 2004-02-23 18:05:56)


I was having a problem with it continuing to interpret content withing the <pre> tags.

I pasted some code in between some pre-tags, that contained a few less-than symbols, and it was cutting it off. Not terribly suprising, and a very common bug, and I forgot the full (4 character, &symbol code) html code < thing... but you can chalk that up to lazyness.

Might want to include them in the list of usable html codes... just so old people like me can remember this stuff from 100 years ago.


Posted on 2004-02-23 23:32:58


how do you show the lessthan/greaterthan symbols?

Posted on 2004-03-15 17:25:49


&_lt; Less Than
&_gt; Greater Than

Take away the "_" after the "&"s... I couldn't find another way to post that without it turning into the symbols.

Posted on 2004-04-08 05:55:11




Posted on 2004-04-09 01:17:24 (last edited on 2004-04-09 01:17:48)


&amp; expands to a single &. So if you say &amp;lt; and &amp;gt;, the post will show you what you want. Also, my mind is boggled mildly by typing &amp;amp; to get &amp; to show up in this post. (and typing &amp;amp;amp; in the previous post, and egads!)

Posted on 2004-04-09 04:32:39

Displaying 1-11 of 11 total.
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford. is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.