Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Background color, notepad++ for highlighting purposes

Is there a way in Notepad++ to highlight a snippet of text and change it's background color? I would like it to remain that color within the editor for highlighting purposes. I don't want the color to change the code at all.

like image 222
sherriev Avatar asked Apr 23 '13 18:04

sherriev


People also ask

Is there a way to highlight in notepad?

If you want to highlight one word at a time, press Ctrl while holding down Shift , and then press Left arrow or Right arrow . If you want to highlight a whole line of text, move your cursor to the start of the line, hold Shift , and then press Down arrow . You may also use the shortcut key combination Shift + End .

Which option is used to highlight the background of text?

The correct answer is Shading. For the color background of the text in a document, select the text and choose a color as per requirement.


1 Answers

You can get the effect you want by right-clicking on the highlighted snippet and selecting "Style token" -> "Using (n)th style".

This will also highlight any other sections of your code which are identical to the one you selected, which may or may not be what you want. However the highlighting will only remain for as long as you have that file open in notepad++. If you close it, you will lose the highlighting.

like image 160
Nate Allen Avatar answered Oct 17 '22 10:10

Nate Allen