nxt.pretty

Pretty Printing to AsciiDoc, HTML, LaTeX, JIRA Wikitext, etc.

Members

Classes

Viz
class Viz

Visual Backend.

Enums

SolarizedLightColorTheme_hexstring
enum SolarizedLightColorTheme_hexstring

Solarized light color theme.

VizForm
enum VizForm

Visual Form(at).

Functions

concise
auto concise(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
faze
auto faze(T text, Face face)
Undocumented in source. Be warned that the author may not have intended to support it.
getFace
auto getFace(Arg arg)
Undocumented in source. Be warned that the author may not have intended to support it.
setFace
void setFace(Term term, Face face, bool colorFlag)
Undocumented in source. Be warned that the author may not have intended to support it.
shortDurationString
string shortDurationString(Duration dur)
show
void show(Viz viz)

Show viz.

Manifest constants

baseNameFace
enum baseNameFace;
Undocumented in source.
contextFace
enum contextFace;
Undocumented in source.
ctxFaces
enum ctxFaces;

Key (Hit) Face Palette.

digestFace
enum digestFace;
Undocumented in source.
dirFace
enum dirFace;
Undocumented in source.
errorFace
enum errorFace;
Undocumented in source.
fileFace
enum fileFace;
Undocumented in source.
h1Face
enum h1Face;
Undocumented in source.
infoFace
enum infoFace;
Undocumented in source.
keyFaces
enum keyFaces;

Key (Hit) Faces.

kindFace
enum kindFace;
Undocumented in source.
missingSymlinkTargetFace
enum missingSymlinkTargetFace;
Undocumented in source.
pathFace
enum pathFace;
Undocumented in source.
regFileFace
enum regFileFace;
Undocumented in source.
specialFileFace
enum specialFileFace;
Undocumented in source.
stdFace
enum stdFace;
Undocumented in source.
symlinkBrokenFace
enum symlinkBrokenFace;
Undocumented in source.
symlinkFace
enum symlinkFace;
Undocumented in source.
timeFace
enum timeFace;
Undocumented in source.
titleFace
enum titleFace;
Undocumented in source.
warnFace
enum warnFace;
Undocumented in source.

Static variables

htmlHeader
auto htmlHeader;
Undocumented in source.
nonStateHTMLTags
auto nonStateHTMLTags;

HTML tags with no side-effect when its arguments is empty.

Structs

Face
struct Face

Face with color of type SomeColor.

Fazed
struct Fazed(T)

Fazed (Rich) Text.

Templates

Concise
template Concise(Tuple)

Meta

Authors

TODO: Convert Viz param to delegate like for void toString(scope void delegate(scope const(char)[]) @safe sink) for independency on arsd.

Rename pp1 to ppL and pp to pp1 where relevant to reduce number of template instantiations. And replace multi-calls to viz.pp() to viz.pp1()

TODO: Add tester that prints types from nxt.geometry

TODO: Remove all restrictions on pp.*Raw.* and call them using ranges such as repeat

TODO: Use "alias this" on wrapper structures and test!

TODO: How should std.typecons.Tuple be pretty printed?

TODO: Add visited member to keeps track of what objects that have been visited

TODO: Add asGCCMessage pretty prints seq $PATH, ':', $ROW, ':', $COL, ':', message, '[', $TYPE, ']'