C#.net syntax highlight content in Xml

Mar 29 2008 12:42 AM

Hi everybody, I am here because I am creating a code editor in C#.net and I want to add syntal highlighting to it like a dreamweaver or visual studio just from a xml file like thing... I am working with visual studio 2008 pro edition. I want to add it to a rich textbox by the way.

Example of xml file

<syntax>
 <sn>
  <txt>html</txt>
  <color>blue</color>
 </sn>
 <sn>
  <txt>head</txt>
  <color>green</color>
 </sn> 
</syntax>

 

Thanks in advance.