[TxMt] Start/end tag from previous word (ctr+cmd+space)

thomas Aylott thomas.42 at gmail.com
Mon Sep 26 02:24:16 UTC 2005

On Sep 25, 2005, at 3:25 PM, Andreas Wahlin wrote:

>> This isn't the macro. The macro is just a regexp replace on the  
>> current word to <$1></$1>, though catching those tags w/o closing  
>> tag and using a condition in the replace string -- Michael Sheets  
>> has flirted with the thought of looking up the tag name and insert  
>> a customized snippet instead.
> I rather thought so, my opinion is that all inline tags (p, span  
> etc) should NOT have this behaviour, while all block should. hehe,  
> which, when I think about it, is probably true, since h1 isn't a  
> block level element as far as I know :)

It is. P is also a block level element.
Anything that forces everything after it into the next line is a  
block level element.
But, CSS can force anything to be anything. Haha ... i shall force  
all my span tags to behave like tables!!!!

More information about the textmate mailing list