Gedit With It.

Spread the love

I find myself using a basic text editor more and more often. Even the relatively well behaved openoffice.or Writer had a tendency to do stuff I don’t necessarily want to do with a simple text file, and certainly, something like Word is the work of Satan.For instance, have you ever noticed strange goofy characters that are not supposed to be there in the title of the posts on this blog or elsewhere? That comes from using a text editor. What looks like “Hello World” in both a text editor and a word processor may not really be the same thing, when copied and pasted. Character encodings and all.Anyway, text editors are important, and they are not just for coders. In fact, bloggers need an excellent text editor, as do many normal people.Here is an overview of Linux text editors. I’ll make just a few comments.As the review says, vi (or Vim or Elvis … variants of vi) is installed on virtually every *nix computer. Therefore, if you are a system administrator, you will find …. wait, wait, if you are a system administrator you do not need to learn anything from me about text editors. Move along. northing to see here.OK, the review also discusses Gedit and Kate. I’ve written recently about Gedit, HERE, in what I think is my most under appreciated post … lots of work, good stuff, funny jokes, nobody read it. Go read that to find out more about Gedit. And spornography. And other stuff.Kate is the KDE version of Gedit (well, not version, but analog). You can run it under Gnome, of course, and your package manager in a nice distro like Ubuntu will know how to do that for you. Kate is supposed to be more configurable that Gedit. Both do have tabbed interfaces, though it is not the default in Kate (you can easily turn it on).For programmers, and possibly even for people writing complex blog posts, this is nice:

An immediately helpful feature is the ability to hide code that is within a certain scope. For example, to hide all the code within a foreach statement, double-click on the offending line. This is a significant help for uncluttering verbose scripting text. Also, under the Tools menu, you can change the end of line type to switch between Unix, DOS, and Mac, thus avoiding subtle issues in your text later.

I’m not sure if this will work the easy way or the hard way, but I may experiment with it. As far as I can tell, Kate does not by default recognize HTML for code folding purposes.Kate will also pipe text to a console, as will Gedit. These things rarely go as one expects, but this is a potentially very useful feature.(Warning: Kate, as a KDE beast, will assume that one click means two clicks. Careful. )A text editor that I did not know about is TEA. It …

is a compact, configurable, and function-rich editor that takes up only around 500KB of memory. TEA provides a decent text editor, with markup support for LaTeX, DocBook, Wikipedia, and HTML. It does not provide any syntax highlighting, but does provide an extremely basic project environment for compiling code.Thankfully, TEA also contains a delightfully named crapbook (read notes holder) for storing temporary text. The editor provides a spell checker and statistics for documents and therefore sits comfortably between an office suite and a plain editor. Other functionality includes a file browser and a calendar. Because the editor’s compact size is based on the fact that it relies heavily on using external tools, under the Help menu there is a well-thought-out self-check command that on activation mentions any missing dependencies.

The crapbook sounds great, but for now I ‘m going to declare Tea a crap piece of software. In ‘installed’ it but found no way to run it. If a program is named ‘foo’ and you install it, typing ‘foo’ at a command line should run it. If that is not the case, the software should have documentation telling you what unusual thing one must do to invoke it. The only way to communicate with the maintainer is to subscribe to Livejournal. No thanks. Tea, TEA and tea do not cause the program to run, and the site has no useful documentation, therefore I can’t recommend it.Too bad, the crapbook sounded useful.The review also covers Emacs, of course. As well as leafpad, mousepad, and medit. I’ve never used them but they sound like good no-frills jobbies.SciTE is also covered, and I’ve used that quite a bit and found it a worthy rival of Gedit, perhaps better for certain kinds of projects. I did a biggish R-cran project using this as the text editor for the R code and it was pretty nice.

Have you read the breakthrough novel of the year? When you are done with that, try:

In Search of Sungudogo by Greg Laden, now in Kindle or Paperback
*Please note:
Links to books and other items on this page and elsewhere on Greg Ladens' blog may send you to Amazon, where I am a registered affiliate. As an Amazon Associate I earn from qualifying purchases, which helps to fund this site.

Spread the love

6 thoughts on “Gedit With It.

  1. Lucifer is but one of the many contractors who contributed to the Office application suite. He is not solely to blame for the mess that is Word.

  2. No, just little things like “format page” being under “file” while “format anything else” is under “format”

  3. Face it. If you don’t use emacs, you’re headed for the big blue screen at the bottom of the pit.

  4. I like the “crapbook” play on words too. So apropos, so much of the time.For a long time, I could reasonably claim to be the only person who wrote kernel code for AIX, Solaris, UnixWare, and Linux using a Windows text editor (EditPlus). Then for a long time I was one of the few who’d use emacs and vi “ambidextrously” without becoming a hyper-zealot for either one. I’d use emacs for writing big chunks of new code at my desk, and vi for short hacks on test systems or in the field. The nice thing about vi is that it’s likely to be available sooner when you’re bringing up *N*X on a new kind of system, and it’s more likely to be available at a customer site.Nowadays I mainly use Kate, which I consider to have three advantages over gedit. First, it seems to be in the smaller class of editors that I consider reasonably well-behaved when it comes to indentation and tabs; gedit is in the larger class of editors that I feel I have to fight with to get correct results. Second, it’s KDE instead of GNOME, and I generally find KDE’s kioslave interface (which I use e.g. to edit files directly on my website via FTP) to be of better quality than GNOME’s copy of it. Third, Kate integrates seamlessly with cscope to produce kscope, which I find absolutely invaluable in my line of work and for which no GNOME equivalent seems to exist.I still use vi for quick edits, but for code navigation or writing that I expect to take more than few minutes I fire up kscope.

  5. I recently changed over to SciTE for all my editing. I particularly like to use it in a ‘no distractions’ full-screen minimalist configuration. It also has the advantage that it can be installed on Windows.

  6. Nedit is one of my favorites. If you edit large files, say a few thousand lines, the speed advantage of Nedit over Gedit is appreciable.

Leave a Reply

Your email address will not be published. Required fields are marked *