Code block
A code block keeps code readable: monospace, highlighted, with a copy button.
01Add a code block#
Type / and pick Code Block, then paste or type your code.
02Pick the language#
Use the picker at the top right of the block, for example JavaScript, Python, HTML, CSS, JSON, SQL, Shell or YAML. None leaves it plain.
03Copy it#
Click the copy button next to the picker.
In comments, use three backticks instead. See Markdown syntax.
Related guides
Was this page helpful?