vscode中讓html中php代碼高亮


找到設置中的文件設置中的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代碼了

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM