#formatter #tree-sitter #sourcepawn

bin+lib sp_format

sourcepawn grammar for the tree-sitter parsing library

1 unstable release

new 0.1.14 Apr 23, 2025

#1095 in Development tools

MIT license

115KB
2.5K SLoC

SPFormat

Opinionated SourcePawn code formatter, for the new and the old syntax, written in Rust.

Try the playground!

CLI tool

  1. Download the latest release for your platform.
  2. (OPTIONAL) Add the executable to your PATH Windows Linux/OSX.
  3. Run in your console sp_format.exe -h for a list of commands.

Note You can also drag and drop the file you want to format over the executable's icon.

Dependencies

~12–17MB
~320K SLoC