This is one Silverlight 4 control I wanted to share. It extends the RichTextBox control in a way to add coloring of HTML and XML tags. The tags are colored as you type. I am planning also to add intellisense. It also has right click menu with Cut, Copy and Paste options for now but more can be added including custom links, activated by contextual position. Below you can see how a typical HTML looks when formatted:

This is the link to a demo page:

http://www.bodurov.com/XmlEditor/

And here you can find the complete source code:

http://xmlcodeeditor.codeplex.com/

In the source code you will also see a full set of tests. To see the tests when you load the project go to the /Tests folder of the project web site.

You can also check another similar project I have for WPF: http://blog.bodurov.com/Wpf-Source-Code-Editor/

Share this post:   digg     Stumble Upon     del.icio.us     E-mail

william simons
Posted on 5/25/2010 5:54:15 AM

Please tell me when you have released this for the latest silverlight 4 version 30319.166 that was released recently may 13 2010. Can you use your version partial trust over the web for a wcf restful application??

Vladimir Bodurov
Posted on 5/25/2010 10:30:05 AM

I will check that later today

Vladimir Bodurov
Posted on 5/26/2010 4:03:30 PM

I can see no problem with 10.0.30319.161

Commenting temporarily disabled