textsublimetext3highlight

Change highlight colour in Sublime Text 3?


How can I change the default highlight colour in Sublime Text 3? I used to know how find a highlight key in one of the theme files in ST2 but things changed quite on ST3. Are they in the library somewhere? "Preference >> Browse Package" is almost empty.


Solution

  • You can see which theme you are using by going to

    Preferences>Colour Scheme
    

    and see which one is ticked.

    Open the theme file and find the key that says:

    <key>selection</key>
    

    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.

    EDIT
    Install PackageResourceViewer plugin using package control. Open the command palette with P (for windows/linux CtrlShiftP) and type prv to get the PackageResourceViewer options. Choose Open Resource >>Theme- YourTheme >> and edit your theme file