! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays assocs colors fry io
-io.styles kernel literals make math.order namespaces parser
-prettyprint.backend prettyprint.sections prettyprint.stylesheet
-sequences sets sorting ui.theme vocabs vocabs.parser ;
+USING: accessors assocs colors.constants fry io io.styles kernel
+make namespaces parser prettyprint.backend prettyprint.sections
+prettyprint.stylesheet sequences sorting vocabs vocabs.parser ;
FROM: io.styles => inset ;
IN: vocabs.prettyprint
: pprint-manifest ( manifest -- )
(pprint-manifest pprint-manifest) ;
+CONSTANT: manifest-style H{
+ { page-color COLOR: FactorLightTan }
+ { border-color COLOR: FactorDarkTan }
+ { inset { 5 5 } }
+}
+
[
nl
{ { font-style bold } { font-name "sans-serif" } } [
"To avoid doing this in the future, add the following forms" print
"at the top of the source file:" print nl
] with-style
- {
- { page-color $ vocab-background-color }
- { border-color $ vocab-border-color }
- { inset { 5 5 } }
- } [ manifest get pprint-manifest ] with-nesting
+ manifest-style [ manifest get pprint-manifest ] with-nesting
nl nl
] print-use-hook set-global