David Vallner wrote: > Da Utorok 11. Aprl 2006 18:42 Jamal Mazrui napsal: >> Is there a Windows tool that does a reasonable job of globally >> formatting an existing Ruby script file so that it complies with the >> convention for code indentation? >> >> Jamal > > You can get one of the emacsen to load the file and reindent it in batch > mode, > ruby-mode does a pretty god job at that - I know I got someone to give > me the > whole command line a while ago, but lost the message since, try > searching the > forums for it. Not that you would want to do this with large quantities, but FWIW, I thought I'd mention: $ diakonos -e 'anchorSelection; cursorEOF; parsedIndent; saveFile; quit' my_file_which_needs_auto_indenting.rb Pistos -- Posted via http://www.ruby-forum.com/.