Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: