How to format code

To write a code word in regular text wrap it in backticks (`).

To create a

code block

put three backticks on a line, start a new line and then paste your code - then put three backticks on a new line.

Discourse automatically does syntax highlighting for us :slight_smile:

5 Likes