From: Thomas B. <br...@ph...> - 2008-12-27 20:42:58
|
On Monday 22 December 2008 09:33, Diego Rondini wrote: > Hello everyone! :) > > First I would like to thank all the developers and the contributors of > Kile: it's awesome! Hi Diego, thanks for your kind words. > When I use the package fancyvrb to define a new environment and then I > use it Kile doesn't detects it behaves like \begin{verbatim} ignoring > special characters. > > Let me explain with an example. > If I define a new environment this way: > \DefineVerbatimEnvironment{MyVerbatimEnv}{Verbatim}{} > > and then I use it: > > \begin{MyVerbatimEnv} > export PATH=$HOME/gnat/bin:$HOME/marte/utils:$PATH} > \end{MyVerbatimEnv} > > I get all the text until the end of the tex source green because the > number of $ is odd. Currently the syntax highlightning can only be influenced through the syntax file directly. Search for latex.xml on your hdd and add MyVerbatimEnv to all places where lstlisting is mentioned. Don't forget the "|". And easier way is to trick the syntax highlightning with \iffalse $ \fi. That gives: \begin{MyVerbatimEnv} export PATH=$HOME/gnat/bin:$HOME/marte/utils:$PATH} \end{MyVerbatimEnv} \iffalse $ \fi It still does not look perfect although. bye, thomas |