Linux.com

Feature

Free text editors for the rest of us

By Scott Nesbitt on October 05, 2004 (8:00:00 AM)

Share    Print    Comments   

A good text editor is an invaluable tool. With text editors, you can perform a variety of tasks: coding and scripting, editing system files, building Web pages, and writing documents like letters and articles. Here are three text editors that balance ease of use with robust feature sets. Eddi gives you enough to get the job done, while NEdit and EditPad offer more advanced features to keep even demanding users happy.

Of course there is no shortage of text editors for Linux. But many an average user -- the non-technical person who may have moved to Linux from another operating system -- sees a heavy "geek factor" in most Linux text editors.

Take vi and Emacs. They're great editors, but they contain too many features. (In the colophon to his book Just A Geek, Wil Wheaton wrote, "I couldn't find the text editor in emacs.") And having to remember a number of keystroke combinations to carry out a simple task is no fun, either. Chances are many Linux users won't use a fraction of the power of either tool.

While features like c-tags, automatic code indenting, and regular expressions are great for programmers, they aren't useful for everyone. Some of us just want an editor that lets us write easily, edit a .profile file, mark up documents, and maybe cobble together a simple script.

Linux users running the KDE and GNOME window managers can get those tasks done with Kate and gedit, respectively. While they're nice applications, not everyone running Linux uses KDE or GNOME. Eddi, NEdit, and EditPad run under just about any Linux window manager.

Eddi

For pure simplicity, you can't beat Eddi. Eddi is written in Tcl, a popular scripting language. As such, Eddi can be run on any computer that has Tcl installed, regardless of operating system.

While Eddi doesn't have all of the features of the other editors discussed in this article, it does pack a lot into a very small package. Feature-wise, it's somewhere between a basic editor like xedit and the other editors being discussed here.

One of Eddi's nicest features is a tabbed interface that enables you to quickly move between open files. Another is the toolbar, which puts all of Eddi's main commands just a mouse click away -- no need to remember combinations of keystrokes or to dig through menus to find the command that you're looking for. While both of these features are standard in a number of applications, they are missing from many text editors.

If you're writing in HTML or LaTeX, you'll find Eddi's syntax highlighting abilities useful. Syntax highlighting is the use of color to differentiate between markup and text in a document. For example, if you're building a Web page, the HTML tags might be blue while the actual text is black. If Eddi recognizes the type of file that your working on, it automatically applies syntax highlighting. If Eddi doesn't recognize the file type (for example, you used the extension .ltx instead of .tex for your LaTeX documents), you can apply highlighting using a toolbar option.

Eddi also enables you to record macros (short programs that automate tasks). You can record only keystrokes, but if you have one or more repetitive tasks in your work, the macros you record can save you considerable time and effort.

One feature that sets Eddi apart from most other editors is its use of plug-ins. Plug-ins are little programs that extend the capabilities of software. You can configure Eddi to load only the plug-ins you want to use. Right now, the only available plug-in is for an HTML menu that enables you to add markup to your Web documents with a mouse click. However, the developers say that other plug-ins are in development. Some of the plug-ins that the developers hope to create include ones for sending and reading email, reading newsgroup posts, and transferring files via FTP.

On the downside, Eddi doesn't have a built-in spelling checker, or a way to link to an external spelling program like Aspell. I'm hoping that one of the plug-ins Eddi's developers cobble together is one that supports spell checking apps. As well, you need to install a library called Tix in order to run Eddi. Installing and using a library can be tricky and time-consuming -- something you may not have the patience for.

eddi_thumb

Eddi showing off its tabbed interface.

Positives: Small, easy to use, uncluttered interface.

Negatives: No spelling checker, requires you to have Tcl and Tix installed and properly configured.

NEdit

While widely considered to be a programmer's tool, NEdit is a great text editor for anyone who needs to manipulate words or files. From the outset, I have to mention that NEdit is the text editor that I most use.

Why? It's one of those applications that does everything that I need an editor to do, but isn't jam-packed with features that I rarely use.

In a lot of ways, NEdit is unobtrusive. There are no toolbars crammed with colorful icons, and no floating pallettes or workspaces to keep track of. The NEdit interface is simple, almost ugly. (Not xedit ugly, but not attractive either.) But the spartan look and feel doesn't detract from NEdit's performance. Version 5.5 of NEdit incorporates a tabbed interface, and there is a way to update the editor's look and feel by editing a system resource file.

As a writer, I find NEdit's spelling checker and word count functions to be invaluable. But the NEdit developers wisely didn't integrate these tools into the application. Instead, NEdit calls an external spelling program (Aspell on my Linux box) and the wc command, respectively. This keeps the size of the editor small while at the same time allowing you to choose the utilities that you want to use with NEdit. But in order to use those utilities, you have to modify the .nedit configuration file. Unless you know what you're doing, you can mess up the editor's configuration.

The search and replace features of NEdit are superior to those of many text editors in Linux and in Windows. If you have multiple files open, you can search for text strings or replace words and phrases across all of the files. With a single document, you can perform search and replace operations over all the text, or just the text that you've selected.

NEdit also has powerful macro capabilities. NEdit comes bundled with a few macros, including ones for stripping characters out of an email message or for completing words. You can record macros by capturing and playing back your keystrokes. On top of that, there are macros available for downloads from the NEdit Wiki support site.

