[comp.os.msdos.programmer] Text Editors

jdb@reef.cis.ufl.edu (Brian W.K. Hook) (11/28/90)

Does anyone know where the source code to a public domain text editor is
located?  I am interested in writing my own text editor, since most out
there are kludgy (NORTON EDITOR), big (EPSILON, BRIEF, SAGE), ugly (EDLIN),
or unsophisticated (TED, QED) or written for a particular language (TC).

I want to write my own that implements common functions, ditches the overhead
of a macro language etc. etc., and is easy to use.  However, I am having
a difficult time implementing the actual engine.  The interface is easy,
but the cursor movement, search routines, etc. etc. are rather irksome to
do.  I do NOT want to use an array, and I want to be able to edit files
up to the size of available memory.

zhou@brazil.psych.purdue.edu (Albert Zhou) (11/29/90)

Writing an editor is not really an easy task. If you really want to write an
editor buy yourself, I suggest that you get an editor toolbox so that basic
screen, memory and file control are just a few rountine calls away and you
can concentrate on User interface and specific functions you want to implement.

As an alternative, one could get Turbo Pascal 3.0 as a text editor. It is very
compact, requires very little memory yet very powerful. I've long upgraded my
3.0 to 5.5, but since my hard disk is not fast enough and it takes time to
load 5.5, sometimes I use 3.0 as a mere editor if I want to write something
really short.

hagins@dg-rtp.dg.com (Jody Hagins) (12/01/90)

In article <11587@j.cc.purdue.edu>, zhou@brazil.psych.purdue.edu (Albert
Zhou) writes:
|> Writing an editor is not really an easy task. If you really want to
write an
|> editor buy yourself, I suggest that you get an editor toolbox so that
basic
|> screen, memory and file control are just a few rountine calls away
and you
|> can concentrate on User interface and specific functions you want to
implement.
|> 
|> As an alternative, one could get Turbo Pascal 3.0 as a text editor.
It is very
|> compact, requires very little memory yet very powerful. I've long
upgraded my
|> 3.0 to 5.5, but since my hard disk is not fast enough and it takes
time to
|> load 5.5, sometimes I use 3.0 as a mere editor if I want to write
something
|> really short.
|> 



In addition, Borland offeres a package called Turbo Editor Toolbox
with source for a pretty good editor.  I picked up one for 5 bucks
at a local store (since it was for version 3.0).


--

Jody Hagins             
hagins@dg-rtp.dg.com    
Data General Corp.      
62 Alexander Dr.        
RTP, N.C.  27709        
(919) 248-6035          

QQ11@LIVERPOOL.AC.UK (Alan Thew) (12/01/90)

In article <25605@uflorida.cis.ufl.EDU>, jdb@reef.cis.ufl.edu (Brian W.K. Hook)
says:
>
>Does anyone know where the source code to a public domain text editor is
>located?  I am interested in writing my own text editor, since most out
>there are kludgy (NORTON EDITOR), big (EPSILON, BRIEF, SAGE), ugly (EDLIN),
>or unsophisticated (TED, QED) or written for a particular language (TC).
>
You don't mention vi(stevie or elvis),jove and emacs all of which have
source code available although they may fall into one of the above
categories....:-)

ts@uwasa.fi (Timo Salmi) (12/02/90)

In article <25605@uflorida.cis.ufl.EDU> jdb@reef.cis.ufl.edu (Brian W.K. Hook) writes:
>Does anyone know where the source code to a public domain text editor is
>located?  I am interested in writing my own text editor, since most out
>there are kludgy (NORTON EDITOR), big (EPSILON, BRIEF, SAGE), ugly (EDLIN),
>or unsophisticated (TED, QED) or written for a particular language (TC).
>
>I want to write my own that implements common functions, ditches the overhead
>of a macro language etc. etc., and is easy to use.  However, I am having

   This might be an unproductive comment, but I say this sincerely,
since I think you're waisting your time.  Unless you want to program
an editor for the pleasure of writing the code, it would be much
better worth your while to look again at the existing editors.  I've
used some myself, and if you are after configurability, and a small
overhead I think you should take a look at /pc/pd2/qedit21.zip
available by anonymous ftp from our site.  (The usual disclaimer
applies, and this is NOT an invitation to editor wars!)

...................................................................
Prof. Timo Salmi        (Moderating at anon. ftp site 128.214.12.3)
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun

price@chakra.unl.edu (Chad Price) (12/03/90)

In <1990Dec2.063049.5635@uwasa.fi> ts@uwasa.fi (Timo Salmi) writes:

>In article <25605@uflorida.cis.ufl.EDU> jdb@reef.cis.ufl.edu (Brian W.K. Hook) writes:
>>Does anyone know where the source code to a public domain text editor is
>>located?  I am interested in writing my own text editor, since most out

>   This might be an unproductive comment, but I say this sincerely,
>since I think you're waisting your time.  Unless you want to program

Agreed!

>overhead I think you should take a look at /pc/pd2/qedit21.zip
>available by anonymous ftp from our site.  (The usual disclaimer
>applies, and this is NOT an invitation to editor wars!)

Another you might try which make it possible to add your own functions is
Microemacs (I have object, but no source). 

Chad Price
price@fergvax.unl.edu

w8sdz@vela.acs.oakland.edu (Keith Petersen) (12/04/90)

Anyone considering updating the PC Magazine "TED" editor should look
at these files.  Some enhancements have already been made.

WSMR-SIMTEL20.ARMY.MIL [26.2.0.74]

Directory PD1:<MSDOS.EDITOR>
 Filename   Type Length   Date    Description
==============================================
TED2.ZIP      B   34752  900925  Fast editor for small text files, w/MASM src
TEDPLUS.ARC   B   26970  890124  PC Mag 'Tiny Editor' with find function

Keith
-- 
Keith Petersen
Maintainer of SIMTEL20's MSDOS, MISC & CP/M archives [IP address 26.2.0.74]
Internet: w8sdz@WSMR-SIMTEL20.Army.Mil    or     w8sdz@vela.acs.oakland.edu
Uucp: uunet!umich!vela!w8sdz                          BITNET: w8sdz@OAKLAND