admin管理员组文章数量:1290950
I have string literals in javascript code and they have attributes whose values are methods, for example:
const test = `<div data-click="foo">test<div>`;
function foo() {}
And I'm trying to make "foo" highlighted separately, not just as a string, and so that you can use ctrl+b to go to the method:
I'm trying to use Language injection what am I doing wrong?
I have string literals in javascript code and they have attributes whose values are methods, for example:
const test = `<div data-click="foo">test<div>`;
function foo() {}
And I'm trying to make "foo" highlighted separately, not just as a string, and so that you can use ctrl+b to go to the method:
I'm trying to use Language injection what am I doing wrong?
Share Improve this question asked Feb 13 at 23:18 alex10alex10 2,7683 gold badges23 silver badges35 bronze badges1 Answer
Reset to default 1I believe this can be achieved by copying the built-in setting “*/@on.” and replacing the argument “on” with “data-click.” However, in my case, the configuration persistence after editing turned out to be broken.
本文标签: javascriptLighting and transitions for custom attribute values in WebStormStack Overflow
版权声明:本文标题:javascript - Lighting and transitions for custom attribute values in WebStorm - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741502577a2382132.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论