This post is modeled on Markdown Code Formatting - Guide - The freeCodeCamp Forum, but modified for the slight differences between the Forum and Gitter. If you are interested in using Spoiler blocks, check this post: Spoilers.
You can post code in two ways. Single word/line snippets can be handled inline. Multiple lines should be handled in code blocks:
Wrap your code in a single back ticks:
Wrap your code in triple back ticks, with new lines between the back ticks and code:
You can use the code
Alt+0096 to get a backtick on any keyboard with a numeric pad