gedit: a powerful, underrated text editor for everybody
Short URL: http://fsmsh.com/2716
- 2008-02-15
-
Write a full post in response to this!
Most computer users spend their entire life looking for the Holy Grail. In other words, they spend all their life searching for the perfect editor that supports all their languages, is free as in speech, has spelling, has highlighting… you get the picture. Obviously, there isn’t a perfect editor out there. However, some come pretty close. Ironically, one of them is one that any Ubuntu (or in fact, any Gnome) user has installed, though they may not know it. It’s called gedit (also known as Text Editor).
gedit: not as simple as it looks
Most of the world doesn’t use gedit for much more than they used Notepad back on Windows (or TextEdit, if you happen to be a Mac user). In other words, all it’s used for is basic editing (like config files or docs). It doesn’t have any power… right? Wrong. In fact, gedit is one of the most powerful editors in the GNU/Linux world.
So what makes gedit so special? First of all, it’s probably got the lightest footprint of any graphical text editor I’ve seen in a long time. gedit uses a patheticly small 5.5 MB of RAM (sure, you have to add the GNOME libraries to that, but if you’re running GNOME you won’t notice). Second, it’s got syntax highlighting. Wiktionary defines syntax highlighting as the “highlighting of source code using different techniques (coloring, boldfacing)”. So your function names will be one color, your variables another color, and your tags a third color. Figure 1 gives a good example for HTML/PHP. Syntax highlighting is supported for Ada, awk, Boo, C, C#, C++, CSS, D, Docbook, DTD, Erlang, Fortran 95, Haskell, HTML, IDL, Java, LaTeX Literate Haskell, JavaScript, Luah, m4, Makefile, Nermerle, Objective-C, Objective Caml, Pascal, Perl, PHP, Python, R, Ruby, Scheme, sh, SQL, Tcl, Texinfo, Vala, VB.NET, Verilog, VHDL, and XML. Plus, you get highlighting for Changelogs, .desktops, Diffs, DPatches, gettext translations, GtkRCs, inis, libtools, MSILs, OCLs, pkg-configs, RPM specs, and Yaccs. In other words, if you know a programming language, chances are syntax highlighting for it is supported in gedit. It also auto-indents your code, which makes readability a lot easier. Additionally, it matches your brackets, essential for any programmer. You can also open remote files, useful if you’re working over SSH or an LAN. Finally, you can run external tools (like the Make compiler or a terminal) using the External Tools plugin (see the section below).
Plugins
This is where the real power of gedit takes place. Sure, gedit is extremely powerful by itself. But it’s the plugins that makes it really powerful. gedit ships with twelve plugins: Change case, Document Statistics, External tools, File Browser, Indent, Modelines, Python console, Snippets, Sort, Spell, Tag list, User Name, and Insert Date/Time. The gedit-plugins package adds Bracket Completion, Charmap, Code Comment, Color picker, Join lines/Split lines, Session saver, Smart Spaces, Show tabbar, and Terminal. And those are only the official ones!
In my opinion, the most useful plugin is External tools. Once enabled (under Edit → Preferences → Plugins), External tools lets you execute any Bash script with a hotkey. External tools ships with Build (runs make in the document directory), Open terminal here (opens a terminal in the document location), Remove trailing spaces (removes the useless trailing spaces in your document), and run command (runs a command and pastes the output in the file). And if you know any Bash scripting, you can easily create your own plugin.
Another really handy plugin is color picker. Any web developer knows the pain of having to find the Hex value for just about any color. That’s what this color picker (based on the GColor picker) aims to rectify. You click on anything on your desktop, and you immediately see the Hue, Saturation, Value, RGB code, and Hex code for your color. Click the insert button and the color will be inserted. A very handy tool for any web programmer.
These are just a few of the plugins available for gedit. There are also tons of 3rd party plugins (see a huge list at http://live.gnome.org/Gedit/Plugins ).
Conclusion
Hopefully, by now you’ll have realized that gedit is more than what meets the eye. Between the plethora of plugins and the powerful features, gedit is a winner in any developer’s book.
Write a full post in response to this!
Similar articles
Do you like this post?
Vote for it!
Copyright information
This entry is (C) Copyright by its author, 2004-2008. Unless a different license is specified in the entry's body, the following license applies: "Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved and appropriate attribution information (author, original site, original URL) is included".
Biography
Andrew Min: Definition: Andrew Min (n): a non-denominational, Bible-believing, evangelical Christian. (n): a Kubuntu Linux lover (n): a hard core geek (n): a journalist for several online publications (see them all at http://www.andrewmin.com/ )
- Andrew Min's posts
- Login or register to post comments
- 12150 reads
- Printer friendly version (unavailable!)




Two fantastic free software companies that make Free Software Magazine possible:
Buzz authors
Free Software news
- Two More Bills in the SCO Bankruptcy and Some Trademark Oddities
- Psystar Files Motion to Leave Chapter 11
- Swiss court: Gov can buy M$ licenses, but has to be aware of risk that contracts could be declared void during main process !freesoftware
- after using the #gimp for more than 3 years for my modest needs, I start to get familiar with it ;) #freesoftware #linux
- #vim users: favourite feature? For me it's ":set paste" real time saver - !freesoftware
Similar entries
Other sites
- The Top 10 Everything (Dave). The good, the bad and the ugly.
- Free Software news (Dave & Bridget). All about free software -- free as in freedom!
- Book Reviews: Illiterarty (Bridget). Book reviews, blogs, and short stories.
Hot topics - last 60 days
-
2009: software installation in GNU/Linux is still broken -- and a path to fixing it
Tony Mobily, 2009-06-23 -
The Bizarre Cathedral - 44
Ryan Cartwright, 2009-06-08 -
Free Software Magazine caught in the 3fn shutdown crossfire
Tony Mobily, 2009-06-05 -
Is Android the key to the GNU/Linux desktop? Really?
Tony Mobily, 2009-06-12 -
The Bizarre Cathedral - 45
Ryan Cartwright, 2009-06-15
Hot topics - last 21 days
-
2009: software installation in GNU/Linux is still broken -- and a path to fixing it
Tony Mobily, 2009-06-23 -
The Bizarre Cathedral - 45
Ryan Cartwright, 2009-06-15 -
Will Google Wave revolutionise free software collaboration?
Ryan Cartwright, 2009-06-15 -
The Bizarre Cathedral - 46
Ryan Cartwright, 2009-06-22

Plugins Support for gedit
Submitted by John Samuel on Tue, 2008-02-19 07:48.
Vote!The plugin support for gedit is indeed a good feature.
Especially the external tools features in gedit is quite useful for programmers
You can add new tools (Tools->External Tools).