The easiest way to create a code block:
Select several (!!!) lines using the mouse and click on the "Insert code" button in the toolbar at the bottom of the editor window.
Otherwise:
This:
This is `your code here`
gives an inline code:
This is your code here
This:
This is ```your code here ```
gives also an inline code:
This is your code here
This:
```
your code
more code
even more code
```
gives a code block:
your code
more code
even more code
At least four spaces at the beginning of every line:
your code
more code
even more code
gives also a code block:
your code
more code
even more code
BTW: It's the backward-leaning apostrophe, not to confuse with the upright apostrophe or the forward-leaning apostrophe! (You might have to use SHIFT to reach it, depending on your keyboard layout.)
- Michael Sy.