Designed to be executed each time the enter key is pressed. Auto indents and inserts 'end' after the following: if, for, while, until, unless, def, case, class, module, begin, loop do, x do |y|. Also aligns else and elsif. Designed to work with the auto-indenting defined in Ruby edit mode v0.3.
Use in combination with the Ruby edit mode v0.3 to solve most of your Ruby indenting needs!
- Place in directory: [user_home_dir]/.jedit/macros/Ruby
- Add the 'ENTER' key shortcut to this macro via:
- Utilities -> Global Options -> Shortcuts -> Edit Shortcuts: Macros
- Install Ruby edit mode v0.3.
Updated on 09/26/2004 - 22:03