YC.PrettyPrinter is an F# implementation of printer combinator library based on the paper Polynomial-Time Optimal Pretty-Printing Combinators with Choice. The library contains 5 combinators, sufficient for creation of pretty printer for optimal printing of code. The interface for an easy migration from FSharp.Text.StructuredFormat is provided and can be found here.

The YC.PrettyPrinter library can be installed from NuGet:
PM> Install-Package YC.PrettyPrinter

Samples & documentation

The library comes with documentation and include Getting Started tutorial, as well as an API Reference

Contributing and copyright

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding a new public API, please also consider adding samples that can be turned into a documentation. You might also want to read the library design notes to understand how it works.

The library is available under Public Domain license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.

Fork me on GitHub