Re: Suggestion for syntax-colored editors
- Posted by Tommy Carlier <tommy.carlier at pandora.be> May 19, 2004
- 507 views
Pete Lomax wrote: > I pass. Post a demo which proves it faster. ) > Maybe then I'll believe you. > > I took on Mike's editor and have done very little with the core > innards, such as display, concentrated more on up-front additions. > > To draw this to its logical conclusion, you need a bitmap for every > character in every colour, along with the several (standard keywords) > you mention side-by-side in one block, plus what next?- one for every > variable name in the current source perhaps? No, you don't. You just use bitmaps for the standard keywords. When rendering the text, you use the traditional method of drawing text for all the normal text (variables, comments, strings, ...), and only blit bitmaps for the standard keywords. This way, you also have to switch text-color ( = create a new Pen/Brush) a lot less. > > MEditor is open source; feel free to modify it and just send the whole > kit and cabooble back; I'll sort it out no worries. > > Yours, Still Somewhat Unconvinced, > Pete -- tommy online: http://users.pandora.be/tommycarlier