Pretty-print all files in directory

Oxygen general issues.
tetramorium
Posts: 1
Joined: Mon Jun 20, 2011 6:05 pm

Pretty-print all files in directory

Post by tetramorium »

Is it possible to execute Oxygen's pretty print function against all XML files in a directory?

Thanks.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Pretty-print all files in directory

Post by adrian »

Hello,

The Format and Indent(pretty print) action is only available for the currently opened editor. There is no batch Format and Indent feature.

Alternatively you could enable format on open, then open and save the files that you need formatted:
Options -> Preferences -> Editor -> Format, Format and indent the document on open
I'd recommend adding the directory to the current project and opening the files from there(Project view). If the files are too numerous or too large you may want to split them in several batches to avoid running out of memory.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply