Warning, /frameworks/syntax-highlighting/autotests/folding/test.mkiv.fold is written in an unsupported language. File is not indexed.

0001 % ConTeXt test file for Kate's syntax highlighting and code folding
0002 
0003 
0004 %% Comments
0005 %   This is a comment
0006 \%  Not a comment
0007 \\% This is a comment
0008 
0009 
0010 %% Start/stop blocks
0011 <beginfold id='1'>\startsection</beginfold id='1'>
0012 Can be nested
0013 <beginfold id='1'>\startitemize</beginfold id='1'>
0014 \item normal
0015 <endfold id='1'>\stopitemize</endfold id='1'>
0016 normal
0017 <endfold id='1'>\stopsection</endfold id='1'>
0018 % \startblock \stopblock should be comments
0019 
0020 
0021 %% Commands
0022 \def<beginfold id='1'>{</beginfold id='1'><beginfold id='1'>\startstuff</beginfold id='1'><endfold id='1'>}</endfold id='1'>
0023 <beginfold id='1'>\startstuff</beginfold id='1'> should be normal command colour
0024 
0025 \setupindenting[yes, big]
0026 \section<beginfold id='1'>{</beginfold id='1'>normal<endfold id='1'>}</endfold id='1'>
0027 
0028 
0029 %% Inline math
0030 $equations are green, \commands somewhat darker
0031 it can also run over multiple lines
0032 % Comment
0033 $
0034 normal
0035 \mathematics{equations are green, \commands somewhat darker
0036 it can also run over multiple lines
0037 \mathematics{nested math should be green} this should still be green
0038 % Comment
0039 }
0040 normal
0041 \math{equations are green, \commands somewhat darker
0042 it can also run over multiple lines
0043 \math{nested math should be green} this should still be green
0044 % Comment
0045 }
0046 normal
0047 \m{equations are green, \commands somewhat darker
0048 it can also run over multiple lines
0049 \m{nested math should be green} this should still be green
0050 % Comment
0051 }
0052 normal
0053 \mathematics the first character should be green {}
0054 \math        the first character should be green {}
0055 \m           the first character should be green {}
0056 normal
0057 % $should$ \mathematics{still} \math{be} \m{commented}
0058 
0059 
0060 %% Display math
0061 $$
0062 equations are green, \commands somewhat darker
0063 it can also run over multiple lines
0064 % Comment
0065 $$
0066 normal
0067 \startformula
0068 equations are green, \commands somewhat darker
0069 it can also run over multiple lines
0070 % Comment
0071 
0072 Nested formulae should not work
0073 The following should be red:
0074 \startformula
0075 Should still be math colour
0076 \stopformula
0077 normal
0078 
0079 %% Verbatim
0080 \starttyping
0081 All text in here should be verbatim colour
0082 % This should not be a comment
0083 &@@#^%&^#$
0084 
0085 Nested typing should be displayed in verbatim colour
0086 \starttyping
0087 \stoptyping
0088 should still be verbatim colour
0089 % This should not be a comment
0090 \stoptyping
0091 
0092 normal
0093 
0094 
0095 %% Tables
0096 <beginfold id='1'>\starttabulate</beginfold id='1'>[|c|c|c|]
0097 \FL
0098 \NC header1 \NC header2 \NC header3 \NR
0099 \ML
0100 \NC value1 \NC value2 \NC value3 \NR
0101 \NC value4 \NC value5 \NC value6 \NR
0102 \BL
0103 <endfold id='1'>\stoptabulate</endfold id='1'>
0104 
0105 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
0106 <beginfold id='1'>\bTABLE</beginfold id='1'>[split=yes]
0107   <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'>
0108   <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'>
0109 <endfold id='1'>\eTABLE</endfold id='1'>
0110 
0111 <beginfold id='1'>\startxtable</beginfold id='1'>
0112   <beginfold id='1'>\startxrow</beginfold id='1'>
0113     <beginfold id='1'>\startxcell</beginfold id='1'> value1 <endfold id='1'>\stopxcell</endfold id='1'>
0114     <beginfold id='1'>\startxcell</beginfold id='1'> value2 <endfold id='1'>\stopxcell</endfold id='1'>
0115   <endfold id='1'>\stopxrow</endfold id='1'>
0116   <beginfold id='1'>\startxrow</beginfold id='1'>
0117     <beginfold id='1'>\startxcell</beginfold id='1'> value3 <endfold id='1'>\stopxcell</endfold id='1'>
0118     <beginfold id='1'>\startxcell</beginfold id='1'> value5 <endfold id='1'>\stopxcell</endfold id='1'>
0119   <endfold id='1'>\stopxrow</endfold id='1'>
0120 <endfold id='1'>\stopxtable</endfold id='1'>