我有 i18next JSON 文件,其中包含 HTML 标签,如下所示:
{ "h2": "How to<br /><span className='text-orange-500'>sign</span> up" }
我想对 HTML 标签进行适当的语法高亮显示,但我一直找不到解决方案。
有什么办法可以在 VS Code 中实现这一点吗?
You can get html syntax coloring in a
json
"files.associations": { "*.json": "html" },
你可以像这样更具体:
"files.associations": { "myComponent.json": "html" },