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.
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/
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.
- Go to Preferences -> Advanced -> Shell Variables
- 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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 1/19/07, Michael Larocque mlarocque@prolumina.com wrote:
- Create a new variable, named TM_XHTML with the value '/' (no quotes)
You should add a space before the slash.
-- FredB
On 2007-Jan-18, at 20:40 , Fred B wrote:
On 1/19/07, Michael Larocque mlarocque@prolumina.com wrote:
- Create a new variable, named TM_XHTML with the value '/' (no
quotes)
You should add a space before the slash.
Gah! Typo. You're correct.
Carpe viam, Mike
Michael Larocque Chief Cook and Bottle Washer Prolumina Communications Inc. http://prolumina.com/~mlarocque/