From: Pistos Christou Date: 2006-04-13T05:32:44+09:00 Subject: Re: Ruby auto formatter David Vallner wrote: > Dňa Utorok 11. Apríl 2006 18:42 Jamal Mazrui napísal: >> 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/.