Silverlight XML 编辑器/语法高亮 [英] Silverlight XML editor / syntax highlighting
问题描述
我正在寻找一个 Silverlight 文本编辑器控件,它提供XML 语法突出显示.我在 Winforms 或 WPF 中找到了一些答案,例如 在 Stackoverflow 上,但我没有设法将它们转换为 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 找到的唯一文本编辑器是 Codeplex 上的 RichTextEdit,但我不认为它是实时语法高亮的合适基础.
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屋!