![即使启用了美化功能,VS Code 也不会在 index.php 中突出显示 HTML](https://linux22.com/image/1609055/%E5%8D%B3%E4%BD%BF%E5%90%AF%E7%94%A8%E4%BA%86%E7%BE%8E%E5%8C%96%E5%8A%9F%E8%83%BD%EF%BC%8CVS%20Code%20%E4%B9%9F%E4%B8%8D%E4%BC%9A%E5%9C%A8%20index.php%20%E4%B8%AD%E7%AA%81%E5%87%BA%E6%98%BE%E7%A4%BA%20HTML.png)
正在开发一个 PHP 项目,但我的 PHP 中的 HTML 没有突出显示。
我不确定为什么,但是 html 本身会这样。
当我按照另一篇帖子的建议安装 beautify 时,我的用户设置没有更新。所以我去了 github repo 手动添加 beautify 的配置。
这是我在用户设置中添加和更新的代码片段。
"beautify.language": {
"js": {
"type": ["javascript", "json"],
"filename": [".jshintrc", ".jsbeautifyrc"]
// "ext": ["js", "json"]
// ^^ to set extensions to be beautified using the javascript beautifier
},
"css": ["css", "scss"],
"html": ["htm", "html", "php", "blade"]
// ^^ providing just an array sets the VS Code file type
}
但是它仍然没有在 php 中设置 html 样式。有什么建议吗?