About
Syntax Highlighting gives color to every type of token.
Articles Related
Implementation
Syntax highlighting is generally achieved via linter.
The linter creates a syntax tree that is traversed by the syntax syntax highlighter code that gives a color to every different type of token.
Library
- Javascript: https://craig.is/making/rainbows, https://prismjs.com/