Actually this board has a CODE tag, let's see if it does the same thing with spacing as PRE does.

[CODE]
int i;
for(i=0;i<10;i++) {
do_something();
}
[/CODE]

Yeah it still adds spacing, plus the border around it so I wouldn't use that either :)

The first way requires the most extra typing, but gives the best formatting.