syntax coloring ctl?

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

I'd like to show some XML text into an (editable) text box with some syntax
coloring for tags, attributes etc. I don't need a full-blown commercial
control, I'd just like to do some coloring on tags and the like. Is there
any (possibly free!) C-Sharp control (based onto the RTF control, I imagine)
or code sample for building a such control, or should I create my own from
scratch?

Thanks guys!
 
Hi Dan

Thank you for posting in the community!

Based on my understanding, you want a control to display your xml, which
can be editable and do coloring for both tags and attributes.

=============================================
Is your application WinForm based or WebForm based?

I think you do not need the function of expand and collapse, so you can
just use a RichTextBox like control.

Unfortunately, after searching on internet, I still did not get a control
you want. I think you may need to read the xml yourself.

For WebForm, the below richtextbox exposes the function of content coloring
etc, you can read your xml file, then populate this control with indent:
http://www.devdirect.com/ALL/richtextbox_PROD_00006979.aspx

For WinForm, I think you can also leverage the WinForm RichTextBox control,
do the same thing as I stated.

=============================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

This reply contains a reference to a third-party World Wide Web site.
Microsoft is providing this information as a convenience to you. Microsoft
does not control these sites and has not tested any software or information
found on these sites; therefore, Microsoft cannot make any representations
regarding the quality, safety, or uitability of any software or information
found there. There are inherent dangers in the use of any software found on
the Internet, and Microsoft autions you to make sure that you completely
understand the risk before retrieving any software from the Internet.
 
Hi Dan,

Does my reply make sense to you?

If you stil have any concern, please feel free to feedback.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top