Skip to content

How to add code block in document

To add a code block in your document, follow these steps:

  1. Type the Slash Command: In your document, type /code. This will trigger the command menu.

  2. Select Code Option: From the dropdown menu, choose the “Code” option which allows you to insert a code block into your document.

  3. Enter Your Code: After selecting the code block, paste or type your code into the block area that appears.

  4. The Code Block Appears: The code will be formatted with syntax highlighting, allowing easy readability and distinction from regular text.