Question:
how to develop an TEXT EDITOR in windows using c language .?
kamath_sv
2006-10-14 08:38:45 UTC
can u guy's tell the basic idea of developing editor.we have project on that.
Seven answers:
WickedSmaht
2006-10-21 13:23:10 UTC
I'm going to assume you are developing for Linux (you mention both Linux and Windows in different areas of your question). Also, I'm going to ignore trying to build a GUI wrapper for your program, and just focus on a simple text interface.



The simplest text editor in the Unix/Linux history could be regarded as "ed". It does not display text unless you enter a command to "list" the lines of your document. It lists with line numbers, and you can ask the program to present you a line, and you may make changes to each line. This is dramatically simple compared to modern WYSIWYG word processors, but for a small C project, it's best to start small.



I don't write code for people (it takes the fun out of it) - but research the design of the "ed" program on UNIX (there is even source code available!) and see what you learn.
Marvin
2014-07-14 00:08:53 UTC
In Visual C++ I think I could make a simple text editor in about 20 min. What is the big deal?
bh8153
2006-10-14 17:45:28 UTC
Within Windows, you can just put up a dialog with a big text box, load the box with the user's most recent version, and save whatever is in it when he hits an OK button. Inside that text box, Windows gives him insert, copy, paste, cursor positioning, delete, and scroll functions without your code needing to do anything.
Bobss b
2006-10-14 15:42:46 UTC
Do you mind cheating cause you could go to planet source code and get some idea's for you code.
binaryFusion
2006-10-15 18:07:40 UTC
Search google with "Windows API programming". Alternatively u may try it with JAVA AWT. In that case I can help u.
Rahul Ghose
2006-10-16 10:30:02 UTC
You need VC compiler 32-bit for that and it's pretty simple if you do it in Windows.

The challenge is in DOS.
ri_ma_bo
2006-10-14 15:56:40 UTC
why cheating? unless you copy other's code, it's not cheating. get some codes, get the idea, then do it yourself. that's it. you can get code from

http://www.pscode.com

http://www.developerfusion.com

http://www.internet.com

and plenty others...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...