Adding a code block 

Via the block toolbar

Via keyboard and markdown shortcuts

Formatting a code block

Did this answer your question?