I think most of languages have a coding standard defined on their own, so i don't see the point of SO choosing which one to follow.
In SO's spirit, if someone ask a question about the some point of coding style for a language, the good answer is a quote from the language's coding style guidelines, not a IMO you should write it like this
. So i think it must be the same in documentation.
Of course some details like space before brackets, or line could be set here in SO may not be specified in the said guidelines. But i don't think we need to be that much specific.
We're not reading thousand lines of some application's code but an example with bit of text with a snippet code which won't ever be so long that we need to set every details of formatting. Then we will go to another independant example.
{
character, and those who just put a space (which, I hold the strong opinion that it's the correct way).{1,2,3,4}
,{ 1, 2, 3, 4 }
... the inconsistency is killing me. Give democratic coding standards please.{1,2,3,4}