Author ManagementBasic FeaturesBook CoversCalloutsEquations with LaTeXGlossariesImagesMicrosoft Word ConversionPDF ConversionPublic SubmissionsWYSIWYG EditorAdvanced FeaturesAPICanvas EmbeddingChecking Grammar and SpellingCode SnippetsCSS CustomizationEmbedding H5P ElementsFlights or A/B TestingGoogle AnalyticsLanguagesPractice QuizzesSimplified ViewSynchronizationAppendixFeature List

Code Snippets

Code snippets can be displayed on any chapter page by using the "code" style.

# 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.