-- PrettyPrintDoc.tioga
-- last edited by: Spreitzer, February 6, 1984 4:01:24 pm PST
name PrettyPrint:
syntax
"PrettyPrint" ("/" ["/"] <switch-letter> <value>)* <expression>
description
Evaluate the expression and prettily print (using whitespace) the result.
Possible switches are:
Verbosity: Boolean ← FALSE
Depth: INT ← 4
Controls how far the value is expanded.
maximum list Length: INT ← 32
Limits the number of list, array, or record elements printed for any given list, array, or record.
maximum line Width: INT ← 60
It will try to put no more than this many characters on each line.
If the slash introducing a switch is doubled, value sticks; otherwise, it doesn't.
examples
% PrettyPrint //l 5 ViewerOps.FindViewer["Watch"]
[class: [flavor: $Container, notify: NIL,
paint: ContainersImpl.ContainerPaint, modify: NIL,
destroy: NIL, ...], wx: 513, wy: 681, ww: 511,
wh: 109, ...]
stop/undo
Click the STOP! button.
implementation
PrettyPrint.Config in PrettyPrint.df
contact
Mike Spreitzer <Spreitzer.pa>
keyword hints
 pretty whitespace format print evaluate interpret expression 
keywords
to be supplied by the Index Czar