Wraping a full line Notepad++
Lets say you have a list of items that you want to convert to an HTML <UL><LI> tag set.
In Notepad++ you can take the list and use the Search/Replace function with the "Regular Expression Mode" selected:
In the "Find What" box use the following, including the parenthesis:
(.+)
This will select each line.
Next you will use the "\1" code to let NPP know what you are going to "wrap". You "wrap" this with whatever you would like to wrap it with, say double quotes like this:
"\1"
or in our case, a <LI> tag set:
<li>\1</li>
This will allow you to wrap every line in a <LI> tag set.
In Notepad++ you can take the list and use the Search/Replace function with the "Regular Expression Mode" selected:
In the "Find What" box use the following, including the parenthesis:
(.+)
This will select each line.
Next you will use the "\1" code to let NPP know what you are going to "wrap". You "wrap" this with whatever you would like to wrap it with, say double quotes like this:
"\1"
or in our case, a <LI> tag set:
<li>\1</li>
This will allow you to wrap every line in a <LI> tag set.
0 Comments:
Post a Comment
<< Home