471,594 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

syntax coloring ctl?

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!
Nov 15 '05 #1
2 1481

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/richtex..._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.

Nov 15 '05 #2

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.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.