2

我使用 webstorm 来处理玉。它工作得很好,但是当我为 knockoutjs 制作模板时:

script(type="text/html", id="my_template-id")
   jade syntax here

因此,此类模板中的玉没有正确突出显示。我如何让 WebStorm 明白,这也是一块玉?

4

2 回答 2

5

这是一个问题,请投票:

http://youtrack.jetbrains.com/issue/WEB-8967

于 2013-08-23T09:44:35.547 回答
0

The issue tracker claims this to be fixed but it is not. Here is a workaround (mixin must come before script):

mixin testTemplate
    span(ng-click="doSomething()") click me
    h1 Markup here is working

script(type="text/ng-template", id="template.html")
    +testTemplate()
于 2015-02-08T00:48:56.187 回答