在代码编辑器中为Knockout.js注释绑定着色 [英] Colorize knockoutjs comment bindings in code editor

查看:109
本文介绍了在代码编辑器中为Knockout.js注释绑定着色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究的项目广泛使用了剔除注释绑定.

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?

推荐答案

在没有解决方案的情况下,我编写了一个编辑器分类器Visual Studio扩展,以更改具有HTML内容类型的文档中的基因敲除注释注释的颜色:

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

这篇关于在代码编辑器中为Knockout.js注释绑定着色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