The codeblock content type displays formatted blocks of computer code. 

 

Adding a Codeblock

On the course blueprint, click + Add Section, select Codeblock, and then click Add to Page.

AddingCodeblock.png

Codeblock Options

Options for codeblock include:

  • Coding language
  • Whether to show line numbers
  • Ability to select the first line number

CodeblockOptions.png

 

Language Choices

Choose a language for the codeblock from the drop-down list provided. 

LanguageChoice.png

Was this article helpful?