I think Emacs has a batch mode? Try using Edit>Format>Send Selection To
and set up a command to format selected text through it, or some other
program that works with more advanced pattern matching.
Hope this helps.
James
--
James Brierley
http://slippy.dynu.net/~james/
Depression is the name given to an illness caused by
one having a realistic view of the human race.