🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Syntax hightlight

#17699
From: Early Ehlinger
Date: Wed, 05 Mar 2003 21:55
24 lines
1971 bytes
"ScOe" <sven.savic@zg.hinet.hr> wrote:
> What does SynEdit use for text output ?
> If i want to write similar component ... where do i start ?

Start by writing a control that can display syntax-hilighted code in a
read-only manner.

Add the ability to scroll.

Use the Caret-related functions to introduce a cursor that you can move with
the keyboard.

Add the ability to modify the code by typing letters.

My advice, like Remy's, is to use SynEdit or one of its competitors.  Your
time is valuable; why would you spend it on re-inventing the wheel?

--
-- Early Ehlinger CEO, ResPower Inc - Toll-Free : 866-737-7697 --
- RenderFarm - Lightwave , 3dSMax , Bryce , Maya , AfterEffects -
--- www.respower.com -- 500+ GHz Starting At USD$0.50/GHz*Hour --
----------------- SuperComputing For the Masses! ----------------
"I'm so busy programming my computer to let me be lazy, I never
get any rest!" - John Kaster
Technical Details
Message-ID: <3e66728a@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
References: <3e64f2d4@newsgroups.borland.com> <t8t96vopms9tf8vpsnekak6id9mcsas2jl@4ax.com> <3e659927@newsgroups.borland.com> <3e663d61$1@newsgroups.borland.com> <3e66447c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,59072186333137e8
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-06 21:33:24 PST
From: "Early Ehlinger" <early@respower.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e64f2d4@newsgroups.borland.com> <t8t96vopms9tf8vpsnekak6id9mcsas2jl@4ax.com> <3e659927@newsgroups.borland.com> <3e663d61$1@newsgroups.borland.com> <3e66447c@newsgroups.borland.com>
Subject: Re: Syntax hightlight
Date: Wed, 5 Mar 2003 15:55:42 -0600
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 206.166.224.226
Message-ID: <3e66728a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1046901386 206.166.224.226 (5 Mar 2003 13:56:26 -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