[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Fontification in verb-env's with argument
From: |
Arash Esbati |
Subject: |
[AUCTeX-devel] Fontification in verb-env's with argument |
Date: |
Mon, 4 May 2015 21:26:02 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hi all,
consider the following example:
--8<---------------cut here---------------start------------->8---
\documentclass[a4paper,12pt]{article}
\usepackage{listings}
\lstnewenvironment{pascal}[2]
{\lstset{language=pascal,%
basicstyle=\ttfamily#1,%
keywordstyle=#2}}{}
\begin{document}
\begin{pascal}{\small}{\underbar}
for i:=maxint to 0 do
begin
{ do nothing }
end;
\end{pascal}
Some text to see the fontification.
\end{document}
--8<---------------cut here---------------end--------------->8---
With the two arguments, fontification starts with `\end{pascal}'. Any idea
how to fix this?
Best, Arash
- [AUCTeX-devel] Fontification in verb-env's with argument,
Arash Esbati <=