top | item 46540758

(no title)

quadrium | 1 month ago

Most syntax highlighting adds too many color variations.

In light modes, I find that variations gray and bolding certain symbols, variable names, function names in definitions and method calls to be enough.

Just enough hint so the brain can skim for the matching information. My editor highlights the opening and closing brackets of my current block,but indent level indicators are usually enough for me to visually validate.

Dark modes make contrast more difficult to discern though.

discuss

order

louthy|1 month ago

> Most syntax highlighting adds too many color variations.

Different strokes, for different folks. I personally use Monokai where each token type has and ‘extreme’ colour (like full red, full green, full yellow, etc.) — I absolutely love it and, for me, makes code much easier to parse

reactordev|1 month ago

And then there's Rainbow Brackets...

publicdebates|1 month ago

I used to love rainbow brackets when they became popular about 10 years ago. Now I find that I almost never care about bracket color, and often it's distracting and I'd prefer them to be the same color.