How can I show formatted and colored XML in a C# application?

I currently have a textbox in my app that is used to display XML.  As you can imagine, the displayed XML doesn't look very nice.  I want to add color to my display (similar to what you'd get if you displayed XML in any XML viewer or from within Visual Studio).  Additional formatting would be nice, but isn't required.  What is the simplest control or method for doing this?
NewDawnAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Todd GerbertConnect With a Mentor IT ConsultantCommented:
I would Google around for a .Net XML WinForm control.  Looks like there might be one included in SharpDevelop, which is free.
0
 
Todd GerbertIT ConsultantCommented:
You might be able to embed an Internet Explorer WebBrowser in your form, though I'd guess that was read-only...
0
 
anarki_jimbelCommented:
If you just want to display - the easies method I believe is to use a web browser. You may apply a transformation style and you'll get nicely formatted colored xml. I can give you the solution.

However if you need to edit your xml the task is probably a bit more tricky. Not sure at the moment.
0
 
NewDawnAuthor Commented:
I need the XML to be editable.
0
 
anarki_jimbelCommented:
0
All Courses

From novice to tech pro — start learning today.