Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the border color of words matching a selection in Sublime Text 2?

For example, double clicking on a word selects it, then all matches of that word are also highlighted.

What keys do I change in my theme to change the background, foreground, and/or the border colors for the matching words?

like image 784
trusktr Avatar asked Nov 18 '12 23:11

trusktr


2 Answers

There is no configuration key for the colour of the border around unselected found text in Sublime Text 2: the colour of the found text border is the cursor colour. If you want to change it, you must change the cursor colour.

To change the cursor and found text border colour, set the value of the key named caret in the .thTheme file.

In other words, if you want a yellow found text border, you must also have a hello cursor. For example:

<key>caret</key>
<string>#ffff00</string>

This how the it looks with a yellow found text border and cursor in the Monokai Bright theme:

enter image description here

like image 155
Steve HHH Avatar answered Oct 03 '22 17:10

Steve HHH


I think you're looking for findHighlight and inactiveSelection

            <key>selection</key>
            <string>#C5DFE980</string>

            <key>findHighlight</key>
            <string>#ffe792</string>

            <key>inactiveSelection</key>
            <string>#ff7e00</string>
like image 38
Allen Bargi Avatar answered Oct 03 '22 19:10

Allen Bargi