Warning, /frameworks/syntax-highlighting/autotests/input/test.mkiv 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 \startsection
0012 Can be nested
0013 \startitemize
0014 \item normal
0015 \stopitemize
0016 normal
0017 \stopsection
0018 % \startblock \stopblock should be comments
0019 
0020 
0021 %% Commands
0022 \def{\startstuff}
0023 \startstuff should be normal command colour
0024 
0025 \setupindenting[yes, big]
0026 \section{normal}
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 \starttabulate[|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 \stoptabulate
0104 
0105 Commands for TABLE environment (\bTABLE and \eTABLE, \bTD and \eTD, etc.) should emulate start/stop blocks
0106 \bTABLE[split=yes]
0107   \bTR \bTD value1 \eTD \bTD value2 \eTD \bTD value3 \eTD \eTR
0108   \bTR \bTD value4 \eTD \bTD value5 \eTD \bTD value6 \eTD \eTR
0109 \eTABLE
0110 
0111 \startxtable
0112   \startxrow
0113     \startxcell value1 \stopxcell
0114     \startxcell value2 \stopxcell
0115   \stopxrow
0116   \startxrow
0117     \startxcell value3 \stopxcell
0118     \startxcell value5 \stopxcell
0119   \stopxrow
0120 \stopxtable