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:
<ul> ${TM_SELECTED_TEXT/.+/ <li>$0</li>/g}</ul>
That should do it :-).
-- Sune.