在 WebStorm 中突出显示自定义句法结构 IDE

Highlighting custom syntactic constructions in WebStorm IDE

我的想法是对 console.log 中的注释使用特定的语法,这将在代码中可见。例如:

console.log('<! here is very important comment, don\'t lose it'); // string itself is displayed as green bold text in IDE
// <! here is the sequence for detecting such strings

我怎样才能用我自己的风格来突出它们?

提前致谢!

无法使用当前功能突出显示自定义 functions/keywords。

https://youtrack.jetbrains.com/issue/IDEABKL-5473 和相关票证——观看它们 (star/vote/comment) 以获得有关任何进展的通知。


我现在可以在这里建议的最好方法是使用 TODO comments:自定义标记和颜色将为您提供足够的可见性。

或者 -- 试试书签。他们不会突出显示代码 .. 但会在查看书签 window.

中的滚动条和导航上提供标记