Color of hits for find and replace
-
I’d like to change the color of the active result from a find-and-replace. Notepad++ highlights all the results found, but when replacing hits one by one, I have trouble telling which hit is the active one that will be replaced if I click the “Replace” button. Can anyone tell me how to do this? I’m using ver. 8.8.3 on Win11
-
Can you show some examples of this? e.g. screenshots
Because I’m not following what you are saying.
Notepad++ uses text “selection” to highlight these sort of matches. The coloring for text selection is rather unique by default, so there should be no confusion with other colors, hence my request to see what you are seeing, so that we can possibly help solve your problem.
-
@coder20980 said in Color of hits for find and replace:
Notepad++ highlights all the results found
Um… not really. What I think is happening is that Notepad++ is selecting what you found, but then “Smart Highlighting” is highlighting other occurrences of the same text.
Try this: Open Settings | Preferences… | Highlighting and uncheck Enable in the Smart Highlighting box. See if that makes the problem go away.
If you find that it does make the problem go away, but you miss Smart Highlighting, then experiment with the Background color at Settings | Style Configurator… | Global Styles | Smart HiLighting and try to find one for which the combination with the selection background color is distinct enough from the the smart highlighting color alone that it is visually clear which is which. (Yes, I’ve been there…)
-
@Coises Thanks, it was the smart highlighting. Problem solved.