Here you go then... I've attached V1.2!
A quick note though:
DB doesn't use a keyword to define the start of procedures (like it does with functions) - it uses labels.
The problem with this is that DBATidy has no way of knowing if any given label is the start of a procedure or just a plain label. This probably won't affect most of you, but I tend to add lots of labels in my programs at key places so I can use F9 to quickly jump to them.
Take the following for example:
PrintHello:
Print "Hello"
Return
DataSection:
Data 1,2,3,4,5
The program has no way of knowing that the PrintHello label is the start of the procedure and has an associated Return, or equally that the DataLabel label does not.
So, for DBATidy to work there's one small rule:
All labels in your program that are the start of a procedure must be the only thing on that line (you can add a Rem on the end of labels which really are only labels): Eg:
PrintHello:
Print "Hello"
Return
DataSection: Rem This really is a label
Data 1,2,3,4,5
Using this method, only PrintHello will trigger indentation.
TDK_Man