Community
    • Login

    Color of hits for find and replace

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 127 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      coder20980
      last edited by

      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

      Alan KilbornA CoisesC 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @coder20980
        last edited by

        @coder20980

        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.

        1 Reply Last reply Reply Quote 2
        • CoisesC
          Coises @coder20980
          last edited by Coises

          @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…)

          C 1 Reply Last reply Reply Quote 5
          • C
            coder20980 @Coises
            last edited by

            @Coises Thanks, it was the smart highlighting. Problem solved.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors