AutoSetSyntax helps you set the syntax for a view automatically in various ways:
- Default syntax for new files and build outputs.
- Detecting the syntax when modifying the file.
- Trimming unimportant suffixes from the filename.
- Assigning syntax for Sublime Text syntax test files.
- Assigning syntax by the first line.
- User-defined rules.
- (Experimental) Deep learning based syntax detection. (Magika)
This package is available on Package Control by the name of AutoSetSyntax.