Sublime Forum

Make found text stand out

#1

When I search in my text (ST3 with vintageous), the found text is surrounded with a faint outline that is very hard to make out. Is there a way to make the found match(es) stand out more clearly?

0 Likes

#2

Edit your color scheme.

A plugin that is going to help you: ColorSchemeEditor

Install it, in the command palette, search for edit color scheme, and in the file that is open, search for find. There is different thing you can set.

Matt

1 Like

#3

Hi math2001, I’ve installed ColorSchemeEditor, but when I activate edit color scheme, I get an empty file Sunburst.tmTheme.

0 Likes

#4

Hi!

Oh! Sorry, it’s because your packages are in a .sublime-package file. You need to extract it. Use PackageRessourceViewer.

Install it, extract the package in which there is the color scheme you want to edit (in the command palette: Extract Package), and then run Color Scheme Editor.

Sorry again.

Matt

0 Likes

#5

No apologies required or expected, I’m the one asking for help. I have extracted the current color scheme, but there’s no ‘find’ in the resulting file.

0 Likes

#6

it means that your color scheme hasn’t specified anything, you need to add yourself:

At the begining of the file, there is something like this:

<dict>
    <key>settings</key>
    <dict>
        ...
    </dict>
</dict>

Where there is the ..., add this:

<key>findHighlight</key>
<string>#FF0000</string>
<key>findHighlightForeground</key>
<string>#FFFFFF</string>

Now, it’s going to highlight it in red, and the color of the text should be white. It’s ugly, it’s just to check that it works.

matt

0 Likes

#7

The top of that file loks like this for me:

?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>name</key>
	<string>Solarized (dark)</string>
	<key>settings</key>
	<array>
		<dict>
			<key>settings</key>
			<dict>
				<key>background</key>
				<string>#042029</string>
				<key>caret</key>
				<string>#819090</string>
				<key>foreground</key>
				<string>#839496</string>
				<key>invisibles</key>
				<string>#0A2933</string>
				<key>lineHighlight</key>
				<string>#0A2933</string>
				<key>selection</key>
				<string>#0A2933</string>
			</dict>
		</dict>
		<dict>
			<key>name</key>
			<string>Comment</string>
			<key>scope</key>
			<string>comment</string>
			<key>settings</key>
			<dict>
				<key>fontStyle</key>
				<string></string>
				<key>foreground</key>
				<string>#586E75</string>
			</dict>
		</dict>
		<dict>
0 Likes

#8

http://docs.sublimetext.info/en/latest/reference/color_schemes.html should be able to help.

0 Likes

#9

I started from another theme which did have the keys, but so far the changes don’t “take”. I see no bright red blocks when searching, or after searching; during search, the matches remain brownish (based on the monokai theme), and after the search, there’s just the faint outlines.

0 Likes