Use code blocks

Who can use this feature?

☞ Only workspace editors can edit code blocks.

☆ Available on free and paid plans.

Workspace members can insert code blocks in items. Code blocks are helpful for sharing small snippets of code. This can be useful for technical collaboration.

Adding code blocks to an item using Markdown

  1. Move your cursor to an empty line inside the item in which you'd like to add a code block.

  2. Insert three consecutive ticks: ```

  3. A code block will appear in which you can type or paste code.

Adding code blocks to an item using the insert menu

  1. Move your cursor to an empty line inside the item in which you'd like to add a code block.

  2. Click the red insert menu button.

  3. Select Insert Code (```).

  4. A code block will appear in which you can type or paste code.

Adding code blocks to an item using slash commands

  1. Move your cursor to an empty line inside the item in which you'd like to add a code block.

  2. Type /.

  3. Select Code block.

  4. A code block will appear in which you can type or paste code.