tinyBigGAMES

DelphiFmt - A fully configurable Delphi source code formatter engine for .pas, .dpr, .dpk, and .inc files. Controls indentation, spacing, line breaks, capitalisation, and alignment through a single options record. Idempotent by design. Format a string, a file, or an entire directory tree in one call. Built on ParseKit.

12
4
100% credibility
Found Mar 03, 2026 at 12 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Pascal
AI Summary

DelphiFmt is a library for formatting Delphi source code files by applying customizable rules for indentation, spacing, line breaks, capitalization, and alignment.

How It Works

1
🔍 Discover the code cleaner

You hear about a helpful tool that automatically tidies up your programming files, making them neat and consistent without effort.

2
📥 Get the tools

Download the main cleaner and its companion helper as zip files and unzip them side by side in a new folder on your computer.

3
🗂️ Set up your workspace

Arrange everything so the tools can work together, ready for your coding program.

4
💻 Prepare in your coding app

Open the project in your Delphi program, build it once, and run a quick test to see it in action.

5
⚙️ Choose your style

Pick simple preferences like how much space around words, line lengths, and letter cases to match your taste.

6
Clean your files

Tell the tool to tidy one file or a whole folder, optionally saving backups first, and watch it apply your rules perfectly.

Enjoy perfect code

Your files are now beautifully organized every time, saving hours of manual fixes and keeping your projects consistent forever.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 12 to 12 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is DelphiFmt?

DelphiFmt is a configurable Delphi code formatter engine for .pas, .dpr, .dpk, and .inc files. It controls indentation, spacing, line breaks, capitalisation, and alignment via a single options record, turning messy Pascal source into consistent output. Built on ParseKit, it handles a string, single file, or entire directory tree in one call and stays idempotent by design—no changes on repeat runs.

Why is it gaining traction?

Unlike rigid formatters, DelphiFmt offers granular control over 60+ options for spacing around operators, vertical alignment on assignments, and capitalisation of reserved words, all without config files. Idempotence and change detection make it CI-friendly, while backups and folder recursion save time on large codebases. Developers hook it into pre-commit or save-on-format for effortless enforcement.

Who should use this?

Delphi developers tired of hand-fixing whitespace in units or projects. Teams enforcing shared style via repo-checked options on every pull request. Tool builders embedding its three-method API into IDE plugins, build scripts, or legacy migrators tackling directory-wide refactors.

Verdict

At 12 stars and 1.0% credibility, DelphiFmt feels early but delivers with thorough docs, a testbed, and Castalia-compatible defaults—low risk to prototype. Grab it if your Delphi workflow needs a flexible, embeddable formatter; skip for production without more community vetting.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.