That could be done with a saved search.
Find: [\<\!\-\-|\/\*]\s*(.*?)\s*[\-\-\>|\*\/]
Replace: \1
- highlight commented section, including tags
- hit saved search button
I’m pretty sure you can assign a shortcut key for the clip(s), maybe you can do the same for a saved search??
Also, I’m not sure you need to escape every character in the find - I’m writing this on my phone without testing - but you get the idea. If I’m wrong I guarantee someone will correct it!
Edit: added \s* to not capture any spaces to prevent adding space every time this method is used.
</CDO>
Last edited by Turtle91; 04-11-2022 at 09:00 PM.
|