Billy's Blog

To post pictures and other goodies for free on the net.

My Photo
Name:
Location: Utah, United States

Born in Kapiolani Children's Medical Center, just a few blocks from Waikiki. Graduated from Kahuku High School. Rode BMX Freestyle for most of my life (more than 20 years), now my 8 year old son is ripping up the skate parks, but plans on getting drafted by the SeaHawks as a WR.

Friday, September 04, 2015

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.

0 Comments:

Post a Comment

<< Home