Enclosing code/text elements in the code tag varies user to user. For example, one user put 'decimal' inside the code tag. Then another user edited the post and put it as simple text. Such types of examples are very frequent in Stack Overflow. It is confusing. Is there any guideline about which elements can be put inside the tag within the description?
closed as off-topic by Sonic the Anonymous Hedgehog, rene, Jenayah, Pierre.Vriens, Robert Longson Jul 31 at 6:24
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question's topic is only applicable to one specific site in the Stack Exchange Network. Questions on Meta Stack Exchange should relate to features or policies that commonly apply to the network or the software that drives it, within the guidelines defined in the help center. You should ask this question on the meta site where your concern originated." – Sonic the Anonymous Hedgehog, rene, Jenayah, Pierre.Vriens, Robert Longson
It's a code tag, not a formatting tag.
If it's code snippets, configuration file snippets or something shown in a console, and requires formatting to be preserved to make sense use code tags. For many languages on sites like SO this also gives you syntax highlighting.
You do not use code blocks to format things - usually. 'You use the
decimal type' and 'You use the decimal type' are functionally similar. However the latter feels more natural. However "Run
foobar.exe /baz" is more readable than "Run foobar.exe /baz".
You might also want to take a look at the edit reasons to get an idea of the editor's reasons. Fundamentally - always pick the clearer more readable format for the content.