Colorize knockoutjs comment bindings in code edito

2019-07-19 03:05发布

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.

enter image description here

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

1条回答
beautiful°
2楼-- · 2019-07-19 03:39

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:

enter image description here

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

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

查看更多
登录 后发表回答