Posting Code on Community
Hey, everyone. A lot of people have had issues posting their code in the Community, so I thought I'd give a quick tutorial on the subject.
When posting, the editor uses Markdown to structure discussions, code questions, and comments. If you're not familiar with Markdown, there's a great tutorial here to get you up to speed.
Markdown comes in many flavors—the one we use has fenced code blocks. To denote a code block, place 3 backticks (or grave accents) before your code and 3 after. This is the mark usually found beneath the tilde. On US keyboards, you can find it here:
The syntax highlighting works best when you drop you code on a new line between the backticks, like so:
While we love Markdown, we understand that not everyone is familiar with the syntax. We're actively working on improving the editor to make it simpler and more comfortable for Community members to use.
If you have any thoughts on how we can improve the editor, let us know! Comment below with any comments or questions.