Pascal source code formatter
  • POV-Ray SDL 53.2%
  • Pascal 46.7%
Find a file
2025-05-18 10:36:10 +02:00
archives Archives 2022-08-12 19:51:59 +02:00
cli Edit Makefile 2025-05-18 10:36:10 +02:00
editor Edit README 2025-02-20 08:29:01 +01:00
tools Edit Makefile 2025-05-18 10:36:10 +02:00
delforengine.pas Write to standard output 2024-02-26 20:55:46 +01:00
delfortypes.pas Units and command-line tool 2022-08-12 19:19:38 +02:00
history.txt Screenshot 2024-02-26 21:45:47 +01:00
license.txt Test 2024-02-26 19:24:00 +01:00
log.pas Units and command-line tool 2022-08-12 19:19:38 +02:00
oobjects.pas Units and command-line tool 2022-08-12 19:19:38 +02:00
pcf.ini Standard configuration file 2022-08-12 19:29:26 +02:00
README.md Edit README 2025-02-20 08:29:01 +01:00
settings.pas Write to standard output 2024-02-26 20:55:46 +01:00

Pascal Code Formatter

Description

Pascal source code formatter written in Pascal by Egbert van Nes.

History

The name of the original project is DelForExp (Delphi Formatter Expert).

DelForExp has been adapted for Lazarus by Uwe Schächterle.

Finally, the Lazarus Formatter Expert has been changed to a stand-alone command-line tool by me (Roland Chastain), under the name PCF.

Usage

  pcf -h
  pcf input.pas
  pcf input.pas -o output.pas
  pcf input.pas -o output.pas -c settings.cfg

Long options are also accepted.

  pcf --help
  pcf input.pas --out=output.pas --conf=settings.cfg
  • When no output file is specified, the formatted code is written to standard output.
  • The input file and the output file can be the same file. The file will be overwritten without asking confirmation.
  • When no configuration file is specified, the program searches for a file named pcf.cfg or pcf.ini (see below).
  • Two configuration file formats are supported: binary file or text file. The text file must have a .ini extension. Both formats can be created used the Settings Editor.

Editors

There are two versions on the Settings Editor: one made with Lazarus, the other made with MSEide.

Credits

The command-line tool uses UTF8 Tools (source included in this repository).

License

See the file license.txt.

This project is published with kind permission of Egbert van Nes.