Code Snippets

Code snippets can be displayed on any chapter page by using the "Code" option from the style dropdown.

# Here is an example block of code using the "Code" style.
var x = 1;
x++;
console.log(x);

To add new lines to the same block of code, hold down Shift while pressing enter to do a soft line break.

Currently, displaying HTML (or any language that uses brackets < >) is not fully supported.

Inline Code

Inline codes like this can also be used by choosing the "Code (Inline)" option from the style dropdown.

CC BY

CC BY: This work is released under a CC BY license, which means that you are free to do with it as you please as long as you properly attribute it.