In Notepad++, whenever you select any word in an HTML document (or in your CSS), similar words are automatically highlighted.
Is there a shortcut I can use to edit all of these highlighted segments at once?
CTRL+H to get to the Replace dialog (or Search ==> Replace via the menu). Input the string to find and input the string to replace it with and then hit the 'replace all' button on the right.
To Replace the Highlight;Open the Find and Replace dialog (Ctrl H) and click the More button. Click the Replace All button and Word will replace all your highlighting.
Edit: OP wants to remove the literal MPRINT() as per comment below. Using regex mode and searching for MPRINT\((\w+)\) will find what you've asked. The "inner" set of brackets will capture the internal text. Fill the Replace with : field with $1 will replace the entry with the inner text when you hit Replace .
Currently, the ability to select all similar text and edit (like the Ctrl+D functionality in Sublime, as mentioned by @George) is not built in to Notepad++ version 6.9.2. It does sound like it will work when Notepad++ updates the version of Scintilla it uses as the functionality is built in to the newer version of that.
The only way to accomplish something similar to the multi-line edit you speak of is to either use the replace function or Notepad++'s version of multi-editing.
You first need to enable this feature in Notepad++. Do this by going to Settings→Preferences→Editing and then enable Multi-Line Edit. Now when you hold Ctrl and click around your text, a cursor will be left at the location of each click. When you're done locating all of the places you'd like to edit, you can start typing. Whatever you type will now appear at each of the locations you left a cursor at.
Ctrl + F, enter word, enter replacement. "Hit Replace all".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With