Yesterday I was thinking of committing a recently written reindentor :)
I had a feeling that I must hurry :)
Not a full blown formatter (like my tool 'DST' was trying to be, written 17 years ago), but it can change indentation (including continued lines), it assumes a properly and consistently indented source, autodetects it and can change this to any number of chars or tabs.
Mine for now, if it is pointed in options, indents source, changes case of commands, functions and booleans, inserts/deletes empty lines and inserts spaces before/after operators and brackets, changes EOL.
Do you think we can make the default setup to produce std Harbour .prg formatting?
I plan to set default options in accordance of how Harbour's prg files are formatted now.
Regards, Alexander. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour