To post code here, you can either highlight the code and use the </> button on the edit box to format it, or type three backticks
```
on a line above your code, and three on a line below it. I find this method easier. (The backtick is left of the 1 on my UK keyboard; unfortunately, some European keyboards don’t have that key at all.)
(You’ll find a more detailed reply in this thread.)