[TxMt] unordered list nav snippet

Brad Choate bchoate at gmail.com
Fri May 19 13:59:24 UTC 2006


I sent a screenshot of the command settings. Here's the text version,  
which is much easier to copy and paste!


Save: Nothing

Command(s):
echo "<ul>"
perl -pe 's/([\$\`\\])/\\$1/g; s!(.+)!<li><a href="\${$.}">$1</a></li>!'
echo
echo "</ul>"

Input: Selected Text  or  Document

Output: Insert as Snippet


-Brad

	
On May 19, 2006, at 5:24 AM, Dave Foy wrote:

> ---------- Forwarded message ----------
> From: Brad Choate < bchoate at gmail.com>
> To: TextMate users < textmate at lists.macromates.com>
> Date: Thu, 18 May 2006 18:35:48 -0700
> Subject: Re: [TxMt] unordered list nav snippet
> Here's my entry:
>
>
>
>
>
> As requested, it outputs the text wrapped in <a> tags. As a bonus, it
> outputs as a snippet, so you can tab through the href attributes to
> populate them.
>
>
> There doesn't appear to be anything here Brad, unless I'm missing  
> something?
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list