Prettyprinting more complex literals
Factor handbook > Developer tools > The prettyprinter > Extending the prettyprinter

Prev:Literal prettyprinting protocol
Next:Prettyprinter sections


If the Literal prettyprinting protocol is insufficient, a method can be defined to control prettyprinting directly:
pprint* ( obj -- )


Some utilities which can be called from methods on pprint*:
pprint-object ( obj -- )

pprint-word ( word -- )

pprint-elements ( seq -- )

pprint-string ( obj str prefix suffix -- )

pprint-prefix ( word quot -- )


Custom methods defined on pprint* do not perform I/O directly, instead they call prettyprinter words to construct sections of output. See Prettyprinter sections.