Community
    • Login

    how to enlight more than word ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    highlighting
    4 Posts 3 Posters 542 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.
    • jmclejJ
      jmclej
      last edited by

      Hello,
      I like the functionality that enlights all the same words that the one selected but I would like to have the same whenever I selecte more than one word.
      How can I select the words “it is a test” for instance and have Notepad++ higlights all the occurences of this sentence please ?
      Regards

      Alan KilbornA jmclejJ 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @jmclej
        last edited by

        @jmclej

        Try selecting your phrase and choosing something from this menu: Search > Mark All > …

        1 Reply Last reply Reply Quote 2
        • PeterJonesP
          PeterJones
          last edited by

          @jmclej said:

          how can I … highlight all the occurrences of this [selection]

          The Smart Highlighting options are found in Settings > Preferences > Highlighting. If you turn off “Match whole word only”, then it will allow you to Smart Highlight on part of a word (like the “he” from “the”) or across multiple words (like your example of “it is a test”). The definition of “word” is affected by Settings > Preferences > Delimiter, so you could also add “space” to the word-character list – though that would have unintended consequences that could make it not work as you expect (so probably not a good idea).

          1 Reply Last reply Reply Quote 2
          • jmclejJ
            jmclej @jmclej
            last edited by

            Thanks for both useful answers !

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