Help required in developing an Editor.

Hi,

I wish to develop a editor of my own. My idea is using

  • 100% C programming
  • Linked list as the Data structure
  • GNU/Linux as the compiling environment
  • ncurses utility for screen

Many of might have wrote a editor in your college itself as a project. But I am from non IT background. But anyways, I wish to develop an editor of my own now.

Please give your valuable inputs and ideas for me in developing editor.
Also f you have any online link/material which helps me developing, please suggest that.

Thanks,
Ramkrix

I would suggest starting with simplified code/data for
keeping text in memory. Maybe fixed array (requiring plenty of copying when inserting/deleting characters) or linked list
of buffers with pointers to previous and next lines.

Think of proper interface to this, suitable for further changing
to more efficient method.

Fortunately, with curses and fixed font width this is major
part of the program.
In my opinion the text editor can be a challenging project.
Situation gets even more complicated with X11 and proportional font handling.

If you like to see some code, I can suggest reading
sources of 'text' widget from Tcl/Tk library. This is quite clean code so maybe it could be useful.

Good luck.

The Craft of Text Editing

Thanks guys for your Reply and the link

Regards,
Ramkrix