🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #202

Re: How *does* one write a good text editor?

#202
From: Chris Dollin
Date: Fri, 28 Aug 1992 08:15
15 lines
1225 bytes
In article <17993@acorn.co.uk> pcolmer@acorn.co.uk (Philip Colmer) writes:

   >If you were writing a text editor which allowed text effects (eg font
   >changes, colour changes, etc) to be applied, how would you hold the
   >data? My initial thoughts are:

How about a vector of lines, with each line being a vector of chunks, with each
chunk being a string and a vector (or list) of effects?

It depends a little how line-breaking works, of course.
--

Regards,    | "The date of death of a sentient entity must never be
Kers.       | mentioned in a Dirac 'cast." - Blish, ``The Quincunx of Time''.
Technical Details
Message-ID: <KERS.92Aug28091558@cdollin.hpl.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!otter.hpl.hp.com!hpltoad!cdollin!kers
References: <17993@acorn.co.uk> <25258@castle.ed.ac.uk>

Show Full Headers
Complete Article Headers
From: kers@hplb.hpl.hp.com (Chris Dollin)
Date: Fri, 28 Aug 1992 08:15:58 GMT
Subject: Re: How *does* one write a good text editor?
Message-ID: <KERS.92Aug28091558@cdollin.hpl.hp.com>
Organization: Hewlett-Packard Laboratories, Bristol, UK.
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!otter.hpl.hp.com!hpltoad!cdollin!kers
Newsgroups: comp.sys.acorn.tech
References: <17993@acorn.co.uk> <25258@castle.ed.ac.uk>
Sender: news@hplb.hpl.hp.com (Usenet News Administrator)
Lines: 15
In-Reply-To: jamesh@castle.ed.ac.uk's message of 27 Aug 92 15:34:01 GMT
Nntp-Posting-Host: cdollin.hpl.hp.com