[TxMt] HTML bundle ? Self Closing (X)HTML Tags

Brett Terpstra brett at circlesixdesign.com
Fri Jan 19 03:15:28 UTC 2007


This change was made a while back.  A quick search of the Wiki didn't  
reveal it.  The question pops up now and again, should the answer be  
in an easier to find place?  The changelog is the only place I found  
it referenced... along with Allans XHTML disclaimer.

Brett


On Jan 18, 2007, at 8:55 PM, Michael Larocque wrote:

>
> On 2007-Jan-17, at 19:37 , Matthew Betts wrote:
>
>> I am having a problem with the HTML bundle.
>>
>> When I use the tag triggers to insert an element with a self  
>> closing tag (like <input />) or drag in an image (<img />) it does  
>> not put it in the XHTML format, even though the doctype is XHTML  
>> strict.
>>
>> In the bundle editor (using the <input> example) it says:
>>
>> <input type="${1:text/submit/hidden/button}" name="${2:some_name}"  
>> value="$3"${4: id="${5:$2}"}${TM_XHTML}>
>>
>> Now I assume that this: ${TM_XHTML} is some kind of variable which  
>> decides whether to put the XHTML bit it.  But it doesn't seem to  
>> work.
>>
>> Any help would be much appreciated.
>
> 1. Go to Preferences -> Advanced -> Shell Variables
> 2. Create a new variable, named TM_XHTML with the value '/' (no  
> quotes)
> 3. Bob's your uncle.
>
> Carpe viam,
> Mike
>
> Michael Larocque
> Chief Cook and Bottle Washer
> Prolumina Communications Inc.
> http://prolumina.com/~mlarocque/
>
>
>
> ______________________________________________________________________
> 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