High Speed Syntax Coloring
(Written by me in Visual Studio 2008, Project attached, as well as a text file for users with version 2005)
Updates
Version 1.01
1: Fixed bugs, such as quotes not coloring if you can't see the first quote on screen
2: All updates now ignore quoted & commented text, so they don't conflict, and they don't waste time
Good
1: The code doesn't flash
2: Colors an entire document of 500 lines with 50 key words in 2 seconds
3: Colors the current line your modifying actively without notice
4: Colors text pasted into the rich text box
5: Includes customized tabs (as well as removing them with back space)
6: Very easily modified key words
Bad
1: It does not work with word wrap
2: If you paste 500 lines, with 50 key words it will take 2 seconds to color it
3: Undo & redo actions are disabled, you will have to make your own (to get a proper effect anyway, (they work, but strangely...))
All you do is download the solution and click test, or download the text document, copy & paste the text into a new solution (you've created), and you'll need to make the rich text box you want to use (named rtbEdit)
License
You can use this code freely, regardless of whether your charging for your application or not.
Feed back
Please reply and tell me what you think of it, I'd appreciate any comments & sugguestions
Cheers
Icyculyr
Last edited by Icyculyr; Apr 16th, 2008 at 04:41 AM.