Advertisement
3_2004-2005 String Manipulation #132408

Coloring VB Code Fast

Although the main purpous for this submission is to color VB code for viewing in a richtextbox. What you will learn can help with fast string manipulation. And you also get alot of information on the RichText standard. Read the cod comments for a full understanding. Just so you know! I'm sick of getting several hundred downloads and no comments I could give a s@@t about code of the month as i dont think im a good enough coder; however, I do want comments. Comments about how to code better or about the inventiveness of my submission or even how crappy it is. You can keep the spelling and grammer comments to yourself. This isn't PSC the online english school is it? So if your worried you may not get code of the month don't vote. But please comment! god or bad. This is by far the fastest way to color vb code without an outside dll or control Its done in pure vb and can color 300kb in less than a second. This time was attained on a 3 ghz processor with a gig of ram. It does key words, Quoated strings And comments. The user has the option to alse include web addresses, which would be underlined. The only problem I can find with the current code is it want color itself without error. I want go into an explination here; but, if you must color this programs code or just want more details on what is wrong jusy drop me a note. You can reach me through PSC. The code seems to handle all exceptions within the code. Odd quoats and if a comment char is inside a quoat it will be ignored, things such as these are handled. At present the compare method is binary and will only catch proper case words The same case structure used in vb, EndIf, ElseIf, exc... Changing to a text compare would allow you to ignore case but would also slow down the function a bit. If your source is derived from the VB IDE all should work well; however, if you are makeing your own editor you will want to use the text compare method at least during the editing process. NOTE: THIS CODE HAS ONLY BEEN TESTED ON WINDOWS XP WITH VISUAL BASIC 6 HAVEING THE LATEST UPDATE!

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine