home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / acorn / tech / 125 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.0 KB

  1. Path: sparky!uunet!mcsun!uknet!harlqn!andrewa
  2. From: andrewa@harlqn.co.uk (Andrew Armstrong)
  3. Newsgroups: comp.sys.acorn.tech
  4. Subject: Re: How *does* one write a good text editor?
  5. Message-ID: <ANDREWA.92Sep10175732@gollum.harlqn.co.uk>
  6. Date: 10 Sep 92 17:57:31 GMT
  7. References: <17993@acorn.co.uk>
  8. Sender: news@harlqn.co.uk (Usenet News Account)
  9. Organization: Harlequin Limited, Cambridge, England
  10. Lines: 14
  11. In-Reply-To: pcolmer@acorn.co.uk's message of 24 Aug 92 07:07:02 GMT
  12.  
  13.  
  14. I've written a couple of editors that do this sort of thing, and I've
  15. always stored the text as a doubly linked list of lines, where each
  16. line is a structure containing the text for that line, color/font
  17. information, class information (what type of line - e.g. comment,
  18. function header), etc. This is very flexible, and makes the code very
  19. simple, but at least doubles the memory usage for an average file (for
  20. my most ambitious editor, I was quadrupling the memory usage!)
  21.  
  22. I hope that's of some help - if you want to chat about it, feel free
  23. to e-mail me.
  24.  
  25.  
  26. Andy
  27.