ptop is a source beautifier written by Peter Grogono based on the ancient pretty-printer by Ledgard, Hueras, and Singer, modernized by the Free Pascal team (objects, streams, configurability etc)
This configurability, and the thorough bottom-up design are the advantages of this program over the diverse TurboPascal sourcebeautifiers on e.g. SIMTEL.
The program is quite simple to operate:
ptop ”[-v] [-i indent] [-b bufsize ][-c optsfile] infile outfile”
The Infile parameter is the pascal file to be processed, and will be written to outfile, overwriting an existing outfile if it exists.
Some options modify the behaviour of ptop: