Code Highlighting in Canvas

While there is no native tool or plugin installed in our instance of Canvas at WSE, it is possible to use a code converter to input a variety of languages and generate HTML code that can be input into Canvas to serve the same purpose.

Adding HTML to Canvas

  1. After putting your code through a converter and getting the updated HTML, login to Canvas and navigate to the page where you want to add the code, then click Edit.
  2. When the Edit page opens, click on the </> symbol under the text box editor, to open the HTML editor.

  3. When the HTML editor opens, paste the content that was copied from the code converter into the textbox, and then click Save (or Save & Publish).

  4. When the page refreshes, you should see the specialized formatting for your code on the Page.

Was this article helpful?
0 out of 0 found this helpful