Codeblock

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.

Codeblock1.png

Codeblock Options

Options for codeblock include:

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

 Codeblock2.png

 

Language Choices

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

 

Codeblock3.png