% LaTeX test file for kate's syntax highlighting and code folding

\ordinaryLaTeXcommandwithoption[10pt,a4paper]{article}
<beginfold id='3'>% BEGIN region</beginfold id='3'>
%comment, this is all ok % $ 
\%no comments please
\\%comment
<endfold id='3'>% END of region</endfold id='3'>

\newcommand{\nohighlighting}

\section{normal}

\ref{blue}
\pageref{blue}
\cite{blue}

<beginfold id='1'>\begin</beginfold id='1'>{environmentshavespecialcolors}
normal
\end{environmentshavespecialcolors<endfold id='1'>}</endfold id='1'>

$equations are green, \commands somewhat darker$
normal
<beginfold id='2'>$$</beginfold id='2'>equations are green, \commands somewhat darker<endfold id='2'>$$</endfold id='2'>
normal
\( 
\frac{1}{2}
<beginfold id='1'>\begin</beginfold id='1'>{test}
<endfold id='1'>\end</endfold id='1'>{test}
\)
normal
<beginfold id='2'>\[</beginfold id='2'>
%comment 
displaymath 
<endfold id='2'>\]</endfold id='2'>
normal
<beginfold id='1'>\begin</beginfold id='1'>{equation}
green\darkergreen
<beginfold id='1'>\begin</beginfold id='1'>{test}
\test
<endfold id='1'>\end</endfold id='1'>{test}
<endfold id='1'>\end</endfold id='1'>{equation<endfold id='1'>}</endfold id='1'>

<beginfold id='1'>\begin</beginfold id='1'>{equation*}
green\darkergreen
%comment
<beginfold id='1'>\begin</beginfold id='1'>{test}
\test
<endfold id='1'>\end</endfold id='1'>{test}
\%no comment
<endfold id='1'>\end</endfold id='1'>{equation*<endfold id='1'>}</endfold id='1'>

\{     %this should be comment

\verb%this shouldn't be%and this should be normal text

<beginfold id='1'>\begin</beginfold id='1'>{verbatim}
text inside a verbatim environment is also treated special $ %,
you can even put a \begin{verbatim} inside
\end{verbatim<endfold id='1'>}</endfold id='1'>

normal

<beginfold id='1'>\begin</beginfold id='1'>{Verbatim}
&@@#^%&^#$
\end{Verbatim<endfold id='1'>}</endfold id='1'>


<beginfold id='1'>\begin</beginfold id='1'>{Verbatim*}
@*&^#@*(^#(*@&
\end{Verbatim*<endfold id='1'>}</endfold id='1'>

normal
