aspose file tools*
The moose likes Linux / UNIX and the fly likes how to make an Editor in linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to make an Editor in linux" Watch "how to make an Editor in linux" New topic
Author

how to make an Editor in linux

koushik maiti
Greenhorn

Joined: Jul 22, 2005
Posts: 9
hi ,
friends ,
I am very interested in linux.I had done shell script programming and other programming like socket,pipe,etc in linux o/s.
Now i am very eager to make a small editor in linux..plz give me some idea about this ...u can give some references of books ..I have no idea about this....plz help me..
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Go to Sourceforge (sourceforge.net) or Freshmeat (freshmeat.net). Search for "editor." You'll find literally hundreds of little text editors that people have written for Linux and/or Windows. Pick one. Look at the code until the desire to write your own fades away.


[Jess in Action][AskingGoodQuestions]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
First you need to pick a language to write it in. Do you want to use Java, C, C++, Perl, Lisp, Scheme, or something else? Also, do you want a text or GUI interface? If you want a GUI, Java is a decent language to use since Swing or AWT provides much of the functionality you will need. Using Java also means that your text editor isn't necessarily limited to Linux. You can write it so that it runs on other OSes without a lot of effort. On the other hand you can use C or C++, especially if you are interested in learning Linux-specific GUI libraries like GTK or qt. I'm sure other languages provide similar libraries.

If you want to write a text interface, Java is probably fairly weak in that area. Java is not very strong for console I/O, although there may be third-party libraries available to help with that. In C or C++, you can use the curses library. Again, other languages may have more or less support, but I'm not very familiar with them.

I hope this helps and good luck.

Layne


Java API Documentation
The Java Tutorial
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to make an Editor in linux