You have to include your code between back-ticks to get code block effect.
You'll find it at the top-left corner on your keyboard.

Picture source: [Keyboard layout]
You have to include your code between back-ticks to get code block effect.
You'll find it at the top-left corner on your keyboard.

Picture source: [Keyboard layout]