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

Michael Larocque mlarocque at prolumina.com
Fri Jan 19 02:55:47 UTC 2007


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/





More information about the textmate mailing list