<Comment>% ConTeXt test file for Kate's syntax highlighting and code folding</Comment><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>%% Comments</Comment><br/>
<Comment>%   This is a comment</Comment><br/>
<Macro>\%</Macro><Normal Text>  Not a comment</Normal Text><br/>
<Macro>\\</Macro><Comment>% This is a comment</Comment><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>%% Start/stop blocks</Comment><br/>
<Block>\startsection</Block><br/>
<Normal Text>Can be nested</Normal Text><br/>
<Block>\startitemize</Block><br/>
<Macro>\item</Macro><Normal Text> normal</Normal Text><br/>
<Block>\stopitemize</Block><br/>
<Normal Text>normal</Normal Text><br/>
<Block>\stopsection</Block><br/>
<Comment>% \startblock \stopblock should be comments</Comment><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>%% Commands</Comment><br/>
<Macro>\def</Macro><Brace>{</Brace><Block>\startstuff</Block><Brace>}</Brace><br/>
<Block>\startstuff</Block><Normal Text> should be normal command colour</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Macro>\setupindenting</Macro><Normal Text>[yes, big]</Normal Text><br/>
<Section>\section</Section><Brace>{</Brace><Normal Text>normal</Normal Text><Brace>}</Brace><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>%% Inline math</Comment><br/>
<Block>$</Block><Math>equations are green, </Math><Macro>\commands</Macro><Math> somewhat darker</Math><br/>
<Normal Text>it can also run over multiple lines</Normal Text><br/>
<Comment>% Comment</Comment><br/>
<Block>$</Block><br/>
<Normal Text>normal</Normal Text><br/>
<Block>\mathematics</Block><Brace>{</Brace><Math>equations are green, </Math><Macro>\commands</Macro><Math> somewhat darker</Math><br/>
<Math>it can also run over multiple lines</Math><br/>
<Macro>\mathematics</Macro><Brace>{</Brace><Math>nested math should be green</Math><Brace>}</Brace><Math> this should still be green</Math><br/>
<Comment>% Comment</Comment><br/>
<Brace>}</Brace><br/>
<Normal Text>normal</Normal Text><br/>
<Block>\math</Block><Brace>{</Brace><Math>equations are green, </Math><Macro>\commands</Macro><Math> somewhat darker</Math><br/>
<Math>it can also run over multiple lines</Math><br/>
<Macro>\math</Macro><Brace>{</Brace><Math>nested math should be green</Math><Brace>}</Brace><Math> this should still be green</Math><br/>
<Comment>% Comment</Comment><br/>
<Brace>}</Brace><br/>
<Normal Text>normal</Normal Text><br/>
<Block>\m</Block><Brace>{</Brace><Math>equations are green, </Math><Macro>\commands</Macro><Math> somewhat darker</Math><br/>
<Math>it can also run over multiple lines</Math><br/>
<Macro>\m</Macro><Brace>{</Brace><Math>nested math should be green</Math><Brace>}</Brace><Math> this should still be green</Math><br/>
<Comment>% Comment</Comment><br/>
<Brace>}</Brace><br/>
<Normal Text>normal</Normal Text><br/>
<Block>\mathematics</Block><Math> the first character should be green </Math><Brace>{}</Brace><br/>
<Block>\math</Block><Math>        the first character should be green </Math><Brace>{}</Brace><br/>
<Block>\m</Block><Math>           the first character should be green </Math><Brace>{}</Brace><br/>
<Normal Text>normal</Normal Text><br/>
<Comment>% $should$ \mathematics{still} \math{be} \m{commented}</Comment><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>%% Display math</Comment><br/>
<Block>$$</Block><br/>
<Math>equations are green, </Math><Macro>\commands</Macro><Math> somewhat darker</Math><br/>
<Math>it can also run over multiple lines</Math><br/>
<Comment>% Comment</Comment><br/>
<Block>$$</Block><br/>
<Normal Text>normal</Normal Text><br/>
<Block>\startformula</Block><br/>
<Math>equations are green, </Math><Macro>\commands</Macro><Math> somewhat darker</Math><br/>
<Math>it can also run over multiple lines</Math><br/>
<Comment>% Comment</Comment><br/>
<Math></Math><br/>
<Math>Nested formulae should not work</Math><br/>
<Math>The following should be red:</Math><br/>
<Error>\startformula</Error><br/>
<Math>Should still be math colour</Math><br/>
<Block>\stopformula</Block><br/>
<Normal Text>normal</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>%% Verbatim</Comment><br/>
<Block>\starttyping</Block><br/>
<Verbatim>All text in here should be verbatim colour</Verbatim><br/>
<Verbatim>% This should not be a comment</Verbatim><br/>
<Verbatim>&@@#^%&^#$</Verbatim><br/>
<Verbatim></Verbatim><br/>
<Verbatim>Nested typing should be displayed in verbatim colour</Verbatim><br/>
<Block>\starttyping</Block><br/>
<Block>\stoptyping</Block><br/>
<Verbatim>should still be verbatim colour</Verbatim><br/>
<Verbatim>% This should not be a comment</Verbatim><br/>
<Block>\stoptyping</Block><br/>
<Normal Text></Normal Text><br/>
<Normal Text>normal</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>%% Tables</Comment><br/>
<Block>\starttabulate</Block><Normal Text>[|c|c|c|]</Normal Text><br/>
<Macro>\FL</Macro><br/>
<Macro>\NC</Macro><Normal Text> header1 </Normal Text><Macro>\NC</Macro><Normal Text> header2 </Normal Text><Macro>\NC</Macro><Normal Text> header3 </Normal Text><Macro>\NR</Macro><br/>
<Macro>\ML</Macro><br/>
<Macro>\NC</Macro><Normal Text> value1 </Normal Text><Macro>\NC</Macro><Normal Text> value2 </Normal Text><Macro>\NC</Macro><Normal Text> value3 </Normal Text><Macro>\NR</Macro><br/>
<Macro>\NC</Macro><Normal Text> value4 </Normal Text><Macro>\NC</Macro><Normal Text> value5 </Normal Text><Macro>\NC</Macro><Normal Text> value6 </Normal Text><Macro>\NR</Macro><br/>
<Macro>\BL</Macro><br/>
<Block>\stoptabulate</Block><br/>
<Normal Text></Normal Text><br/>
<Normal Text>Commands for TABLE environment (</Normal Text><Block>\bTABLE</Block><Normal Text> and </Normal Text><Block>\eTABLE</Block><Normal Text>, </Normal Text><Block>\bTD</Block><Normal Text> and </Normal Text><Block>\eTD</Block><Normal Text>, etc.) should emulate start/stop blocks</Normal Text><br/>
<Block>\bTABLE</Block><Normal Text>[split=yes]</Normal Text><br/>
<Normal Text>  </Normal Text><Block>\bTR</Block><Normal Text> </Normal Text><Block>\bTD</Block><Normal Text> value1 </Normal Text><Block>\eTD</Block><Normal Text> </Normal Text><Block>\bTD</Block><Normal Text> value2 </Normal Text><Block>\eTD</Block><Normal Text> </Normal Text><Block>\bTD</Block><Normal Text> value3 </Normal Text><Block>\eTD</Block><Normal Text> </Normal Text><Block>\eTR</Block><br/>
<Normal Text>  </Normal Text><Block>\bTR</Block><Normal Text> </Normal Text><Block>\bTD</Block><Normal Text> value4 </Normal Text><Block>\eTD</Block><Normal Text> </Normal Text><Block>\bTD</Block><Normal Text> value5 </Normal Text><Block>\eTD</Block><Normal Text> </Normal Text><Block>\bTD</Block><Normal Text> value6 </Normal Text><Block>\eTD</Block><Normal Text> </Normal Text><Block>\eTR</Block><br/>
<Block>\eTABLE</Block><br/>
<Normal Text></Normal Text><br/>
<Block>\startxtable</Block><br/>
<Normal Text>  </Normal Text><Block>\startxrow</Block><br/>
<Normal Text>    </Normal Text><Block>\startxcell</Block><Normal Text> value1 </Normal Text><Block>\stopxcell</Block><br/>
<Normal Text>    </Normal Text><Block>\startxcell</Block><Normal Text> value2 </Normal Text><Block>\stopxcell</Block><br/>
<Normal Text>  </Normal Text><Block>\stopxrow</Block><br/>
<Normal Text>  </Normal Text><Block>\startxrow</Block><br/>
<Normal Text>    </Normal Text><Block>\startxcell</Block><Normal Text> value3 </Normal Text><Block>\stopxcell</Block><br/>
<Normal Text>    </Normal Text><Block>\startxcell</Block><Normal Text> value5 </Normal Text><Block>\stopxcell</Block><br/>
<Normal Text>  </Normal Text><Block>\stopxrow</Block><br/>
<Block>\stopxtable</Block><br/>
