Colorize knockoutjs comment bindings in code edito

2019-07-19 03:27发布

问题:

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