8

How can I change the default highlight colour in Sublime Text 2? I know I have to find a highlight key in one of the theme files but I don't know where these theme files are kept. Are they in the library somewhere?

8

Found the theme files in this directory:

~/Library/Application Support/Sublime Text 2/Packages/Color Scheme - Default/(name_of_theme)

You can see which theme you are using by going to (from within Sublime Text 2)

Sublime Text 2 menu>Preferences>Colour Scheme

and see which one is ticked.

Open the theme file and find the key that says:

<key>selection</key>

not one of the highlight keys.

Go to a site that shows hex colour codes (like this one http://html-color-codes.com/) and find the code for the colour you want. Then sub your new colour code into the line below the selection key in the theme file, replacing the old hex colour code.

Save the modified theme file and it should work straight away.

  • Seems like it doesn't work anymore in Sublime Text 3 – JavaRunner Jan 28 '18 at 2:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .