vscode中让html中php代码高亮

找到设置中的文件设置中的files.associations,增长如下内容(注意一下内容要放在右侧的用户设置中,而不是放在中间的默认设置中):php

{html

// Configure file associations to languages (e.g. "*.extension": "html"). These have precedence over the default associations of the languages installed.post

"files.associations": {"*.html": "php"}htm

}blog

这样就能够在扩展名为html的文件中识别PHP代码了ci

 

 

 

转载于:https://www.cnblogs.com/wordblog/p/11518072.htmlio