13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.3 Editors Galore47has a huge learning curve—which is why we aren’t going to cover Emacs orXEmacs at all in this book.Our favorite editor is still vi—in part, we’re sure, because we already knowit so well. But like any skilled craftsman, even though you may have a favoritehammer or saw that you use <strong>on</strong> most of your work, you will still have severalothers ready in your toolkit, and use specialized <strong>on</strong>es for certain tasks.2.3.1 Editing Your Pipes (sed, the Stream EDitor)One important kind of editor available <strong>on</strong> <strong>Linux</strong> is the stream editor, or sed. Itallows you to perform editing <strong>on</strong> the data that comes in <strong>on</strong> standard in andwrites its result to standard out. Similar to the syntax from ex mode in vi (andbased <strong>on</strong> the simple ed editor), it can be very useful for making changes to largenumbers of files in <strong>on</strong>e go.You can learn much more about sed from its manpage or from the bookUNIX AWK and SED Programmer’s Interactive Workbook by Peter Patsis.2.3.2 Simple Graphical Editors<strong>Linux</strong> comes with a wide range of open source software, not all of which is installed<strong>on</strong> every installati<strong>on</strong>. You may need to use your <strong>Linux</strong> installati<strong>on</strong> disksto add these programs to your system. Whether it’s RedHat’s package manageror SuSE’s YaST2 or Debian’s apt-get, most <strong>Linux</strong> admin interfaces make iteasy to add these extra packages. Of course you can also resort to the Web forfinding and downloading additi<strong>on</strong>al open source software.Here’s a quick listing of some of the many editors that you might find toyour liking. The descripti<strong>on</strong> of each is largely “in its own words,” based <strong>on</strong> thetext that the authors supply with their software.• jedit is a cross-platform programmer’s text editor written in Java. TheJava-based portability seems appealing. This is a very powerful editor anda popular choice.• pico is a small easy to use editor.• mbedit is a multiplatform editor.• NEdit is a GUI style text editor for workstati<strong>on</strong>s with X Window andMotif. NEdit provides all of the standard menu, dialog, editing, mousesupport, as well as macro extensi<strong>on</strong> language, syntax highlighting, and alot of other nice features (and extensi<strong>on</strong>s for programmers).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!