Forum > General

Formatter

(1/2) > >>

raymono:
What is the best formatter to use for pascal source files (from the command line)?

Tried GNU Indent and atype and they give garbled output ...

dsiders:

--- Quote from: raymono on June 07, 2024, 09:00:54 pm ---What is the best formatter to use for pascal source files (from the command line)?

Tried GNU Indent and atype and they give garbled output ...

--- End quote ---

FPC provides ptop. Have you tried it?

https://www.freepascal.org/tools/ptop.html

raymono:
Thanks for the quick reply - surprised this forums is so relatively busy.

ptop seems to do the job.

DomingoGP:
Lazarus also offers the command line version of the Jedi code format if you want to try it.

It is required to build the program from
lazarus/components/jcf2/CommandLine/Lazarus/jcf.lpr

raymono:
Thanks - will check.

Regarding ptop, seems to work with valid programs - went into an infinite output generating loop with an invalid program...

Navigation

[0] Message Index

[#] Next page

Go to full version