我的想法是在代碼中可見的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