Notes on syntax highlighting in html

Prism Download

Downloaded prism here

Theme Switch

Prism provides different css files for different themes. I handle this by loading both light and dark css files and dynamically disabling/enabling them depending on the page theme.

let test = 0;

Notes

The js file that prism requires is the same across themes (aside from the link in the comment at the top of the file).