Handbook
Glossary
with-default-pprint-config ( quot -- )
Factor handbook
»
Developer tools
»
The prettyprinter
»
Prettyprint control variables
Prev:
without-limits ( quot -- )
Vocabulary
prettyprint
.
config
Inputs
quot
a
quotation
Outputs
None
Word description
Calls a quotation in a new dynamic scope with the default prettyprinter settings. The caller's settings are restored afterward, including when the quotation throws an error. The quotation can override settings within its own scope.
Definition
USING:
kernel
namespaces
;
IN:
prettyprint.config
:
with-default-pprint-config
( quot -- )
H{
{
number-base
10
}
{
tab-size
4
}
{
c-object-pointers?
f
}
{
has-limits?
f
}
{
qualified-names?
f
}
{
margin
64
}
{
length-limit
100
}
{
nesting-limit
15
}
{
line-limit
f
}
{
string-limit?
t
}
{
boa-tuples?
f
}
}
clone
swap
with-variables
;
inline