24.7 Shaded Code Area

We highlight the code area by redefining the ∖nwbegincode and ∖nwendcode commands of the noweb package. These commands are generated by NOWEAVE at the begin and end of each code part.

The background color of a code chunk can be configured via the commands ∖backgroundColor{code}{...} at a local customization (see Section 24.12).

229⟨shaded code areas 229⟩≡   (192)
\let\rhxnwbegincode\nwbegincode
\let\rhxnwendcode\nwendcode
\def\nwbegincode#1{\begin{ColoredBackground}{code}\rhxnwbegincode{#1}}
\def\nwendcode#1{\rhxnwendcode{}\end{ColoredBackground}}

Uses code 432 and ColoredBackground 202.