On Sat, 2004-04-24 at 12:57, Douglas Kojetin wrote: > hi all- > > i've got a perl script with quite a bit of code. i had to add a few > more 'if/else' statements, and instead of manually tabbing everything > over (puts ease on my eyes), i was wondering if there was a program > and/or script that anyone knows of that might automagically do this for > me (scan through the code and tab it according to its structure)? i've > seen programs that format HTML quite efficiently (html tidy, i think it > was called), but i haven't really looked for anything else.
Hi Douglas,
In Emacs, selecting a region followed by the command:
ESC-x indent-region
will do what you want. And recent versions of Emacs have a nifty
point-and-click menu (Options --> Customize Emacs) that you can use to
customize the indentation system to suit your style.
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: [EMAIL PROTECTED] [EMAIL PROTECTED]
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
signature.asc
Description: This is a digitally signed message part
-- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
