• Login
Community
  • Login

Highlight hit words (search)

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 4 Posters 2.1k 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.
  • K
    Kard Nails
    last edited by Kard Nails Apr 26, 2022, 10:09 AM Apr 26, 2022, 10:08 AM

    Hi all,

    I am having an issue with Notepadd++ not highlighting the hit words after using the “Find all” search option.
    Style Configurator > Search Results > Hit Words
    Changing the values does not seem to affect anything. The only configurable one in Search Results is apparently the Current line background color.

    Version 8.3.3
    Windows 10 64-bit

    N 1 Reply Last reply Apr 26, 2022, 11:11 AM Reply Quote 0
    • N
      Neil Schipper @Kard Nails
      last edited by Apr 26, 2022, 11:11 AM

      @kard-nails said in Highlight hit words (search):

      not highlighting the hit words after using the “Find all”

      Do you know the diff betw “highlight” and “mark”?

      (If you truly want to only highlight, enable Prefs -> Highlighting -> Smart Highlighting, and search once.)

      I think you want “Mark All” (“Mark” tab). “Find all” gathers into “search results” pane or window but does not mark.

      Style Configurator > Search Results > Hit Words

      I don’t see that setting in v8.3.3. Are you correctly writing the setting location?

      1 Reply Last reply Reply Quote 2
      • A
        Alan Kilborn
        last edited by Apr 26, 2022, 12:17 PM

        @kard-nails:

        Style Configurator > Search Results > Hit Words

        Perhaps a picture helps here:

        3175a84a-33e1-4084-877b-f3c989553a6d-image.png

        The word Software is the “Hit Word” here, and the one for which you are configuring the colors.

        Changing the values does not seem to affect anything.

        Are you expecting the color in the main editing window to change? If so, as Neil says, you want to use the Mark function in the Find dialog; this will achieve:

        f5ad0650-da71-46ef-b351-0e65c611c4a1-image.png

        If you don’t like that coloring, you may change it here:

        360b9228-d9d1-4440-b098-734e0c5bc0bf-image.png

        K 1 Reply Last reply Apr 26, 2022, 9:04 PM Reply Quote 3
        • K
          Kard Nails @Alan Kilborn
          last edited by Kard Nails Apr 26, 2022, 9:05 PM Apr 26, 2022, 9:04 PM

          @alan-kilborn
          Thanks for the reply. Perhaps a picture helps here:
          4cbfac9a-1cec-4ae2-9c6f-f9502766119b-image.png

          As seen above the word “fix” is the “Hit Word”, for which I am configuring the colors. It is neither “highlighted” nor “marked”. Changing none of the values (color, bold, font size) has any effect on the hit words in the search results.

          P 1 Reply Last reply Apr 26, 2022, 9:23 PM Reply Quote 0
          • P
            PeterJones @Kard Nails
            last edited by PeterJones Apr 26, 2022, 9:24 PM Apr 26, 2022, 9:23 PM

            @kard-nails ,.

            Given your complete lack of colored text in your screenshot – whether in the main text or in the search results – I am going to conclude that you have set Style Configurator > Global Styles > Global Override to “enable global foreground colour” and “enable global background colour”. If you want colors elsewhere in the Style Configurator to work, don’t do that.

            NO:
            5e2adcc9-8f36-4295-9fee-9846dbbf6076-image.png

            vs

            YES:
            293860ff-32a8-43bb-8b6d-fb9113374716-image.png

            Global override is truly global.

            K 1 Reply Last reply Apr 26, 2022, 10:11 PM Reply Quote 3
            • K
              Kard Nails @PeterJones
              last edited by Apr 26, 2022, 10:11 PM

              @peterjones
              Thank you! That was indeed the case.

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