用于编辑 XML/XSL 的 .NET Windows 控件?
如果之前有人问过这个问题,我们深表歉意。 快速搜索了一下,没有什么可以 100% 回答我的问题。
我在数据库中存储了一些 XSL,我希望用户能够在我的 .NET Windows 应用程序中对其进行编辑。 我可以将它粘贴到多行文本框中,但是我没有得到自动缩进、颜色编码等任何东西。有谁知道我可以用来实现此目的的 .NET 控件吗? 理想情况下,我希望模拟在 Visual Studio IDE 中编辑 XML 文件时获得的体验,但我意识到这可能不现实。 至少,我希望文本能够很好地缩进。 我不太担心 XSL/XML 本身的验证 - 我可以自己进行排序。 有任何想法吗?
Apologies if this has been asked before. Had a quick search and there's nothing that answers my question 100%.
I've got some XSL stored in the database which I want the user to be able to edit within my .NET Windows application. I could just stick it into a multi-line textbox but then I don't get anything like auto-indent, colour-coding etc. Does anyone know of a .NET control I can use to achieve this? I'd ideally like to emulate the experience you get when editing an XML file in the Visual Studio IDE, but I realise this is probably unrealistic. At the bare minimum, I'd like it to have the text indent nicely. I'm not too worried about the validation of the XSL/XML itself - I can sort that myself. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这并不能直接回答您的问题,但是 CodePlex 上提供了用于 XML 编辑器的代码 称为 Greg 的 XML 编辑器。 它不是一个控件,但您当然可以查看代码并看看是否有帮助。
This doesn't directly answer your question, but there is code available on CodePlex for an XML editor called Greg's XML Editor. It's not a control, but you could certainly look at the code and see if that helps.
它有点旧,但我不久前做了一个简单的 XSL 编辑器控件。 http://www.codeproject.com/KB/edit/XSLEditor.aspx
It's a bit older but I did a simple XSL editor control a while back. http://www.codeproject.com/KB/edit/XSLEditor.aspx