[TxMt] Snippet help: get image size?

Timothy Bates timothy.c.bates at gmail.com
Fri Apr 7 17:05:30 UTC 2006

With a selection of "x.jpg", I'd like a snippet for the html context that
can insert 

<img src="x.jpg" alt=" x.jpg" width="164" height="234" border="0"

I have a snippet that works:

<img src="${1:${TM_SELECTED_TEXT:TM_CURRENT_WORD}}" width="$2" height="$3"
border="${4:0}" class="$5">

but it only uses default values for width and height. Are there shell
options to get these?

Thanks for the help,

PS: if you find yourself making lists out of lines of text, this helps me


The secret of success is constancy to purpose.
Benjamin Disraeli 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060407/1001105a/attachment.html>

More information about the textmate mailing list