Surround code with triple backticks to mark where a block of code starts and ends:
```
var a = 0 // this is code
```
Inside this block change the formatting and background and ideally style the code language-specific by defining ```javascript for example.