News for hackers. Stuff that matters.
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.
Re:Programming Fonts by matejn on Saturday July 09, 2022 @02:42PM (#32038073)
I also don't understand the default muted grey comments. I usually configure comments to be a bright red color.
Re:Programming Fonts by akira2501 on Saturday July 09, 2022 @04:14PM (#32038854)
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.