崇高文本 3 中错误的默认语法突出显示 [英] Wrong default syntax highlighting in sublime text 3

查看:27
本文介绍了崇高文本 3 中错误的默认语法突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不记得碰过任何相关的配置,而且无缘无故,Sublime 选择LaTeX Log"高亮语法作为 *.html 文件的默认语法.我打开了语法特定设置文件,它是空的 (?)

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 Specific settings file and it's empty (?)

我该怎么做才能自动获得 html 文件的正确突出显示?

What can I do in order to get the proper highlighting for html files automatically?

推荐答案

在 Sublime 中更改任何文件类型的语法突出显示很容易.只需打开一个带有您要更改的扩展名的文件,然后单击 View ->语法 ->打开所有当前扩展为... 并选择您想要的任何语言.这会将当前扩展添加到 Packages/User/LanguageName.sublime-settings 中的 "extensions" 列表,其中 LanguageName 是您选择的语法,例如本例中的 HTML.

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.

这篇关于崇高文本 3 中错误的默认语法突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