• Login
Community
  • Login

How to highlight text?

Scheduled Pinned Locked Moved General Discussion
12 Posts 9 Posters 151.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.
  • R
    Rowan Sylvester-Bradley
    last edited by Jun 7, 2019, 4:47 PM

    How in N++ do I highlight a few words or a few lines in a text document? This could either be by changing its colour, or by adding a coloured background to it, or in some other way. I find that when I’m looking through a 20 Mbyte log file, and I want to come back to a section to analyse in more detail what’s going on, I often want to highlight it or flag it in some way. How do I do this?

    Thanks - Rowan

    M A 2 Replies Last reply Jun 7, 2019, 4:54 PM Reply Quote 0
    • M
      Meta Chuh moderator @Rowan Sylvester-Bradley
      last edited by Jun 7, 2019, 4:54 PM

      @Rowan-Sylvester-Bradley

      if you like to highlight words or sections temporarily, go to the menu search > mark, enter a text to highlight, and press mark.

      if you have about the same repeating keywords every time, you can create a user defined language at the menu language > define your language > create new.
      there you can set your desired keywords at the keywords list, where you have 8 groups available, where each can have different font and colour settings.

      best regards.

      1 Reply Last reply Reply Quote 4
      • A
        Alan Kilborn @Rowan Sylvester-Bradley
        last edited by Alan Kilborn Jun 7, 2019, 5:33 PM Jun 7, 2019, 5:33 PM

        @Rowan-Sylvester-Bradley

        In addition to @Meta-Chuh 's suggestions, how about Search > Mark All > ... which will work on preselected text?
        There you’ll find FIVE different colors for your pleasure. And by using Search > Jump Down > … you can easily come back later. (Also Jump Up).

        1 Reply Last reply Reply Quote 4
        • A
          ajay gohil
          last edited by Jul 29, 2019, 4:33 AM

          To highlight a block of code in Notepad++, please do the following steps

          1)Select the required text.
          2)Right click to display the context menu
          3)Choose Style token and select any of the five choices available ( styles from Using 1st style to using 5th style). Each is of different colors.If you want yellow color choose using 3rd style.

          A F 2 Replies Last reply Jul 29, 2019, 12:12 PM Reply Quote 1
          • A
            Alan Kilborn @ajay gohil
            last edited by Jul 29, 2019, 12:12 PM

            @ajay-gohil

            Except for the context menu part, that’s the same thing I said. I rarely use the feature, so I forget it is also on the context menu.

            1 Reply Last reply Reply Quote 1
            • P
              Prahlad-Makwana4145
              last edited by Aug 10, 2019, 5:15 AM

              –> To highlight a block of code in Notepad++, please do the following steps

              step-1 :- Select the required text.

              step-2 :- Right click to display the context menu

              step-3 :- Choose Style token and select any of the five choices available ( Styles from Using 1st style to using 5th style ). Each is different colors. if you want yellow color choose using 3rd style.

              –> If you want to create your own style you can use style configurator under Setting menu…

              A 1 Reply Last reply Feb 17, 2024, 3:24 PM Reply Quote 0
              • A
                Alan Kilborn
                last edited by Aug 10, 2019, 12:32 PM

                Why do people just keep saying the same things over and over? Really, if you don’t have something new and different to say, don’t reply and waste the bandwidth of all the readers of this forum.

                M 1 Reply Last reply Nov 18, 2021, 10:02 PM Reply Quote 0
                • M
                  mikegonzalez2k @Alan Kilborn
                  last edited by Nov 18, 2021, 10:02 PM

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • M
                    mikegonzalez2k
                    last edited by mikegonzalez2k Nov 18, 2021, 10:04 PM Nov 18, 2021, 10:03 PM

                    Here are the steps to highlight your CURRENT LINE.

                    Settings -> Style Configurator

                    60928979-6048-4ffd-a7e1-28b1242a7295-image.png

                    Global Styles -> Current Line Background
                    Change the Background Color.
                    In my case I turned it to a dark blue.

                    be062026-2806-40f0-99db-f3a8b20c1ef1-image.png

                    1 Reply Last reply Reply Quote 0
                    • A
                      Abhay Solanki @Prahlad-Makwana4145
                      last edited by Feb 17, 2024, 3:24 PM

                      @Prahlad-Makwana4145 thanks

                      1 Reply Last reply Reply Quote 0
                      • F
                        Farhan Yazid @ajay gohil
                        last edited by Jun 11, 2025, 2:56 AM

                        @ajay-gohil

                        Hi, any shotcut button to assign the highlight funtion?

                        P 1 Reply Last reply Jun 11, 2025, 2:45 PM Reply Quote 0
                        • P
                          PeterJones @Farhan Yazid
                          last edited by Jun 11, 2025, 2:45 PM

                          @Farhan-Yazid said in How to highlight text?:

                          Hi, any shotcut button to assign the highlight funtion?

                          By default, the Style One Token / Style All Occurrences of Token commands do not have keyboard shortcuts.

                          But if you use Settings > Shortcut Mapper, set Filter = style, you can choose any of them and use Modify to set a keyboard shortcut for that token-highlight style.
                          1ccdb944-484d-4a28-9bc6-c301a59b0478-image.png

                          (In case it’s not clear: Style all using Nth style in that dialog corresponds to Search > Style All Occurrences of Token > Using Nth Style [or the right-click context menu equivalent]; Style one using Nth style corresponds to Search > Style One Token > Using Nth Style [or the right-click context menu equivalent]. And for further clarification: the Search > Mark All that @Alan-Kilborn mentioned 6 years ago is the same as what’s now known as Search > Style All Occurrences of Token)

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