• Login
Community
  • Login

How to highlight all occurrences of different, but repeated words throughout the open file?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 6.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.
  • D
    Daniel_______
    last edited by Nov 2, 2018, 4:44 PM

    If I select a word in notepad++, all occurences of the same word are highlighted in the same open file. I am using this since years.

    Recently I have seen a screenshot of notepad++, where many different words were highlighted at the same time, with different colors. That is, i.e., all occurences of “ABC” highlighted in blue, all occurences of “123” highlighted in yellow, etc…

    I have not found a setting in notepad++, nor a plugin which could do that.

    How can this be done? This would be very handy in analyzing logfiles…

    Thanks
    Dan

    S 1 Reply Last reply Nov 2, 2018, 5:52 PM Reply Quote 2
    • S
      Scott Sumner @Daniel_______
      last edited by Scott Sumner Nov 2, 2018, 5:53 PM Nov 2, 2018, 5:52 PM

      @Daniel_______

      Are we supposed to fill in your blank? :-)

      You are taking about the Mark All feature. See Search (menu) -> Mark All. Below that there are 5 entries for 5 numbered "style"s. Each style is a different color.

      So, select some text and then try Search (menu) -> Mark All -> Using 3rd Style for example.

      Note also the nearby menu items:

      • Unmark All
      • Jump Up
      • Jump Down

      Fairly self-explanatory? Maybe all except for Jump – read that as “Jump up (or down) to closest text styled with this style number”.

      The Find Style that appears in the two Jump submenus means the redmarking that appears when you use the Find (ctrl+f) feature’s Mark subfeature. (Bad choice of names as the Mark feature has nothing to do with the Mark All feature–except this slight menu overlap!)

      Best advice I can give: Experiment a bit to get the feel of it.

      1 Reply Last reply Reply Quote 1
      • D
        Daniel_______
        last edited by Nov 2, 2018, 10:53 PM

        Hi @Scott,

        Got it, thanks to your explanation. Very appreciated.

        Now I like notepad even more :-)

        Dan

        S 1 Reply Last reply Nov 3, 2018, 12:18 AM Reply Quote 2
        • S
          Scott Sumner @Daniel_______
          last edited by Nov 3, 2018, 12:18 AM

          @Daniel_______

          I probably should have mentioned what has disappointed people in the past: The styling you do with this won’t be remembered by Notepad++ if you exit and restart it. It doesn’t bother me all that much; perhaps that’s why I didn’t think to mention it in my first reply.

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