Notepad++ doesn't have the functionality built in, but I figured out how to do it with a macro.
This method has one drawback: it puts the text you had highlighted on the clipboard. In most cases this shouldn't be an issue; it's just something to be aware of.
The steps are:
(Highlight some text - it doesn't matter what.)
Macro -> Start Recording
CTRL-X
(Type in the beginning tag)
CTRL-V
(Type in the ending tag)
Macro -> Stop Recording
You can then save the macro and use it as often as needed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a possibility to put HTML tags around selected text?
(Psp has a nice function to do this (clips), I hope Notepad++ has it as well?
thank you.
Great solution!
Notepad++ doesn't have the functionality built in, but I figured out how to do it with a macro.
This method has one drawback: it puts the text you had highlighted on the clipboard. In most cases this shouldn't be an issue; it's just something to be aware of.
The steps are:
(Highlight some text - it doesn't matter what.)
Macro -> Start Recording
CTRL-X
(Type in the beginning tag)
CTRL-V
(Type in the ending tag)
Macro -> Stop Recording
You can then save the macro and use it as often as needed.