[TxMt] Image HTML helper

Chip Cullen chip.cullen at gmail.com
Mon Jan 28 23:47:39 UTC 2008


I always thought Textmate's ability to just drag an image from your project
drawer into a certain point in the code was very helpful. But what you're
asking would be very easy to do by creating a snippet. Take something like
the <div> snippet, duplicate it, and just insert the <img> tag. I just did
one example up real quick - it uses a tab trigger instead of a command,
though. Just type "img" then tab, and the whole tag will appear. You can go
through and tab to each part of the tag, too - the source, dimensions, and
alt attributes.
Hope that helps!

Chip

On Jan 29, 2008 7:01 AM, MtnBiker <Nabble at web.knobby.ws> wrote:

>
> Is it possible to get the equivalent of BBEdit's Command-control I which
> is a
> helper for putting in the   tag?
> --
> View this message in context:
> http://www.nabble.com/Image-HTML-helper-tp15030586p15030586.html
> Sent from the textmate users mailing list archive at Nabble.com.
>
>
> ______________________________________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20080129/58d3443b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: img tag.tmSnippet
Type: application/octet-stream
Size: 600 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20080129/58d3443b/attachment.tmSnippet>


More information about the textmate mailing list