Hi everyone!
I am searching for a method to reformat a whole LUA script file.
What I want to do is delete all unused spaces/tabs in file and automatically add or remove tab indentation to make the script more easily readable. What I have in mind is that when I select a whole script, I can clean it by removing all unused whitespace before and after the lines. Then macro/script should add tab indent the same way that the used syntax highlighting wordfile allow it during writing.
An UltraEdit script or a macro would be fine for this task. It doesn't need to be automatic on each file open / save. A manual execution by me is okay.
Is there a way to do this? Could you please tell me more about macros / scripts? What could be the easiest way to do this?
I am searching for a method to reformat a whole LUA script file.
What I want to do is delete all unused spaces/tabs in file and automatically add or remove tab indentation to make the script more easily readable. What I have in mind is that when I select a whole script, I can clean it by removing all unused whitespace before and after the lines. Then macro/script should add tab indent the same way that the used syntax highlighting wordfile allow it during writing.
An UltraEdit script or a macro would be fine for this task. It doesn't need to be automatic on each file open / save. A manual execution by me is okay.
Is there a way to do this? Could you please tell me more about macros / scripts? What could be the easiest way to do this?