Silverlight XML编辑器/语法突出显示 [英] Silverlight XML editor / syntax highlighting
问题描述
我正在寻找提供 XML语法突出显示的 Silverlight文本编辑器控件。我在 Winforms 或 WPF 中找到了一些答案,例如,但是我没有设法将它们转换为Silverlight。 Silverlight缺少System.Drawing的事实可能是一个大问题。
I am looking for a Silverlight text editor control that provides XML syntax highlighting. I found a few answers in Winforms or WPF, like here on Stackoverflow, but I didn't manage to convert them to Silverlight. The fact that Silverlight is missing System.Drawing is probably a big problem.
我为Silverlight找到的唯一文本编辑器是 RichTextEdit on ,但我认为它不是实时语法高亮显示的合适基础。
The only text editor I found for Silverlight is RichTextEdit on Codeplex, but I don't think it is a suitable base for real-time syntax highlighting.
是否有人听说过这样的控件,或者可以提供有关如何构建控件的提示?
非常感谢,
Has anyone heard of such a control, or can provide hints on how to build one? Many thanks,
罗曼
推荐答案
我终于发现我一直在寻找控件!
SL2TextBoxWsSynParser
I finally found that control I was looking for! SL2TextBoxWsSynParser
编辑:该控件似乎不再更新,但是新的语法突出显示控件浮出水面:
This control does not seem to be updated anymore, but a new syntax-highlighting control has surfaced:
它可用此处,并已使用在 CoderProof 网站上。
It is available here, and used on the CoderProof website.
这篇关于Silverlight XML编辑器/语法突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!