时间: 2020-09-3|tag:22次围观|0 条评论

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

{

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

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

}

这样就可以在扩展名为html的文件中识别PHP代码了

vscode中让html中php代码高亮插图

 

 vscode中让html中php代码高亮插图1

 

文章转载于:https://www.cnblogs.com/wordblog/p/11518072.html

原著是一个有趣的人,若有侵权,请通知删除

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《vscode中让html中php代码高亮
   

还没有人抢沙发呢~