Sublime Forum

Open File As Type Not Saving on Reopen (file association)

#1

When I have a .html file open and I need to open it as a different type (association) such as Statamic Antlers which also uses the .html extension, it does not keep the setting once I close and reopen the file. How do I get the file type selected to keep:

I do not wish to have all .html files open this way. Only the project files in a directory or the ones I manually select.

How can I do this?

0 Likes

#2

I am using the latest 3176 Stable build if that matters and Antlers is a sublime plugin https://github.com/addisonhall/antlers-statamic-sublime-syntax

0 Likes

#3

The Project Specific Syntax Settings package may help you with this. With it you can use settings in your sublime-project to override the default syxtax associations just within that project.

0 Likes

#4

Thanks. I will try that.

0 Likes

#5

Maybe ApplySyntax also supports this usage pattern. I don’t use it myself, however.

0 Likes