Syntax Highlighting gives color to every type of token.
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.