Is it possible to make multiple lines a list with live template?


I have a couple of lines

this is line 1
this is line 2
this is line 3
this is line 4

What I'd like to do is select the four lines and somehow live template would convert it for me to

     <li>this is line 1</li>
     <li>this is line 2</li>
     <li>this is line 3</li>
     <li>this is line 4</li>

I don't seem to be able to come up with something using live templates. That can only sorround either the first line, or all lines as a single <li></li> item. Is there a way to do this?


Comment actions Permalink

Hi there,

Use Emmet (previously known as Zen Coding) for this.

Code | Surround with... | Emmet


Comment actions Permalink

Thank you! The link to the abbrev section is helpful!


Please sign in to leave a comment.