There are two NEdit macro packages that I find incredibly useful. The first is the LaTeX-Pack, a set of macros that help you work with files created using the LaTeX typesetting system. Instead of going to the command line or typing in a string of commands, you can typeset and view LaTeX documents with a couple of mouse clicks. The other is Nftp, which adds a graphical FTP client to the editor.

nedit_thumb

While it's not the prettiest editor around, NEdit is a does a great job of working with text.

Positives: Great syntax highlighting for a variety of file types. Macros enable you to extend the capabilities of the editor.

Negatives: The interface isn't very attractive, installing macros can be difficult.

EditPad Lite

When I was a Windows user, EditPad Lite was a wicked little text editor I couldn't do without. When I learned that EditPad Lite was available for Linux, I immediately downloaded and installed it. I was more than pleasantly surprised to discover that the Linux version of this editor is an almost perfect copy of its Windows sibling.

If you're a Windows user who has made the jump to Linux, EditPad Lite will seem very familiar. It retains a distinctive Windows look and feel. It also uses all the standard Windows hot keys that you've come to know (Ctrl-C to copy text, Ctrl-P to print, etc.).

One of my favorite features of this editor is the tabbed interface. In Windows, EditPad was one of the first applications to use tabs. If you have multiple files open, clicking on the tabs is a fast and efficient way to move between the files.

Like NEdit, EditPad Lite has a great search and replace feature. You can search and replace text in one document or all of the documents that you have open in the editor, and in blocks of text that you've selected.

If you're exchanging text files from people using Windows or Mac OS, you'll find EditPad's built-in text converter to be a major boon. In different operating systems, line endings in text files are encoded differently. If you open a text file from Linux in Windows Notepad, for example, all of the lines may run together. EditPad Lite's converter modifies the line endings. Using it, you can effortlessly switch between Unix, Mac, and Windows text formats.

EditPad Lite disappointed me in two ways: it has no spelling checker, and it lacks syntax highlighting for certain type of files that I frequently work with -- specifically HTML and LaTeX. But if you're willing to fork over $40 for EditPad Pro, you get these features and more -- a spelling checker, customizable syntax highlighting, and the ability to integrate other tools with EditPad. But even without all the frills, EditPad Lite is both a comfortable environment in which to work and a flexible tool for all of your text editing needs.

editpad_thumb

Working on multiple documents with EditPad Lite.

Positives: Packs a lot of features without being top-heavy, nice tabbed interface, highly customizable.

Negatives: Lacks a spelling checker and several other features that are available in the commercial version of EditPad, and in several free editors.

Choices for everyone

Text editors aren't just for programmers. There's an editor out there for everyone who needs to work with words or files. The text editors discussed in this article are suited for just about any text editing job. I've used all three to write various documents (including this article) and have had no major complaints.

Don't take my word for it. Give Eddi, NEdit, and EditPad Lite a try. They're excellent alternatives to vi and Emacs.

Scott Nesbitt is a journalist and technical writer from Toronto, Canada, who does most of his work using text editors.

Scott Nesbitt is a freelance journalist and technical writer.

Share    Print    Comments   

Comments

on Free text editors for the rest of us

Note: Comments are owned by the poster. We are not responsible for their content.

Nice and light

Posted by: Anonymous Coward on May 07, 2005 08:33 AM
I decided to see how much bloat I could trim out of my system and one of the first things to go was GEdit. I did end up using SciTE for my code editing but I also found another little gem for when all you want is a Linux equivalent to notepad.

It's called Leafpad and it's available at <A HREF="http://tarot.freeshell.org/leafpad/" title="freeshell.org">http://tarot.freeshell.org/leafpad/</a freeshell.org> or through the Gentoo portage tree.

If you want features, it's not for you. But if you want Windows Notepad with line-numbering and auto-indent support, it may be what you're looking for. (In other words, it's a light text editor with word wrap, line numbering, search and replace, unicode support, and auto-indent.)

#

Text Editors for the rest of us

Posted by: Administrator on October 07, 2004 11:49 PM
Good article on Editors. I use neither vi or EMACS. This is a bit surprising considering my time in the computer realm.



I have discovered an oft-overlooked gem as far as editors. It is called SciTE (<A HREF="http://www.scintilla.org/" title="scintilla.org">www.scintilla.org</a scintilla.org>) which is the Scintilla Text Editor written by Neil Hodgson. There is a version for both Linux and that other operating system from Redmond, Washington.



SciTE has highlighting for a huge number of languages but the version I have does not have a spell checker. It sounded like this was a issue for you but I personally don't mind that omission.



The tool does include features like tabbed multi-documents, line numbering, display of control characters such as EOL and CR, and whitespace. The added special bonus is that if you can show SciTE where they are, it can invoke a compiler for the language you are using, and show you the output for the program you are writing. Right now I am using it to learn Java and have found it exceptional as a "not as hard to learn as an IDE" tool with a lot of the features.



I recommend to everyone they load it and see if they find it useful. As you stated, there are no shortages of editors that run under Linux. So, if SciTE does not fil your needs, you can always find another that does. It fills mine, but I'm a rank amateur at coding since my education isin the hardware realm.



Good Luck and Good Linux,



Doctor Digital

#

What about jEdit?

Posted by: Administrator on October 07, 2004 07:59 AM
jEdit is another choice.

<A HREF="http://jedit.sourceforge.net/" title="sourceforge.net">http://jedit.sourceforge.net/</a sourceforge.net>

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya