{"id":2848,"date":"2008-06-29T16:01:46","date_gmt":"2008-06-29T16:01:46","guid":{"rendered":"http:\/\/scienceblogs.com\/gregladen\/2008\/06\/29\/gedit-with-it\/"},"modified":"2008-06-29T16:01:46","modified_gmt":"2008-06-29T16:01:46","slug":"gedit-with-it","status":"publish","type":"post","link":"https:\/\/gregladen.com\/blog\/2008\/06\/29\/gedit-with-it\/","title":{"rendered":"Gedit With It."},"content":{"rendered":"<p>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&#8217;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 &#8220;Hello World&#8221; 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.<a href=\"http:\/\/www.linux.com\/feature\/137879\">Here<\/a> is an overview of Linux text editors.  I&#8217;ll make just a few comments.As the review says, vi (or Vim or Elvis &#8230; variants of vi) is installed on virtually every *nix computer.  Therefore, if you are a system administrator, you will find &#8230;. 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&#8217;ve written recently about Gedit, <a href=\"http:\/\/scienceblogs.com\/gregladen\/2008\/06\/technology_tidbits_7.php\">HERE,<\/a> in what I think is my most under appreciated post &#8230; lots of work, good stuff, funny jokes, nobody read it.  Go read that to find out more about Gedit.  And spornography. And other stuff.<!--more-->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:<\/p>\n<blockquote><p>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.<\/p><\/blockquote>\n<p>I&#8217;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 &#8230;<\/p>\n<blockquote><p>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&#8217;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.<\/p><\/blockquote>\n<p>The crapbook sounds great, but for now I &#8216;m going to declare Tea a crap piece of software.  In &#8216;installed&#8217; it but found no way to run it.  If a program is named &#8216;foo&#8217; and you install it, typing &#8216;foo&#8217; 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&#8217;t recommend it.Too bad, the crapbook sounded useful.The review also covers Emacs, of course.  As well as leafpad, mousepad, and medit. I&#8217;ve never used them but they sound like good no-frills jobbies.SciTE is also covered, and I&#8217;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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;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 &hellip; <a href=\"https:\/\/gregladen.com\/blog\/2008\/06\/29\/gedit-with-it\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Gedit With It.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"1","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[164,67,130,57],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5fhV1-JW","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/2848"}],"collection":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/comments?post=2848"}],"version-history":[{"count":0,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/2848\/revisions"}],"wp:attachment":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/media?parent=2848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/categories?post=2848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/tags?post=2848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}