<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Isshen, LLC: Ruby beautifier</title>
    <link>http://blog.isshen.com/articles/2007/07/26/ruby-beautifier</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Ruby beautifier</title>
      <description>&lt;p&gt;I use jEdit for Ruby on Rails development. I only need three things from it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Project Viewer / File tree panel (like on TextMate)&lt;/li&gt;
&lt;li&gt;Search in directory. The "find" command is OK, but the jEdit HyperSearch will take me directly to the line number in the file.&lt;/li&gt;
&lt;li&gt;Autoformatting and autoindenting.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I am not particular to syntax highlighting. I don't need to have integrated SQL, log windows, or Subversion/SVK integration -- I use Tilda, a drop-down Gnome terminal bound to function keys. &lt;/p&gt;

&lt;p&gt;jEdit 4.2final does (1) and (2) well. It does not do (3) well. I may get fed up enough to find a new editor soon to work with Ruby on Rails. Now, I can work with the broken autocompletions, but I have difficulty working with the broken autoindents. It looks fine when I see it in jEdit, but the resulting text does not output correctly. Probably because I did not set the indent options properly. &lt;strong&gt;Update&lt;/strong&gt;: Yep, need to set "soft indent" and emulate indents with spaces.&lt;/p&gt;

&lt;p&gt;Fortunately, there is a command-line script that will &lt;a href="http://www.arachnoid.com/ruby/rubyBeautifier.html"&gt;beautify Ruby scripts.&lt;/a&gt; It may not work in all the weird cases, but I can bind it to a rake task and apply it to the entire app/ directory.&lt;/p&gt;</description>
      <pubDate>Thu, 26 Jul 2007 02:11:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:97f9a0c6-9b09-4db6-a644-14ed60768a79</guid>
      <author>Hosh</author>
      <link>http://blog.isshen.com/articles/2007/07/26/ruby-beautifier</link>
      <category>Ruby on Rails</category>
      <category>tools</category>
      <category>ruby_on_rails</category>
      <category>ruby</category>
    </item>
  </channel>
</rss>
