A case against syntax highlighting (2007)
linusakesson.net
linusakesson.net
I’ve turned off most colors in my shell and tmux too. I do have production servers show the command prompt in red, that’s about it.
I don’t know of any way to measure what programmers call “productivity” but subjectively I don’t think syntax coloring does anything for mine. Code usually has enough cues without needing to add color to it.
I cut my programming teeth on dumb terminals like the VT-100, no color, do that may have prepared or biased me early on.
The fact that you get all that with plain text and that color is a distraction for you is fascinating. This difference demonstrates how complex and deep human perception is.
I use linters and static code analyzers extensively, because I don't have an IDE or LSP flagging errors. I tried using VSCode (with and without colors), stuck with it for a while, but it felt slower and buggier than my usual vim + ctags + ripgrep setup.
But yes, I’d like to see some semantic highlighting.
Variable declarations in bold.
Mutating function calls / operators in a different colour.
Colour variables according to their type or scope.
Can that function call throw? It should look different.