🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17725

Syntax hightlight

#17725
From: ScOe
Date: Tue, 04 Mar 2003 18:39
6 lines
1152 bytes
Can anyone tell me what's the general idea how to make code viewer ?
I made one with richedit control and parsing line by line, comparing parsed
word with list and if it match change attribute for selected word ... but it
is sloooow.
All trick were included to enhace speed but obviously general idea isnt
right.
Technical Details
Message-ID: <3e64f2d4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,59072186333137e8,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-04 12:17:27 PST
From: "ScOe" <sven.savic@zg.hinet.hr>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Syntax hightlight
Date: Tue, 4 Mar 2003 19:39:09 +0100
Lines: 9
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 213.191.138.137
Message-ID: <3e64f2d4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1046803156 213.191.138.137 (4 Mar 2003 10:39:16 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail