Re:Programming Fonts
by dan-robertson on Saturday July 09, 2022 @01:22PM
(#32037282)
Use italics to make comments obvious instead of making them some colour that doesn’t contrast with the background much. Comments are pretty important so I don’t know why typical syntax highlighting obscures them. I think italics make them conspicuous and conspicuously not code.
[ Parent
| on HN ]
I also don't understand the default muted grey comments. I usually configure comments to be a bright red color.
I can just highlight the region if I really want to read it, but mostly, I don't want comments competing for attention in my code and I write a _lot_ of comments in there. It's generally a 1:1 ratio in what I write, so if my comments were bright red my eyes would be burning at the end of the day.