Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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
Posted
Updated 15-Apr-13 20:20pm
v2
Comments
Sergey Alexandrovich Kryukov 16-Apr-13 2:39am    
Did you try to find something by yourself?
—SA
codeninja-C# 16-Apr-13 3:44am    
Hi SA, I did big research about this problem and i found one thing that all editors support html tags. Even though it support HTML tags, the tags and the values are not differentiated by colors(like what web browser does while showing XML content). I want to design a web page which should be like Visual Studio XML file(While we create new XML file Visual Studio automatically inherit all XML characteristics)
--SJ
BillWoodruff 18-Apr-13 19:49pm    
This is a repost of http://www.codeproject.com/Questions/577680/XMLplusEditingplus-plusRichplusTextplusBox?cmt=433653#cmt2_577680

SJ, please do not repost.

thanks, Bill
codeninja-C# 19-Apr-13 1:14am    
Hi BillWoodruff, that post don't get response up to two days, i.e., only reason for re-posting
Thanks

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
 
Share this answer
 
Comments
codeninja-C# 17-Apr-13 8:47am    
Thanks SA +5
Sergey Alexandrovich Kryukov 17-Apr-13 11:04am    
Sure. Will you accept the answer formally (green button)?
—SA
codeninja-C# 18-Apr-13 3:47am    
Sorry, i am expecting something different approach
Sergey Alexandrovich Kryukov 18-Apr-13 9:54am    
You cannot expect anything without explaining what problems should be addressed by those approached.
—SA
codeninja-C# 19-Apr-13 1:26am    
Hi SA, I would like to design a web page which contain the XML Editor(it is as same as Visual Studio new XML file creation it contain all XML characteristics)
I decided to do it by using TextBox keypress event(because i already did this using console application by Console.Read())
How could i initiate event for every key press? How could i change the text color?
I found the answer that i should use Rich Text Box...
Now my thinking is how could i design my own Rich Text Box especially for XML?
can you give me an idea to do that?
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#
 
Share this answer
 
v3
Comments
codeninja-C# 17-Apr-13 8:47am    
Thanks Thomas +5
Thomas Barbare 17-Apr-13 8:54am    
Sorry link was broken, it's ok now.
codeninja-C# 18-Apr-13 3:48am    
Hi thomas, thanks for your link

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900