Denis Bitouzé <[email protected]> writes:

Hi Denis,

> (I must admit what I need is a kind of torture test from a syntax
> highlight point of view :)

Yes, nested verbatim environments is certainly not the scenario working
best.  Basically, any \begin{X} where X is some verbatim environment
will enable verbatim fontification, and the next \end{Y} will disable it
again.  But X and Y don't need to be the same, like in

  \begin{latexcode}   % enables verbativ fontification
  \begin{lstlisting}
  \end{lstlisting}    % disables it again
  \end{javacode}

AUCTeX font-latex uses syntactic fontification for verbatim blocks.
That kind of font-lock is usually used for comments or strings, i.e.,
all those things that usually don't nest.

Bye,
Tassilo


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to