I'm seem to be using this mailing list as private correspondence, I'll try to keep my posting down in future. But.. Following up on my question on how to inline XML code, I vaguely remember reading that the TeX primitive \par, has no effect in restricted horizontal mode, (I think that's what it's called, anyways the horizontal mode that's not paragraph mode). So on that assumption, I forced the verbatim pretty printer to operate inside an \hbox, with the following code: -------------------------------------------------- %output=pdf \definetyping [XMLtag] [option=XML] \setuptyping [XMLtag] [before={\ \hbox\bgroup}, after={\egroup\ }, palet=colorpretty] \setupcolors[state=start] \starttext This is a \startXMLtag <TABLE/> \stopXMLtag tag inline; and this is a comment \startXMLtag <!-- comment --> \stopXMLtag \startXML <!-- This is displayed XML --> <TABLE/> \stopXML \stoptext --------------------------------------------------