Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Latest commit

 

History

History
29 lines (18 loc) · 694 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 694 Bytes

A tool to format Racket code.

Features:

  • Stand-alone command-line program.

  • Decides line breaks as well as indentation.

  • Sorts definitions where this will not change the meaning of the code.

  • Optimized for simplicity and clarity; easy to extend and customize.

If no arguments are specified, it formats the code from standard input and writes the result to standard output.

If files are given, it formats the files. If -i is specified together with files, the files are edited in place. Otherwise, the result is written to standard output.

Usage: racket-format [options] files

-h  Show help
-V  Show version
-i  Inplace edit

To build:

raco exe racket-format.rkt