XML文本编辑器 - 文本框 [英] XML text Editor - Text Box

查看:144
本文介绍了XML文本编辑器 - 文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设计一个基于普通文本框的xml文本编辑器,它实现了所有XML特性(即,它应该实现智能以通过node_name,attribute_name,attribute_value来区分文本颜色,并且它应该检查正确关闭标签)。



任何人都可以告诉我如何处理用户输入的每个字符(通常我们可以在完全输入后调用TextBox1_TextChanged事件)文本框中的文本,但我需要在每个字符条目中调用此事件)?我很擅长C#,因此我决定将控件转换为编码页面,因为我已经使用控制台应用程序编写了一个编辑器,该应用程序从用户读取输入字符并更改文本颜色。



我这样处理这个问题可能是错的,请提出你的建议,有价值的参考链接和想法来完成这个编辑。



如果您知道有任何插件可以执行此任务,请通知我



在此先感谢。



问候,



--SJ

I would like to design one xml text editor which is based on normal text-box which implements all XML characteristics(i.e., it should implement intelligence to differentiate the text colors by node_name,attribute_name,attribute_value and it should check proper closing the tag).

Can any one give me the idea how I could process the each and every character entered by the user(normally we can call the TextBox1_TextChanged event after fully entered the text in text-box but I need to call this event each and every character entry)? I am good in C#, so that I have decided to transform the control to coding page because I already did one editor using console application which read the input character from the user and change the text color.

I might be wrong to approach this problem like this way so, give your suggestions, valuable reference links and ideas to accomplish this editor.

If you know any plugins to do this task please inform me

Thanks in Advance.

Regards,

--SJ

推荐答案

如果你看一下现有的,你可以得到所有的想法这样的产品。我推荐TinyMCE:

http://en.wikipedia.org/wiki/TinyMCE [ ^ ],

http://tinymce.moxiecode.com/ [ ^ ]。



您可以找到其他一些编辑器;也许你想看到更小的东西。具体如下: http://bit.ly/YNBS5p [ ^ ]。



-SA
You can get all the ideas if you look at one of the existing products like that. I would recommend TinyMCE:
http://en.wikipedia.org/wiki/TinyMCE[^],
http://tinymce.moxiecode.com/[^].

You can find a number of other editors like that; perhaps you want to see something smaller. This is how: http://bit.ly/YNBS5p[^].

—SA

您还可以查看使用C语言编写的Wysiwyg HTML编辑器教程,该教程使用IE的DOM。

它可能对您有帮助。



Wysiwyg HTML用C#编写的编辑器
You can also take a look at this Wysiwyg HTML editor tutorial written in C# which use DOM of IE.
It may help you.

Wysiwyg HTML editor written in C#


这篇关于XML文本编辑器 - 文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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