Here it is again, this time in "Plain text format"
#include <stdio.h>
void main(int argc, char* argv[]){
prinft(stdout,"hello world\n");
}
As you can see, spacing is preserved, but you may not be happy with the font (Trebuchet for code? Yuck). To change the default font...
Site administration -> Appearance -> HTML editor
Put Courier first in the "Font list"
However I'm not sure this works very well, based on some comments I've seen in the forums.
Text editors
Stripping spaces from preformatted text
This discussion has been locked so you can no longer reply to it.