Notepad++ highlight occurrences of selected text

notepad

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

Best Answer

Try the Settings -> Preferences -> Highlighting and uncheck the "Match whole word only" under Smart Highlighting.

that seemed to work for me.