# ST-AutoSetSyntax [![Required ST Build](https://img.shields.io/badge/ST-4114+-orange.svg?style=flat-square&logo=sublime-text)](https://www.sublimetext.com) [![GitHub Actions](https://img.shields.io/github/actions/workflow/status/jfcherng-sublime/ST-AutoSetSyntax/python.yml?branch=st4&style=flat-square)](https://github.com/jfcherng-sublime/ST-AutoSetSyntax/actions) [![Package Control](https://img.shields.io/packagecontrol/dt/AutoSetSyntax?style=flat-square)](https://packagecontrol.io/packages/AutoSetSyntax) [![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/jfcherng-sublime/ST-AutoSetSyntax?style=flat-square&logo=github)](https://github.com/jfcherng-sublime/ST-AutoSetSyntax/tags) [![Project license](https://img.shields.io/github/license/jfcherng-sublime/ST-AutoSetSyntax?style=flat-square&logo=github)](https://github.com/jfcherng-sublime/ST-AutoSetSyntax/blob/st4/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/jfcherng-sublime/ST-AutoSetSyntax?style=flat-square&logo=github)](https://github.com/jfcherng-sublime/ST-AutoSetSyntax/stargazers) [![Donate to this project using Paypal](https://img.shields.io/badge/paypal-donate-blue.svg?style=flat-square&logo=paypal)](https://www.paypal.me/jfcherng/5usd) 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][google-magika]) ## Installation This package is available on [Package Control][package-control] by the name of [AutoSetSyntax][autosetsyntax]. ## Documents - https://jfcherng-sublime.github.io/ST-AutoSetSyntax/ [autosetsyntax]: https://packagecontrol.io/packages/AutoSetSyntax [google-magika]: https://github.com/google/magika [package-control]: https://packagecontrol.io