The code is clear but the actual problem you faced (at least on this side) is not yet clear.
To format the code use the markdown conventions. The following will do:Indent everything 4 spaces Code contained in a block with opening and closing lines with: ```
When you are writing a message there is a Compose ? link on the top right corner of the editing area. That will guide you to the full reference (which is here: commonmark.org)