Syntax highlighting on the web often involves using RegEx to find tokens and wrap them in <span> tags with classes.
An alternative highlighting method involves using JavaScript's Highlight() API to set ranges on text and then style them using CSS selectors.