On 7/29/2023 10:35 PM, Henning Hraban Ramm wrote: > Am 29.07.23 um 22:06 schrieb Bruce Horrocks: >> Your example seems to work: I see the \getbuffer[MyBuffer] command >> typed (not executed) with colour coding on the keyword and line >> numbered; then the block text fakewords from the visual module; then >> the \fakewords macro shown (again not executed) as per the default for >> typing. > > The setup for MyCode is not applied to \typeMyBuffer, and I don’t know > how it could; something like \typeMyBuffer[MyCode] doesn’t work. These commands inherit from buffer, so \setupbuffer will work. But as I need to prevent you to come up with some ugly hack (after all your upocoming book should be hack free) ... ... attached an extension that supports inheritance (via category), still honors 'buffer' otherwise and accepts an optional category instead of settings. take your choice ... You can put the patch in cont-new.mkxl assuming you wikify it too. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------