% ConTeXt test file for Kate's syntax highlighting and code folding


%% Comments
%   This is a comment
\%  Not a comment
\\% This is a comment


%% Start/stop blocks
<beginfold id='1'>\startsection</beginfold id='1'>
Can be nested
<beginfold id='1'>\startitemize</beginfold id='1'>
\item normal
<endfold id='1'>\stopitemize</endfold id='1'>
normal
<endfold id='1'>\stopsection</endfold id='1'>
% \startblock \stopblock should be comments


%% Commands
\def<beginfold id='1'>{</beginfold id='1'><beginfold id='1'>\startstuff</beginfold id='1'><endfold id='1'>}</endfold id='1'>
<beginfold id='1'>\startstuff</beginfold id='1'> should be normal command colour

\setupindenting[yes, big]
\section<beginfold id='1'>{</beginfold id='1'>normal<endfold id='1'>}</endfold id='1'>


%% Inline math
$equations are green, \commands somewhat darker
it can also run over multiple lines
% Comment
$
normal
\mathematics{equations are green, \commands somewhat darker
it can also run over multiple lines
\mathematics{nested math should be green} this should still be green
% Comment
}
normal
\math{equations are green, \commands somewhat darker
it can also run over multiple lines
\math{nested math should be green} this should still be green
% Comment
}
normal
\m{equations are green, \commands somewhat darker
it can also run over multiple lines
\m{nested math should be green} this should still be green
% Comment
}
normal
\mathematics the first character should be green {}
\math        the first character should be green {}
\m           the first character should be green {}
normal
% $should$ \mathematics{still} \math{be} \m{commented}


%% Display math
$$
equations are green, \commands somewhat darker
it can also run over multiple lines
% Comment
$$
normal
\startformula
equations are green, \commands somewhat darker
it can also run over multiple lines
% Comment

Nested formulae should not work
The following should be red:
\startformula
Should still be math colour
\stopformula
normal

%% Verbatim
\starttyping
All text in here should be verbatim colour
% This should not be a comment
&@@#^%&^#$

Nested typing should be displayed in verbatim colour
\starttyping
\stoptyping
should still be verbatim colour
% This should not be a comment
\stoptyping

normal


%% Tables
<beginfold id='1'>\starttabulate</beginfold id='1'>[|c|c|c|]
\FL
\NC header1 \NC header2 \NC header3 \NR
\ML
\NC value1 \NC value2 \NC value3 \NR
\NC value4 \NC value5 \NC value6 \NR
\BL
<endfold id='1'>\stoptabulate</endfold id='1'>

Commands for TABLE environment (<beginfold id='1'>\bTABLE</beginfold id='1'> and <endfold id='1'>\eTABLE</endfold id='1'>, <beginfold id='1'>\bTD</beginfold id='1'> and <endfold id='1'>\eTD</endfold id='1'>, etc.) should emulate start/stop blocks
<beginfold id='1'>\bTABLE</beginfold id='1'>[split=yes]
  <beginfold id='1'>\bTR</beginfold id='1'> <beginfold id='1'>\bTD</beginfold id='1'> value1 <endfold id='1'>\eTD</endfold id='1'> <beginfold id='1'>\bTD</beginfold id='1'> value2 <endfold id='1'>\eTD</endfold id='1'> <beginfold id='1'>\bTD</beginfold id='1'> value3 <endfold id='1'>\eTD</endfold id='1'> <endfold id='1'>\eTR</endfold id='1'>
  <beginfold id='1'>\bTR</beginfold id='1'> <beginfold id='1'>\bTD</beginfold id='1'> value4 <endfold id='1'>\eTD</endfold id='1'> <beginfold id='1'>\bTD</beginfold id='1'> value5 <endfold id='1'>\eTD</endfold id='1'> <beginfold id='1'>\bTD</beginfold id='1'> value6 <endfold id='1'>\eTD</endfold id='1'> <endfold id='1'>\eTR</endfold id='1'>
<endfold id='1'>\eTABLE</endfold id='1'>

<beginfold id='1'>\startxtable</beginfold id='1'>
  <beginfold id='1'>\startxrow</beginfold id='1'>
    <beginfold id='1'>\startxcell</beginfold id='1'> value1 <endfold id='1'>\stopxcell</endfold id='1'>
    <beginfold id='1'>\startxcell</beginfold id='1'> value2 <endfold id='1'>\stopxcell</endfold id='1'>
  <endfold id='1'>\stopxrow</endfold id='1'>
  <beginfold id='1'>\startxrow</beginfold id='1'>
    <beginfold id='1'>\startxcell</beginfold id='1'> value3 <endfold id='1'>\stopxcell</endfold id='1'>
    <beginfold id='1'>\startxcell</beginfold id='1'> value5 <endfold id='1'>\stopxcell</endfold id='1'>
  <endfold id='1'>\stopxrow</endfold id='1'>
<endfold id='1'>\stopxtable</endfold id='1'>
