Does anyone know how to indent code in the code tags?
void Foo()
{
int x;
}
When I add the “Indent” it ends up looking like this?
void Foo()
{
[INDENT]int x;[/INDENT]
}
And hitting the TAB key in Firefox does nothing.
Thanks.
Does anyone know how to indent code in the code tags?
void Foo()
{
int x;
}
When I add the “Indent” it ends up looking like this?
void Foo()
{
[INDENT]int x;[/INDENT]
}
And hitting the TAB key in Firefox does nothing.
Thanks.
in the forum’s text input box… spaces
but the code tags respect the tabs you’ve done in your IDE of choice
Ok, thanks. I’m surprised you can’t indent the code via the forum.
Not really surprising since code tags don’t parse stuff inside; you could very well actually want to write “[ indent ]” in code. Just use spaces or tabs, like actual code. But what you would do in almost all cases is copy&paste code you wrote elsewhere…if you’re writing code here on the forums, you have no idea if it would actually compile.
–Eric