Sublime Forum

"Scope Name" for Find and Replace (crtl+h)

#1

Hi, could you help me with this please?
Here is an image of my cursor when I’m doing a selective find and replace using crtl+h (or more specifically ctrl+shift+h)
Find%20and%20Replace
where it says mpf_sub(temp_real,real_sqrd hopefully you can see the white cursor around the b
I’d like to make that much more garish, possibly solid.
I know I have to change one of these settings, but which one? (I’m trying to avoid using trial and error)


It might not be one of those particular scopes, but just to show that I know vaguely where to change.
I’ve edited a lot of the other colours, but this one’s got me stumped. Oh ST3, just in case…

Cheers me dears :heart_eyes::beers:

0 Likes

#2

The colors used for the find highlight aren’t scoped because they’re not a syntax element in files; they’re covered by settings in the global part of the color scheme: https://www.sublimetext.com/docs/color_schemes.html#global_settings-find

For example, if you wanted the highlight to be magenta:

{
    "globals":
    {
        "highlight": "magenta",
    }
}

find_highlight and find_highlight_foreground set the colors used for text that’s matches, and highlight sets the color of the outline of “other” matches in the buffer.

1 Like

#3

Hi OdatNurd,
Nice to have an easy problem to fix eh ? And thank you !
Here’s a screen shot (of my somewhat demented colo(u)r scheme) with new improved popping out of find results:
F%26RST3new
(selected just one letter, if you like a worst case scenario)
I did some other alterations so only the find colour is pink, which helps. (Previously numbers were pink)
Finally I had to actually add the "highlight" variable (just below globals) as it wasn’t present in the origional color scheme. Maybe handy for other folks…
globalsColST3

:unicorn: :skull_and_crossbones:

Ps There isn’t a highlight_background I was wondering if it was possible to do something even more garish ((eg) have a cyan(!?) background under the pink loop) for elements found (but not selected). In my screenshot everything that surrounded by a pink ring, (rather than the selected element which has a pinkbackground and black writing).

0 Likes