From a420b0315b71c7ceb68ad2491eea1f5fb533bd13 Mon Sep 17 00:00:00 2001 From: datadiode Date: Sat, 15 Aug 2026 12:43:42 +0200 Subject: [PATCH] Add Inno Setup formatting section to README Added a section on formatting Inno Setup [Code] sections with an example script. --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 0a2e6603..5bcde895 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,35 @@ const ValueMap: TArray = [ // pasfmt on ``` +### Formatting Inno Setup [Code] sections + +Some syntactic salt allows Inno Setup scripts to pass smoothly through `pasfmt`: + +```delphi +[Deco] +(*// + +[Setup] +AppName=EmptyProgram +AppVerName=EmptyProgram 1 +UsePreviousAppDir=false +DefaultDirName={pf}\EmptyProgram +Uninstallable=false +OutputBaseFilename=HelloWorld +PrivilegesRequired=none + +[Messages] +SetupAppTitle=My Title + +[Code] +//*) +function InitializeSetup(): Boolean; +begin + MsgBox('Hello world.', mbInformation, MB_OK); + Result := FALSE; +end; +``` + ## Integrations - [`pasfmt-rad`](https://github.com/integrated-application-development/pasfmt-rad): a Delphi IDE extension for `pasfmt`