How to write formatted code blocks

Put the cursor on a blank line and click the </> Preformatted text button, or type a line of three tilde (`) characters above and below the code block.