用于编辑 XML/XSL 的 .NET Windows 控件?

发布于 2024-07-20 02:13:20 字数 312 浏览 5 评论 0原文

如果之前有人问过这个问题,我们深表歉意。 快速搜索了一下,没有什么可以 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

静谧幽蓝 2024-07-27 02:13:20

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.

圈圈圆圆圈圈 2024-07-27 02:13:20

它有点旧,但我不久前做了一个简单的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文