funkwerk-mobility / prettyprint

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

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

License:MIT License


Languages

Language:D 100.0%