How to highlight text?



  • 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



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



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



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



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



  • –> 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…



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


Log in to reply