我的想法是在代码中可见的console.log中使用特定语法来注释。例如:突出显示WebStorm IDE中的自定义语法结构
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
我该如何实现以我自己的风格突出显示它们?
在此先感谢!
尝试GrepConsole插件 - 它可以将自定义高亮显示应用于基于正则表达式模式的整行/选定文本。也许它也适用于JavaScript控制台(我从来没有尝试过)。但是..如果你想在实际的代码中突出这些东西......那么这是不可能的。也许使用TODO评论(对普通评论有不同的颜色)或书签? – LazyOne