ApplySyntax
ApplySyntax copied to clipboard
Options to disable setting syntax on save?
Every time I save a file, ApplySyntax changes the syntax I am currently using to what it thinks should be. This is annoying because when I manually select the syntax of a file, I am expecting to override the syntax detected by the file extension. I have looked up the available options but can't find an option to disable this behavior.
I think you would need to explain your use case more clearly. Maybe you need a better rule for the way you work or the syntax highlighters you use? I would need to understand use cases before responding with any official statement. Please clearly outline what you are doing, what syntaxes you are using, and exactly why what is currently in place is not desirable. I need to get a clear picture of the situation.
I was editing an Expect script that ends with .sh. Since Sublime by default would apply the syntax to Shell, I have to manually set it to TCL. However, ApplySyntax messed with my syntax settings upon each save.
I admit that the .sh extension is not perfectly suitable for an Expect script, but since it's a legacy file that has lived for years, it's not that easy to correct the file extension. My point is this plugin should work on file open rather than on file save, to minimize the inteference to the user.