Code blocks

On desktop

To insert a code block on Mac or Windows, simply type 3 backticks ``` or click the code block icon in the formatting bar.
Syntax highlighting is supported for a number of programming languages. To change the display language of your code:
  • Right click on code block > Select Language
  • Select a programming language in the list

On mobile

To insert a code block on iOS or Android, tap the + button in the formatting bar and select Code Block
Copy link