Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++: Encapsulate text in tags

Tags:

html

notepad++

I was wondering if there is an easy way to put entire lumps of text in tags in Notepad++.

For example, say I have the following:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Is there a way how I can select the text in each line and then press a hotkey or something, and have all the text I just selected encased in a tag (such as a p tag)?

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
like image 934
Steve Avatar asked Nov 15 '10 05:11

Steve


1 Answers

Have a look at the Macro capabilities of Notepad++.

Your Macro would do the following, giving you have selected the Text to put in Tags.

CTRL-X
Type: <p>
CTRL-V
Type: </p>
like image 191
Daniel Avatar answered Sep 27 '22 00:09

Daniel