Yes, this is possible using a macro and UltraEdit started from command line with the parameter to run this macro on each opened file and then exit.
So first a macro must be created for example with name
ReIndentFiles with macro properties
Show cancel dialog for this macro and
Continue if search string not found both
not checked with following code:
Code: Select all
InsertMode
ColumnModeOff
Loop
IfNameIs ""
ExitLoop
EndIf
SelectAll
ReIndentSelection
CloseFile Save
EndLoop
This macro is saved into a macro file with the name
ReIndentFiles.mac. This macro file should not contain any other macro.
Then a shortcut is needed to run UltraEdit with one or more files and the macro to re-indent them all. Example command line:
"%ProgramFiles%\IDM Computer Solutions\UltraEdit\uedit64.exe" /fni "C:\Path To File\First File.ext
" "C:\Path To File\Second File.ext
" /M,E="C:\Path To Macro File\
ReIndentFiles.mac"
The command line parameters are explained in help of UltraEdit on page with title
Command Line Parameters.
Please note that UltraEdit supports also wildcards or command line like
"C:\Path To Files\
*.c" to open
all files with file extension
.c in specified directory.
In the properties of the shortcut file should be also configured to run UltraEdit with the command line above with a minimized window.