Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.