[TxMt] wrapping a entire list with tags

Robin Houston robin.houston at gmail.com
Tue Jun 19 16:05:52 UTC 2007


It's probably easiest to just do it in the Perl script, e.g.

#!perl -l
print '<flashlist>';
while (<>) {
    print '<listitem><flashtext>', $_, '</flashtext></listitem>';
}
print '</flashlist>';

or, if you want the placeholders,

#!perl -l
print '<${1:flashlist}>';
while (<>) {
    print '<${2:listitem}><${3:flashtext}>', $_, '</$3></$2>';
}
print '</$1>';


Robin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070619/167bb984/attachment.html>


More information about the textmate mailing list