Wrong default syntax highlighting in sublime text 3

前端 未结 1 1489
半阙折子戏
半阙折子戏 2020-12-01 18:12

I can\'t remember touching any related configuration, and for no reason, Sublime chooses \"LaTeX Log\" highlighting syntax as default for *.html files. I opened the Syntax S

相关标签:
1条回答
  • 2020-12-01 18:53

    Changing the syntax highlighting for any file type is easy in Sublime. Simply open a file with the extension you want to change, then click on View -> Syntax -> Open all with current extension as... and choose whichever language you wish. This will add the current extension to the "extensions" list in Packages/User/LanguageName.sublime-settings, where LanguageName is the syntax you chose, such as HTML in this case.

    0 讨论(0)
提交回复
热议问题