Sublime Forum

Python Comments Line Color?

#1

How can I modify the Python config files to get a different color for comment lines.
In my scheme, anything after (and including) # is a faint white, barely readable.
I think it’s the same for triple quoted strings.
How can I set these to specific colors of my choosing.
Thanks,
Rob

0 Likes

#2

The color for the comments comes from the color scheme you are currently using. To find out what color scheme is in use, you ca go to Preferences: Settings & see what is defined in the color_scheme key. There are 2 options after that :-

  1. Either manually create a file of the exact same name in the User directory & place a rule to change the color of the comment.
  2. Use the PackageDev package & choose PackageDev: Edit Current Color Scheme to get a split layout window & copy the rule that corresponds to the scope comment from LHS & paste it in rules array of RHS & change the foreground color to something you prefer.
0 Likes