Q:

The infamous tabs or spaces

Is there a standard for code formatting within the Stack Exchange network? I have noticed on other sites they use tabs by default. On this site, is there a default tabs to spaces?

A:

The Stack Exchange Markdown editor does not touch the code one is posting. It does not change spaces to tabs and does not change tabs to spaces.
When selecting a code block and clicking the code sample editor button, it just inserts four spaces in the beginning of each selected line, nothing more.
In the final output, it doesn't really matter if tabs or spaces were used. These days modern browsers will show it exactly the same as far as I can tell.

