[TxMt] list (ul/ol) HTML snippet question

Sune Foldager cryo at cyanite.org
Sat Sep 10 06:40:26 UTC 2005

On 09/09/2005, at 19.54, minimal.design wrote:

> I was trying to figure out how I could write a snippet that would  
> wrap a bunch of lines into a HTML list...  lets say you got this text:
> [...]
> I'm kinda stuck on how to get the recursive thing to adapt to the  
> number of list items...  Any thoughts?  Thanks!  :)

Make a new snippet like this:

${TM_SELECTED_TEXT/.+/   <li>$0<\/li>/g}</ul>

That should do it :-).

-- Sune.

More information about the textmate mailing list