RichText box and autoformatting of its content

  • Thread starter Thread starter Mike Stephens
  • Start date Start date
M

Mike Stephens

I am using a RichText box control in a Code Library app I am writing.

I would like to search for all instances of a word(s) and change the
forecolour of each. Eg.. all reserved words in VB.NET
I would also like to indent the "code" based on appropriate blocks. Eg...
Properly indent everything in a IF ... END IF block.

Any good link or code example would be greatly appreciated.

Regards,
Mike
 
Hello,

Mike Stephens said:
I would like to search for all instances of a word(s) and change the
forecolour of each. Eg.. all reserved words in VB.NET
I would also like to indent the "code" based on appropriate blocks. Eg...
Properly indent everything in a IF ... END IF block.

Any good link or code example would be greatly appreciated.

You may want to have a look at the implementation of SharpDevelop's text
editor (C#):

http://www.icsharpcode.net/opensource/sd
 
Back
Top