In case anybody's interested in slightly more complete guide than just showing how to use backticks to format code, there are two ways to format code:
1. Indent each line four spaces (can be done by highlighting code and pressing the
</> button in the formatting bar)
2. Put three backticks (
`) and a new line before and after the code:
Protip: If the syntax highlighting isn't very good automatically (it's usually pretty good, though), you can specify the language after the first three backticks:
And if you specify the language as text, it won't highlight anything :)
I hope this helps somebody!