Hi Arash, 2015-05-04 23:26 GMT+02:00 Arash Esbati <esb...@gmx.de>: > 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?
Could you please show what you see? I'm attaching a screenshot of my Emacs: `pascal' environment is not fontified at all. I don't think it's strange since it seems listings style file does nothing special for new listing environments. Bye, Mosè
_______________________________________________ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel