Re: Suggestion for syntax-colored editors
- Posted by "Kat" <gertie at visionsix.com> May 19, 2004
- 488 views
On 19 May 2004, at 1:48, Tommy Carlier wrote: > > > posted by: Tommy Carlier <tommy.carlier at pandora.be> > > 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. then you cannot copy/paste the text, because it's text + pictures. Kat