>> However, it would be necessary to define a special version of the >> `@verbatim` environment (similar to LaTeX's `minted` environment) >> that recognizes color changes. This is certainly doable and >> probably not too difficult, but I currently have other things to >> do. Maybe it's best to open an issue. > > Well, we usually use @example rather than @verbatim in the > documentation because it is indented in PDF, and much more nicely > formatted in HTML (see > https://lilypond.org/doc/v2.22/Documentation/notation/table-of-contents > for an ugly page using @verbatim).
`@example` is a verbatim environment, too. > However, trying to use @setcolor or @pdfsetcolor in @example, I fail > to get it to work: using TeX, the color command outright wipes > everything following it in the document, and using XeTeX (with > PDFTEX=xetex texi2pdf ...) it doesn't wipe but doesn't show any > effect either. Example, please. Werner