首页 > Web开发 > 详细

vscode中让html中php代码高亮

时间:2019-09-14 00:53:35      阅读:329      评论:0      收藏: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代码高亮

原文:https://www.cnblogs.com/wordblog/p/11518072.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!