Manually highlight selected text in Notepad++ [closed]
Solution 1:
To highlight a block of code in Notepad++, please do the following steps
- Select the required text.
- Right click to display the context menu
- Choose
Style token
and select any of the five choices available ( styles fromUsing 1st style
tousing 5th style
). Each is of different colors.If you want yellow color chooseusing 3rd style
.
If you want to create your own style you can use Style Configurator
under Settings
menu.
Solution 2:
"Select your text, right click, then choose
Style Token
and then using 1st style (2nd style, etc …). At the moment is not possible to save the style tokens but there is an idea pending on Idea torrent you may vote for if your are interested in that."
It should be default, but it might be hidden.
"It might be that something happened to your
contextMenu.xml
so that you only get the basic standard. Have a look in NPPs config folder (%appdata%\Notepad++\
) if thecontextMenu.xml
is there. If no: that would be the answer; if yes: it might be defect. Anyway you can grab the original standart contextMenu.xml from here and place it into the config folder (or replace the existing xml). Start NPP and you should have quite a long context menu. Tip: have a look at thecontextmenu.xml
itself - because you're allowed to change it to your own needs."
See this for more information