Colorize knockoutjs comment bindings in code editor

China☆狼群 提交于 2020-01-04 12:46:13

问题


A project I'm working on makes extensive use of knockout comment bindings.

In the code editor, these are difficult to summarily differentiate from standard comments in the markup.

Is there any way that one might be able to make knockout comment bindings appear in a different color?


回答1:


In the absence of a solution, I coded an editor classifier Visual Studio extension to change the color of knockoutjs comment bindings in documents with HTML content types:

https://github.com/biggyspender/knockoutjsCommentBindingHighlighter-

https://visualstudiogallery.msdn.microsoft.com/add2efac-979c-4cac-8e7b-d2a477e15276



来源:https://stackoverflow.com/questions/28853826/colorize-knockoutjs-comment-bindings-in-code-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!