Subject: Re: bug#25696: 11.90.0; Color bleeding after env definition

From: Arash Esbati <[email-masked]>
Date: Sun, 12 Feb 2017 20:05:57 +0100

Hi Uwe,

Uwe Siart <[email-masked]> writes:

> After \newenvironment that includes \end{alltt} I observe color
> bleeding. In the following MWE most of the text after \end{alltt} is
> fontified in font-latex-verbatim-face.
>
> % ---------------------
> \documentclass{article}
> \usepackage{alltt}
>
> \newenvironment{Code}
>   {\begin{alltt}}
>   {\end{alltt}}
>
> \begin{document}
> \begin{Code}
>   Some example text
> \end{Code}
> \end{document}
> % ---------------------

This issue was discussed not long time ago, see the thread here[1].
This is not strictly a bug, the \begin/\end{...} for verbatim
environments should stand in their own lines beginning with space(s)
and/or tab(s).  Rearranging the code like this works fine:

\newenvironment{Code}{%
  \begin{alltt}%
  }{%
  \end{alltt}%
}

Best, Arash

Footnotes: 
[1]  http://lists.gnu.org/archive/html/bug-auctex/2017-01/msg00064.html