Change The Color Of Comments?

#1

Can anyone tell me, how I can change atom comments color, cause when I’m working in the night with light off and the software of protecting eyes On, They become very hard to read .

el medi

0 Likes

#2

Under File -> Stylesheet, you can open your styles.less file. Add this rule:

atom-text-editor .syntax--comment {
  color: cadetblue;
}
4 Likes

#3

Thank you .

0 Likes

#4

This page shows up near the top of searches on the topic, however, tips on how to get the comment boundaries to match the comment colors is a bit harder to find. No the less, its nice that there is an option for both parts. This will set both:

atom-text-editor .syntax–comment, .syntax–punctuation.syntax–definition.syntax–comment {
color: cadetblue;
}

Credit to the other sources:


0 Likes

#5

try not to copy-paste the exact code given in the post bcz some characters will not be pasted properly inside atom instead write the code manually
and also there will be --(double hyphen) in place of all the -(single hyphens)

0 Likes