In my .tm_properties file I have the following:
[ text.html ] tabSize = 4
[ source ] tabSize = 2
If I edit a javascript file then I correctly see tabs taking up two spaces.
If I edit an html file then tabs are seen as four spaces. If I embed javascript in the html file the tabs within the javascript code are now taking up 4 spaces. Pressing Cmd-Shift-P shows the following scope:
text.html.basic source.embedded.js.html attr.rev-path.xhtml.html.about.misc.views.templates.WEB-INF.webapp.myproject.curt.Users attr.os-version.10.8.6 attr.scm.svn attr.scm.status.H
So it appears that the text.html.basic scope is taking precedence over the source.embedded.js.html scope. Is there a way to have this behave in the expected manner so that my javascript settings are honored when embedded in html?
Thanks, Curt
How do we get OS 10.8.6 :-)
On 25 Jan 2012, at 7:08 PM, Curt Sellmer wrote:
In my .tm_properties file I have the following:
[ text.html ] tabSize = 4
[ source ] tabSize = 2
If I edit a javascript file then I correctly see tabs taking up two spaces.
If I edit an html file then tabs are seen as four spaces. If I embed javascript in the html file the tabs within the javascript code are now taking up 4 spaces. Pressing Cmd-Shift-P shows the following scope:
text.html.basic source.embedded.js.html attr.rev-path.xhtml.html.about.misc.views.templates.WEB-INF.webapp.myproject.curt.Users attr.os-version.10.8.6 attr.scm.svn attr.scm.status.H
So it appears that the text.html.basic scope is taking precedence over the source.embedded.js.html scope. Is there a way to have this behave in the expected manner so that my javascript settings are honored when embedded in html?
Thanks, Curt
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I was thinking the same thing.
Adam Merrifield (out of office) seyDoggy vCard: seydoggy.com/vcard seyDesign vCard: seydesign.com/vcard
On 2012-01-25, at 14:22, Timothy Bates timothy.c.bates@gmail.com wrote:
How do we get OS 10.8.6 :-)
On 25 Jan 2012, at 7:08 PM, Curt Sellmer wrote:
In my .tm_properties file I have the following:
[ text.html ] tabSize = 4
[ source ] tabSize = 2
If I edit a javascript file then I correctly see tabs taking up two spaces.
If I edit an html file then tabs are seen as four spaces. If I embed javascript in the html file the tabs within the javascript code are now taking up 4 spaces. Pressing Cmd-Shift-P shows the following scope:
text.html.basic source.embedded.js.html attr.rev-path.xhtml.html.about.misc.views.templates.WEB-INF.webapp.myproject.curt.Users attr.os-version.10.8.6 attr.scm.svn attr.scm.status.H
So it appears that the text.html.basic scope is taking precedence over the source.embedded.js.html scope. Is there a way to have this behave in the expected manner so that my javascript settings are honored when embedded in html?
Thanks, Curt
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Just press the option key when you select Software Update on the apple menu....
On Wed, Jan 25, 2012 at 6:55 PM, Adam Merrifield macagp@gmail.com wrote:
I was thinking the same thing.
Adam Merrifield (out of office) seyDoggy vCard: seydoggy.com/vcard seyDesign vCard: seydesign.com/vcard
On 2012-01-25, at 14:22, Timothy Bates timothy.c.bates@gmail.com wrote:
How do we get OS 10.8.6 :-)
On 25 Jan 2012, at 7:08 PM, Curt Sellmer wrote:
In my .tm_properties file I have the following:
[ text.html ] tabSize = 4
[ source ] tabSize = 2
If I edit a javascript file then I correctly see tabs taking up two spaces.
If I edit an html file then tabs are seen as four spaces. If I embed javascript in the html file the tabs within the javascript code are now taking up 4 spaces. Pressing Cmd-Shift-P shows the following scope:
text.html.basic source.embedded.js.html
attr.rev-path.xhtml.html.about.misc.views.templates.WEB-INF.webapp.myproject.curt.Users attr.os-version.10.8.6 attr.scm.svn attr.scm.status.H
So it appears that the text.html.basic scope is taking precedence over the source.embedded.js.html scope. Is there a way to have this behave in the expected manner so that my javascript settings are honored when embedded in html?
Thanks, Curt
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Curt Sellmer <sellmerfud@...> writes:
In my .tm_properties file I have the following: [...]
Take a look at Allan's response here: http://thread.gmane.org/gmane.editors.textmate.general/34199/focus=34217; it's currently not possible to use scope selectors in tm_properties files for anything except the top-level scope (the first line when you hit Cmd-Shift-P).
I was going to say that you could get around this by adding a new Settings item to the HTML bundle with the content '{ tabSize = 4; }' and setting its scope to source.js.embedded. But, I just tried doing this and it doesn't seem to work - maybe it's not possible to change the tabSize using bundle settings right now?
-Daniel Grady
On 28/01/2012, at 07.23, Daniel Grady wrote:
[…] I was going to say that you could get around this by adding a new Settings item to the HTML bundle with the content '{ tabSize = 4; }' and setting its scope to source.js.embedded. But, I just tried doing this and it doesn't seem to work - maybe it's not possible to change the tabSize using bundle settings right now?
This is not possible. I consciously decided against this because having different tab size in the same file is not supported by other applications and would therefore make the file look “broken” outside TextMate (in a way unfixable by piping through ‘expand’ or similar).