Code blocks

Display your code cleanly in your docs.

Adding code

Use the /code command to get started with adding code snippets into your docs.

For example :) This is how the code block will look.

If you like Markdown, you can also surround your text with three backticks.

Choosing your language 

You'll be able to select your coding language from the drop down menu along the right of the code block menu.

Code block options

You'll find 3 options in the inline menu for your code block:

    .1Copy code to clipboard
    .2Enable Wrapping code, rather than side-to-side scrolling
    .3Format code, to make indentation uniform and remove unnecessary spaces

Moving, expanding, copying, and deleting

You'll also have the four-dot menu to the left of your code block that can be used to drag and drop the block within your doc, copy its anchor link to this spot in the doc, or delete.

< - > Finally, the directional arrow icon lets you expand the block to full-width to work in a bigger space.