From: "Rob ." Date: 2005-05-17T22:51:33+09:00 Subject: Re: Ruby indenting in jEdit > but if I then select > Edit | Indent | Indent Lines, it still messes up the spacing. The Edit->Indent->Indent Lines action is implemented as part of the core jEdit editor, and it was designed for languages that have blocks enclosed in a start and end token, e.g. '{' and '}'. There is no logic in the core jEdit codebase to support indenting languages like Ruby and Python, so Edit->Indent->Indent Lines won't work for Ruby. For Ruby indenting I recommend you use the 'enter' key bound as a shortcut to the Ruby plugin "Auto-indent and insert end" action. This will for the most part indent your code appropriately as you type it. Indenting discrepances will require you to make manual alterations, the Edit->Indent->Indent Lines action won't work. Cheers, Rob On 5/16/05, Jay Levitt wrote: > In article <525df23a0505160151184d2b21@mail.gmail.com>, rob.02004 > @gmail.com says... > > > > > > 2) Is your example from a otherwise empty file > > > Utterly empty buffer, which I switch to Ruby mode via Buffer Options. > > > > If you first save the file to a "something.rb" file name, then > > indenting should work properly for you. Currently the plugin is using > > the file extension to determine if the file is "ruby" or not. I'll fix > > it to also look at the buffer options setting in a future release. > > Hmm.. nope, there's more to it than that. This turns on the plugin's > pre- and re-indenting of "else" and "end", but if I then select > Edit | Indent | Indent Lines, it still messes up the spacing. > > I suspect the problem is in the ruby.xml file or the parser itself, but > I don't know enough about any of this to troubleshoot... can you > duplicate that on your end? > > -- > Jay Levitt | > Wellesley, MA | I feel calm. I feel ready. I can only > Faster: jay at jay dot fm | conclude that's because I don't have a > http://www.jay.fm | full grasp of the situation. - Mark Adler