[TxMt] Repeating tabstops in snippet

Ed Singleton singletoned at gmail.com
Mon Oct 23 16:29:50 UTC 2006


Is it possible to have a repeating tabstop in a snippet?

for example it would be great to have a snippet to insert a html option list:

<select>
  <option value="$1">$2</option>
</select>

You tab to $1, fill in the value, tab to $2, fill in the content, then
when you press tab again, it inserts another option:

<select>
  <option value="1">Cherry</option>
  <option value="$3">$4</option>
</select>

And carries on doing so for an arbitrarily long time.

If it's possible to do this I'd be very grateful.

Thanks

Ed



More information about the textmate mailing list