[TxMt] unordered list nav snippet

Brad Choate bchoate at gmail.com
Fri May 19 01:35:48 UTC 2006


Here's my entry:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.png
Type: image/png
Size: 20540 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060518/f5556bbf/attachment.png>
-------------- next part --------------


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.


On May 18, 2006, at 5:32 PM, Dave Foy wrote:

> I'm having trouble creating a custom snippet that, for me, would be  
> really useful.
>
> I want to set up a snippet to create an unordered list nav from a  
> plain text list, e.g.
>
> foo
> bar
> coo
> tar
>
> I'd like to highlight the whole list, hit a key combo, which would  
> wrap each list item in <li>, wrap the whole lot in <ul>, and even  
> wrap the text within each list item in <a href=""></a> for good  
> measure.
>
> Can anyone help?
>
> Many thanks in advance.
>
>
>
> ______________________________________________________________________
> 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