Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Notepad++, when I select (eg. double-click) a "word", it gets highlighted. It needs to be separated with a non-alpha character from the rest of the text. The highlight remains until the text is selected.

Is there a way to make this highlight "permanent", ie. remain when the word is not selected any more?

Nice to have: can partial words be highlighted?

share|improve this question

2 Answers 2

up vote 30 down vote accepted

Just use the mark feature.

  1. Open the Search & Replace dialog and go to the Mark tab.

  2. Enter your search term and click Mark All.

    enter image description here

  3. All occurrences are now permanently marked:

    enter image description here

To remove the marks, simply open the dialog again and click Clear all marks.

Alternatively, while you have the word selected, you can use the Mark functionality in the Search menu:

enter image description here

This also allows you to mark all occurrences of a given string in the document (and you can even have multiple markers going on simultaneously).

Please note that both approaches work perfectly fine with partial words. In fact, multiple markers can apply to the same partial string. Here I've used a marker for port and one for mporta:

Using multiple markers simultaneously

share|improve this answer

Select your text > Right click on the text area > Choose Style Token from context menu > Apply the style you need. Done.

share|improve this answer
1  
This one is very handy! –  naxa Mar 3 at 11:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.