On Tue, Mon, 18 Dec 2017 23:50:09 +0100, Pablo Rodriguez
I have the following sample:
\definetype[context][option=tex] \definetype[lua][option=lua] \starttext \startTEXpage[offset=2em]
a \TEX\ inline comment: \context{ag%befe}
\Lua\ inline comment: \lua{agb --efe}
\startTEX This is text. % a comment, not \comment \stopTEX
\startXML <p>This is text.<!--and this is a comment--></p> \stopXML
\startLUA if code=="code" then --this is a comment \stopLUA \stopTEXpage \stoptext
Would it be possible that all comments in type and typing (at least, for Lua, XML and TeX) would have the same formatting for the whole comment contents, including the comment signs?
Dear Pablo, At least for XML you could use my module highlight-xml: \usemodule[highlight-xml] \definetype[xml][option=xml] \starttext \startTEXpage[offset=2em] \xml{attr="value"}\crlf \xml{<p>This is text.<!--and this is a comment--></p>} \startXML <p>This is text.<!--and this is a comment--></p> \stopXML \stopTEXpage \stoptext Note that even partial XML is highlighted correctly. Cheers, Christoph