Link to home
Start Free TrialLog in
Avatar of NewDawn
NewDawn

asked on

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?
Avatar of Todd Gerbert
Todd Gerbert
Flag of United States of America image

You might be able to embed an Internet Explorer WebBrowser in your form, though I'd guess that was read-only...
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.
Avatar of NewDawn
NewDawn

ASKER

I need the XML to be editable.
ASKER CERTIFIED SOLUTION
Avatar of Todd Gerbert
Todd Gerbert
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial