The standard library simple_prettyprinter package defines a fast, simple prettyprinter. Its major advantage is that the complete implementation is only 300 lines of code — you can read and understand it completely in an hour.
The simple_prettyprinter package implements the Simple_Prettyprinter api.
The simple_prettyprinter package source code is in src/lib/prettyprint/simple/simple-prettyprinter.pkg.
See also: prettyprint.
The above information is manually maintained and may contain errors.