Sublime Forum

Syntax changes by itself when saving files

#1

I’m having an annoying bug on some file types. Whenever I save a bash file its syntax changes from “Bourne Again Shell (bash)” to “Shell-Unix-Generic”. I tried setting the syntax by hand, using “Open all with current extension as…”, as well as removing extensions from the destination syntax-specific settings file, to no avail.

A similar problem happens with XSLT files. Every time I open or save one such file, its syntax is reset from “XSLT” to “XML”.

Does anybody know what plugin or setting might be causing this?

0 Likes

#2

I figured out the culprit, it was a plugin called ApplySyntax.

I was using it to force a given syntax for some file paths, but apparently it overrides all other syntax settings with its own logic.

0 Likes