How to 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 this word are also highlighted.

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

+7
source share
3 answers

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

To change the cursor and the text border color found, set the key value with the name caret in the .thTheme file.

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

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

It looks like the yellow text frame found and the cursor in the Monokai Yar theme:

enter image description here

+5
source

I think you are looking for findHighlight and inactiveSelection

  <key>selection</key> <string>#C5DFE980</string> <key>findHighlight</key> <string>#ffe792</string> <key>inactiveSelection</key> <string>#ff7e00</string> 
+2
source

In Sublime Text 3 highlight option changes the border color of matching elements.

 <key>highlight</key> <string>#ff00ff</string> 
0
source

All Articles