File: highlight.dox.fold

package info (click to toggle)
kf6-syntax-highlighting 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 47,568 kB
  • sloc: xml: 197,750; cpp: 12,850; python: 3,023; sh: 955; perl: 546; ruby: 488; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; erlang: 54; sql: 51; java: 47; objc: 37; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (232 lines) | stat: -rw-r--r-- 19,149 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
This is a pseudo doxygen file to test Kate's doxygen syntax highlighting.

Normal text, no HL.
===================
a multiline comment may begin with a <beginfold id='1'>/*!</beginfold id='1'> <endfold id='1'>*/</endfold id='1'>, too. That should work,
because it is the same "entrance rule".

popping tests:
<beginfold id='1'>/** </beginfold id='1'>multiline <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/*!</beginfold id='1'> multiline <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
//! singleline, where */ should be ignored! still doxygen HL mode
/// singleline, where */ should be ignored! still doxygen HL mode
///< singleline, where */ should be ignored! still doxygen HL mode
begin and end immediately:
/********/ actually no doxygen comment - used for "info boxes" :)
/**/ <-- it really works --- end of doxygen HL mode
<beginfold id='1'>/*!</beginfold id='1'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

<tag> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest of line is normal comment HL <endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest of line is normal comment HL
 * comment HL mode
 <endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

<tag> <word> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'>\file aword rest of line is normal comment HL <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file <endfold id='1'>*/</endfold id='1'>aword <-- pop! no doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file aword rest of line is normal comment HL
 * comment HL mode
 <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

<tag> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\brief A short description <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief <endfold id='1'>*/</endfold id='1'>A <-- pop! end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short description 
 * comment HL mode
 <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

<tag> <word> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\page aword rest of line is string <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page <endfold id='1'>*/</endfold id='1'>aword <-- pop! end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword rest of line is string 
 * comment HL mode
 <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

<tag> <word> <word> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is normal HL <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword <endfold id='1'>*/</endfold id='1'>aword <-- pop! end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image <endfold id='1'>*/</endfold id='1'>aword aword <-- pop! end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is normal HL
 * comment HL mode
 <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

Tests for HTML tags in doxygen HL mode:
=======================================
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='blubb'> <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='blubb'<endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='blubb<endfold id='1'>*/</endfold id='1'>'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='blub<endfold id='1'>*/</endfold id='1'>b'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='b<endfold id='1'>*/</endfold id='1'>lubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='<endfold id='1'>*/</endfold id='1'>blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href=<endfold id='1'>*/</endfold id='1'>'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href<endfold id='1'>*/</endfold id='1'>='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" hre<endfold id='1'>*/</endfold id='1'>f='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" <endfold id='1'>*/</endfold id='1'>href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb"> <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb"<endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb<endfold id='1'>*/</endfold id='1'>"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blub<endfold id='1'>*/</endfold id='1'>b"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="<endfold id='1'>*/</endfold id='1'>blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href=<endfold id='1'>*/</endfold id='1'>"blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href<endfold id='1'>*/</endfold id='1'>="blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a h<endfold id='1'>*/</endfold id='1'>ref="blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a <endfold id='1'>*/</endfold id='1'>href="blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a<endfold id='1'>*/</endfold id='1'> href="blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><<endfold id='1'>*/</endfold id='1'>a href="blubb"> end of doxygen HL mode

//! <a href="blubb" href='blubb'> */ stay in doygen HL mode
//! <a href="blubb" href='blubb'*/> stay in doygen HL mode
//! <a href="blubb" href='blubb*/'> stay in doygen HL mode
//! <a href="blubb" href='blu*/bb'> stay in doygen HL mode
//! <a href="blubb" href='*/blubb'> stay in doygen HL mode
//! <a href="blubb" href=*/'blubb'> stay in doygen HL mode
//! <a href="blubb"> */ stay in doygen HL mode
//! <a href="blubb"*/> stay in doygen HL mode
//! <a href="blubb*/"> stay in doygen HL mode
//! <a href="blub*/b"> stay in doygen HL mode
//! <a href="*/blubb"> stay in doygen HL mode
//! <a href=*/"blubb"> stay in doygen HL mode
//! <a href*/="blubb"> stay in doygen HL mode
//! <a h*/ref="blubb"> stay in doygen HL mode
//! <a */href="blubb"> stay in doygen HL mode
//! <a*/ href="blubb"> stay in doygen HL mode
//! <*/a href="blubb">  stay in doygen HL mode
//! <a href="blubb">  stay in doygen HL <mode
here should be normal HL mode (no doxygen!)

Tests for HTML tags in doxygen HL mode with tags:
=================================================
<tag> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href='blubb'> line is normal comment HL <endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href='blubb'<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href='blubb<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href='<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href=<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>"> of </a href=*/'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href=<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>"blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a h<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>ref="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest of line is normal comment HL
 * comment HL mode <html> text </html>
 <endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

