I want to select all text with same style token applied on notepad++. My goal is to remove all similarly styled words and sentences.
5 highlighting styles in Notepad++ serve for your visual navigation and currently they have no further use for processing. But you can manually add some text to them once you finished highlighting. That will enable possibility of automated processing.
You can do this:
- Find a character not used in your file. E.g.
#. (Or in worst case, take for example this one:
- Surround your highlighted phrases with that character, e.g.
- Using regex replace like
¤.*?¤(replace with: empty) you can remove all marked sentences.
As an alternative, you can go without style tokens, clearing text immediately as you find it:
Lorem(or entire phrase) as selection.
- Press Ctrl+H to show find/replace dialog (what you marked is already inside).
- Clear content of Replace With box (if any).
- Click Replace all.
If you expect some more comfortable way, then I'd agree with you it is not implemented.