3 ms·
> Syntax highlighting is mostly a matter of taste To quibble a bit: Color choice is mostly a matter of taste, but highlighting itself is a matter of workflows.
by Terr_ 1y ago
> Syntax highlighting is mostly a matter of taste
To quibble a bit: Color choice is mostly a matter of taste, but highlighting itself is a matter of workflows. Highlighting syntax in particular just happens to be a default most people find acceptable.
In other circumstances, the user may benefit from coloring by variable data-type, or coloring by distinct variable name, or coloring by scope, etc. Often IDEs will keep the font color, and use other channels like a highlight-box around some text, or gutter-icons.