<tag> <word> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'>\file awo<html_should_be_ignored_here>rd rest of line is normal comment HL <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file awo<html_should_be_ignored_here><endfold id='1'>*/</endfold id='1'>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file awo<html_should_be_i<endfold id='1'>*/</endfold id='1'>gnored_here>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file awo<<endfold id='1'>*/</endfold id='1'>html_should_be_ignored_here>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file a<endfold id='1'>*/</endfold id='1'>wo<html_should_be_ignored_here>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file aword rest of line is normal co<code>mment HL
 * comment HL mode
 <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

<tag> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href='blubb'> description <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href='blubb'<endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href='<endfold id='1'>*/</endfold id='1'>blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href=<endfold id='1'>*/</endfold id='1'>'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href<endfold id='1'>*/</endfold id='1'>='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a <endfold id='1'>*/</endfold id='1'>href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of <<endfold id='1'>*/</endfold id='1'>/a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"<endfold id='1'>*/</endfold id='1'>> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb<endfold id='1'>*/</endfold id='1'>"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="<endfold id='1'>*/</endfold id='1'>blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href=<endfold id='1'>*/</endfold id='1'>"blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href<endfold id='1'>*/</endfold id='1'>="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a h<endfold id='1'>*/</endfold id='1'>ref="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href='blubb'> description 
 * comment HL mode
 <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

<tag> <word> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href='blubb'> description <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href='blubb'<endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href='<endfold id='1'>*/</endfold id='1'>blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href=<endfold id='1'>*/</endfold id='1'>'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href<endfold id='1'>*/</endfold id='1'>='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a <endfold id='1'>*/</endfold id='1'>href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of <<endfold id='1'>*/</endfold id='1'>/a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"<endfold id='1'>*/</endfold id='1'>> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb<endfold id='1'>*/</endfold id='1'>"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="<endfold id='1'>*/</endfold id='1'>blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href=<endfold id='1'>*/</endfold id='1'>"blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href<endfold id='1'>*/</endfold id='1'>="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a h<endfold id='1'>*/</endfold id='1'>ref="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <<endfold id='1'>*/</endfold id='1'>a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A shor<endfold id='1'>*/</endfold id='1'>t <a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page awor<endfold id='1'>*/</endfold id='1'>d A short <a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page <endfold id='1'>*/</endfold id='1'>aword A short <a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href='blubb'> description 
 * comment HL mode
 <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode

<tag> <word> <word> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is normal HL <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aword<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aw<endfold id='1'>*/</endfold id='1'>ord end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword <endfold id='1'>*/</endfold id='1'>aword end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image awo<endfold id='1'>*/</endfold id='1'>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image <endfold id='1'>*/</endfold id='1'>aword end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\ima<endfold id='1'>*/</endfold id='1'>ge end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is normal HL
 * comment HL mode
 <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
 
Some further tests for singlelinecomments (* / should not pop!)
===============================================================
/// a singlelinecommment blubb blubb  */. stay in doxygen HL mode
/// <beginfold id='2'>\code</beginfold id='2'> a singlelinecommment blubb b*/lubb. stay in doxygen HL mode
<endfold id='2'></endfold id='2'>end of doxygen HL mode
/// \endcode
/// <beginfold id='2'>\code</beginfold id='2'>*/ a singlelinecommment blubb blubb. stay in doxygen HL mode
<endfold id='2'></endfold id='2'>end of doxygen HL mode
/// <beginfold id='2'>\code</beginfold id='2'> a multilinecommment blubb blubb
/// blubb blubb
/// <endfold id='2'>\endcode</endfold id='2'>
/// \brief a descriptive text (string) stay in doxygen HL mode
/// \brief a descriptive text (string)*/ description should go on here
/// \brief a descriptive text */(string) description should go on here
/// \brief */a descriptive text (string) description should go on here
/// \ref aword a descriptive text (string) */ description should go on here
/// \ref aword a descriptive text (str*/ing) description should go on here
/// \ref aword a des*/criptive text (string) description should go on here
/// \ref aword*/ a descriptive text (string) description should go on here
/// \ref aw*/ord a descriptive text (string) description should go on here
/// \ref */aword a descriptive text (string) description should go on here

HTML comment tests:
===================
//! \ref word de<!--*/ -->scriptive text (string)
normal HL mode.
//! \ref w descriptive text (string)
<beginfold id='1'>/** </beginfold id='1'>\ref word de<!--<endfold id='1'>*/</endfold id='1'> -->scriptive text (string)
normal HL mode.
<beginfold id='1'>/** </beginfold id='1'>\ref w <!--
 * HTML comments
 * -->
 * normal doxygen HL mode.
 <endfold id='1'>*/</endfold id='1'>


And final tests for a word: a single char:
===========================================
<tag> <word> <rest of line as string>
//! \ref word descriptive text (string)
//! \ref w descriptive text (string)

<tag> <word> <word> <rest is normal HL>
//! \image word1 word2 b descriptive text (string)
//! \image a word b descriptive text (string)

<tag> <rest of line is string>
//! \brief A b c d e description should go on here

<tag> <word> <rest of line is normal doxygen HL mode>
//! \file word rest of line is normal comment HL
//! \file a word rest of line is normal comment HL

no doxygen HL mode here.
== END OF TESTFILE ==