【问题标题】:Can I get VS Code to syntax-highlight JsRender templates?我可以让 VS Code 语法高亮 JsRender 模板吗?
【发布时间】:2017-07-13 07:22:04
【问题描述】:

<script type="text/x-jsrender"> 中,所有代码都显示为白色。如果我只是将x-jsrender 更改为html,语法突出显示将按预期工作。

有没有办法教 VS Code 像对待 html 一样对待 x-jsrender

【问题讨论】:

    标签: html visual-studio-code syntax-highlighting jsrender


    【解决方案1】:

    目前不支持 OOTB,您必须编写一个插件来启用该语法高亮。

    【讨论】:

    • 这个答案将从有关如何做到这一点的一些说明中受益匪浅,因为不必实现新功能它应该相当简单,但通读文档似乎暗示相反。跨度>
    • @Henrik 非常感谢有关如何做到这一点的指针,因为一年后我仍然找不到任何扩展。
    猜你喜欢
    • 2022-01-14
    • 2017-02-10
    • 1970-01-01
    • 2016-05-31
    • 2022-09-30
    • 1970-01-01
    • 2021-12-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多