Hi guys,
I want to add syntax highlighting to my text editor, and I came up with ColorCode library at this address http://colorcode.codeplex.com but I couldn't load the parsed code into richTextBox object using rtb property. The following code returns parsed html code.
using ColorCode;
string sourceCode = File.ReadAllText(@"/path/to/source/file");
string colorizedSourceCode = new CodeColorizer().Colorize(sourceCode, Languages.CSharp);
So, is there any method to display the parsed html code into editor correctly.
Thanks guys anyway, and any help appreciated.
[EL-Prince]