prettyprint

Pretty-print structured strings heuristically based on parentheses


Keywords
library, encoding, application, desktop, development
License
MIT
Install
dub fetch prettyprint --version 1.0.0

Documentation

prettyprint

prettyprint takes a string representing a tree of parentheses and linebreaks and indents it.

Usage

Command line tool

dub run prettyprint:pp < logfile

Library

import prettyprint : prettyprint;

string formattedOutput = object.toString().prettyprint;

API

public string prettyprint(const string text, size_t columnWidth = 80);