On Sun, Nov 24, 2024 at 01:05:56PM +0000, Gavin Smith wrote:
> Thanks.  I imagine that if the user's document had the same language
> in different examples (e.g. TeX), but that it had to be highlighted
> differently for the same language in different examples (e.g. TeX
> with different catcodes, e.g. using @ to introduce control sequences
> rather than \), then the user would mark these different examples
> with a different keyword on the @example command line:
> 
> @example tex
> \hbox@{foo@}
> @end example
> 
> @example tex-escape-is-at
> @@hbox@{foo@}
> @end example
> 
> Then the user would provide a different *.lang file for the two types
> of example.

In that case, there will be two files written by the highlight syntax
code in texi2any, one for tex and one for tex-escape-is-at and two calls
to highlight-source, as the calls to highlight-source are by language.

-- 
Pat

Reply via email to