Previous: Evaluators, Up: Languages [Contents]
Decorators are used to add extra information to a block’s #:code
field before printing it. Most commonly, this means syntax
highlighting.
Decorators are stored in an alist. The key is the output type and the value is the decorator.
(define %default-decorators `((sxml . ,%no-decoration)))
This means that when printing a code block to SXML
, the code is by
default wrapped in a %no-decoration
call, i.e. (%no-decoration code)
.
Languages can change how the code is printed to various types by customizing the alist.