I know that I can double click a word and Notepad++ will highlight all instances of that word within the document. My question is not about this.

Does anyone know of a plug-in or setting which will allow me to select as many characters as I please and highlight all occurrences of those characters?

Given the following text file:

$hey_you = 'hey you';
$hey_me = 'hey me';
$hey_we = 'hey we';

With my cursor I wish to select $hey_ and have the 3 $hey_s highlighted.

Also, if the scroll-bar could behave like Google Chrome's with yellow markings then that would be a huge bonus, too.

enter image description here


With my cursor I wish to select $hey_ and have the 3 $hey_s highlighted

Select the text $hey_ and then Menu > Search > Mark All > Choose a highlight style:

enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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