Community
    • Login

    Highlight hit words (search)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 4 Posters 2.0k 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.
    • Kard NailsK
      Kard Nails
      last edited by Kard Nails

      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

      Neil SchipperN 1 Reply Last reply Reply Quote 0
      • Neil SchipperN
        Neil Schipper @Kard Nails
        last edited by

        @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
        • Alan KilbornA
          Alan Kilborn
          last edited by

          @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

          Kard NailsK 1 Reply Last reply Reply Quote 3
          • Kard NailsK
            Kard Nails @Alan Kilborn
            last edited by Kard Nails

            @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.

            PeterJonesP 1 Reply Last reply Reply Quote 0
            • PeterJonesP
              PeterJones @Kard Nails
              last edited by PeterJones

              @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.

              Kard NailsK 1 Reply Last reply Reply Quote 3
              • Kard NailsK
                Kard Nails @PeterJones
                last edited by

                @peterjones
                Thank you! That was indeed the case.

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