Sublime Forum

Problem with files opening up with the wrong language

#1

No matter how many times I tell sublime “always open files of this type with…” from the menu on the lower right of the window, tmLanguage and tmTheme files always open as SCSS language files instead of XML files, and therefore the incorrect syntax colors.

I have checked XML.sublime-settings and the extension is actually in there more than once:

[code]{
“extensions”:

	"xml",
	"xsd",
	"xslt",
	"svg",
	"opf",
	"ncx",
	"config",
	"sublime-snippet",
	"tmTheme",
	"tmLanguage",
	"tmLanguage",
	"tmLanguage",
	"tmLanguage",
	"tmLanguage"
]

}[/code]

I have tried adding them by hand and re-saving the file, but it keeps happening. Any thoughts?

0 Likes

#2

Nothing on this? It keeps happening. I have checked the sublime settings files both in my user folder and in the individual language and they are both set correctly.

Now my .html files keep saying they are PHP files, which is mostly correct but is messing up which snippets are available.

Also, all sublime-snippet files keep opening as SCSS. This is really annoying. Anyone?

0 Likes

#3

Not that this will help, but going to throw it out there. Since you have checked the installed packages already, do you have a something like the DetectSyntax plugin installed? If you do, perhaps you have a rule defined somewhere that is overriding the default behavior of sublime text. Granted, I’m no expert with this plugin, but it may be worth taking a look.

Worst case, you can always revert Sublime to a clean state (link) to see if the problem persists, then install your plugins again. Though, I would imagine this could be quite annoying to do.

0 Likes

#4

Thanks, but I don’t have DetectSyntax installed. If it annoys me enough I will reset everything. But it is odd that all the places this would be stored, AFAIK are clean.

0 Likes

#5

Same problem here after installing the SCSS package that has been ported from TextMate and supposedly are fully compatible. Are you using the same handycam? If so, I suspect it is an issue with this package as this problem has only just begun after this install. I will likely uninstall it and find another package offering SCSS support.

0 Likes

#6

To confirm, having now removed the SCSS bundle the problem has now been rectified.

0 Likes

#7

I can confirm this as well. Thanks. I am trying this one now: https://github.com/nathos/sass-textmate-bundle

0 Likes