Hacker News new | ask | show | jobs
by AnyTimeTraveler 1064 days ago
I have been diagnosed with ADHD and got an especially bad score for working memory.

I find myself tired out really quickly by a lack of syntax highlighting.

With syntax highlighting, I feel like I am not really reading the code anymore, but instead just registering the patterns and parsing the color tokens.

I think the most important aspect for me, is that I don't spend time reading where a token starts and ends. Ex.: If I wanna check the function name, I just have to read the only yellow thing in around this area.

I can register the tokens on a whole page in seconds, if the code isn't too dense. I just tried the same with syntax highlighting disabled and would say that I took about twice as long to parse the entire page. (I used a different, but similar file from a microcontroller HAL)