Code blocks

A quick how-to on adding code blocks in your docs

Updated over a week ago

Add and edit code blocks

It's easy to add code blocks to the canvas of your Coda doc. You can use any of these three methods:

  1. Type /code block into the canvas (or a canvas column) to create a new code block

  2. Use our markdown by typing ``` to start our code block

  3. Select existing text, then use the inline toolbar to convert text to a code block

By default, the code block will be plain text. If you’d like to add syntax highlighting use the dropdown menu in the upper right hand corner of the code block.

To change a code block back to plain text, just click on the three dots to the left of the block, then choose Remove code style.


Related resources

Did this answer your question?