CoverIntroductionAbout EdTech BooksAccount ManagementCreating a BookCreating a ChapterEditing a ChapterAuthor ManagementEnsuring QualityPublishing My BookEssential ConceptsUser Interface & Visual DesignWriting For The WebCopyright and Open LicensingColor Theory in Experience DesignMultimedia DesignBasic FeaturesBook CoversCalloutsEquations with LaTeXFootnotesGlossariesImagesMicrosoft Word ConversionPDF ConversionPublic SubmissionsStylesVideosWYSIWYG EditorAdvanced FeaturesAnalyticsAPIArtifactsCanvas EmbeddingChecking Grammar and SpellingCode SnippetsCSS CustomizationFlights or A/B TestingGoogle AnalyticsH5P Element EmbeddingLanguagesPractice QuizzesSimplified ViewSynchronizationURL ShorteningAdd-on ServicesDOI RegistrationLifelike Text-to-SpeechPrint ServicesAppendixFeature ListCommunity Meeting 2021

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.