Add Code Snippets

Insert snippets of code into any HTML page you build in D2L.

Note: This feature is not available in Quizzes

Note: Students can also use this tool to add code snippets to discussions and Text Submission assignments.

  1. Click the Insert Other Options icon (looks like a plus sign).insert other options icon
  2. Select Insert Code.insert code option in menu
  3. Select your coding language.source code editor


  4. Enter the snippet of codesource code editor
  5. Click the checkmark to save.checkmark