المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Best method for syntax highlighting



C# Programming
07-14-2009, 09:01 PM
Hey guys.

I'm working on a syntax highlighter, in which my current method of highlighting (RichTextBox + TextChanged + Regular Expressions) has become to unsmooth and slow. I've literally spent days searching for other methods, and the best one I've found was the ICSharpCode.TextEditor, however when taking I look into it I was unable to find the code in which it highlights its code.

So any of you guys have some experience here? Any help'd be appreciated, but code examples more.
PS: my current highlighter is about 10 seconds about highlighting 2100 lines of code, where ICSharpCode.TextEditor is about 1 - 2 seconds.

Theo