1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxStyledTextCtrl
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
9 IMPORTANT: This file is generated by src/stc/gen_iface.py from
10 src/stc/stc.interface.h.in. Do not edit the file in
11 interface/wx/stc or your changes will be lost.
17 #define wxSTC_INVALID_POSITION -1
19 /// Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages
20 /// as many EM_ messages can be used although that use is deprecated.
21 #define wxSTC_START 2000
22 #define wxSTC_OPTIONAL_START 3000
23 #define wxSTC_LEXER_START 4000
24 #define wxSTC_WS_INVISIBLE 0
25 #define wxSTC_WS_VISIBLEALWAYS 1
26 #define wxSTC_WS_VISIBLEAFTERINDENT 2
27 #define wxSTC_EOL_CRLF 0
28 #define wxSTC_EOL_CR 1
29 #define wxSTC_EOL_LF 2
31 /// The SC_CP_UTF8 value can be used to enter Unicode mode.
32 /// This is the same value as CP_UTF8 in Windows
33 #define wxSTC_CP_UTF8 65001
34 #define wxSTC_MARKER_MAX 31
35 #define wxSTC_MARK_CIRCLE 0
36 #define wxSTC_MARK_ROUNDRECT 1
37 #define wxSTC_MARK_ARROW 2
38 #define wxSTC_MARK_SMALLRECT 3
39 #define wxSTC_MARK_SHORTARROW 4
40 #define wxSTC_MARK_EMPTY 5
41 #define wxSTC_MARK_ARROWDOWN 6
42 #define wxSTC_MARK_MINUS 7
43 #define wxSTC_MARK_PLUS 8
45 /// Shapes used for outlining column.
46 #define wxSTC_MARK_VLINE 9
47 #define wxSTC_MARK_LCORNER 10
48 #define wxSTC_MARK_TCORNER 11
49 #define wxSTC_MARK_BOXPLUS 12
50 #define wxSTC_MARK_BOXPLUSCONNECTED 13
51 #define wxSTC_MARK_BOXMINUS 14
52 #define wxSTC_MARK_BOXMINUSCONNECTED 15
53 #define wxSTC_MARK_LCORNERCURVE 16
54 #define wxSTC_MARK_TCORNERCURVE 17
55 #define wxSTC_MARK_CIRCLEPLUS 18
56 #define wxSTC_MARK_CIRCLEPLUSCONNECTED 19
57 #define wxSTC_MARK_CIRCLEMINUS 20
58 #define wxSTC_MARK_CIRCLEMINUSCONNECTED 21
60 /// Invisible mark that only sets the line background colour.
61 #define wxSTC_MARK_BACKGROUND 22
62 #define wxSTC_MARK_DOTDOTDOT 23
63 #define wxSTC_MARK_ARROWS 24
64 #define wxSTC_MARK_PIXMAP 25
65 #define wxSTC_MARK_FULLRECT 26
66 #define wxSTC_MARK_LEFTRECT 27
67 #define wxSTC_MARK_AVAILABLE 28
68 #define wxSTC_MARK_UNDERLINE 29
69 #define wxSTC_MARK_RGBAIMAGE 30
70 #define wxSTC_MARK_CHARACTER 10000
72 /// Markers used for outlining column.
73 #define wxSTC_MARKNUM_FOLDEREND 25
74 #define wxSTC_MARKNUM_FOLDEROPENMID 26
75 #define wxSTC_MARKNUM_FOLDERMIDTAIL 27
76 #define wxSTC_MARKNUM_FOLDERTAIL 28
77 #define wxSTC_MARKNUM_FOLDERSUB 29
78 #define wxSTC_MARKNUM_FOLDER 30
79 #define wxSTC_MARKNUM_FOLDEROPEN 31
80 #define wxSTC_MASK_FOLDERS 0xFE000000
81 #define wxSTC_MARGIN_SYMBOL 0
82 #define wxSTC_MARGIN_NUMBER 1
83 #define wxSTC_MARGIN_BACK 2
84 #define wxSTC_MARGIN_FORE 3
85 #define wxSTC_MARGIN_TEXT 4
86 #define wxSTC_MARGIN_RTEXT 5
88 /// Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles.
89 /// Style 39 is for future use.
90 #define wxSTC_STYLE_DEFAULT 32
91 #define wxSTC_STYLE_LINENUMBER 33
92 #define wxSTC_STYLE_BRACELIGHT 34
93 #define wxSTC_STYLE_BRACEBAD 35
94 #define wxSTC_STYLE_CONTROLCHAR 36
95 #define wxSTC_STYLE_INDENTGUIDE 37
96 #define wxSTC_STYLE_CALLTIP 38
97 #define wxSTC_STYLE_LASTPREDEFINED 39
98 #define wxSTC_STYLE_MAX 255
100 /// Character set identifiers are used in StyleSetCharacterSet.
101 /// The values are the same as the Windows *_CHARSET values.
102 #define wxSTC_CHARSET_ANSI 0
103 #define wxSTC_CHARSET_DEFAULT 1
104 #define wxSTC_CHARSET_BALTIC 186
105 #define wxSTC_CHARSET_CHINESEBIG5 136
106 #define wxSTC_CHARSET_EASTEUROPE 238
107 #define wxSTC_CHARSET_GB2312 134
108 #define wxSTC_CHARSET_GREEK 161
109 #define wxSTC_CHARSET_HANGUL 129
110 #define wxSTC_CHARSET_MAC 77
111 #define wxSTC_CHARSET_OEM 255
112 #define wxSTC_CHARSET_RUSSIAN 204
113 #define wxSTC_CHARSET_CYRILLIC 1251
114 #define wxSTC_CHARSET_SHIFTJIS 128
115 #define wxSTC_CHARSET_SYMBOL 2
116 #define wxSTC_CHARSET_TURKISH 162
117 #define wxSTC_CHARSET_JOHAB 130
118 #define wxSTC_CHARSET_HEBREW 177
119 #define wxSTC_CHARSET_ARABIC 178
120 #define wxSTC_CHARSET_VIETNAMESE 163
121 #define wxSTC_CHARSET_THAI 222
122 #define wxSTC_CHARSET_8859_15 1000
123 #define wxSTC_CASE_MIXED 0
124 #define wxSTC_CASE_UPPER 1
125 #define wxSTC_CASE_LOWER 2
126 #define wxSTC_FONT_SIZE_MULTIPLIER 100
127 #define wxSTC_WEIGHT_NORMAL 400
128 #define wxSTC_WEIGHT_SEMIBOLD 600
129 #define wxSTC_WEIGHT_BOLD 700
131 /// Indicator style enumeration and some constants
132 #define wxSTC_INDIC_PLAIN 0
133 #define wxSTC_INDIC_SQUIGGLE 1
134 #define wxSTC_INDIC_TT 2
135 #define wxSTC_INDIC_DIAGONAL 3
136 #define wxSTC_INDIC_STRIKE 4
137 #define wxSTC_INDIC_HIDDEN 5
138 #define wxSTC_INDIC_BOX 6
139 #define wxSTC_INDIC_ROUNDBOX 7
140 #define wxSTC_INDIC_STRAIGHTBOX 8
141 #define wxSTC_INDIC_DASH 9
142 #define wxSTC_INDIC_DOTS 10
143 #define wxSTC_INDIC_SQUIGGLELOW 11
144 #define wxSTC_INDIC_DOTBOX 12
145 #define wxSTC_INDIC_MAX 31
146 #define wxSTC_INDIC_CONTAINER 8
147 #define wxSTC_INDIC0_MASK 0x20
148 #define wxSTC_INDIC1_MASK 0x40
149 #define wxSTC_INDIC2_MASK 0x80
150 #define wxSTC_INDICS_MASK 0xE0
151 #define wxSTC_IV_NONE 0
152 #define wxSTC_IV_REAL 1
153 #define wxSTC_IV_LOOKFORWARD 2
154 #define wxSTC_IV_LOOKBOTH 3
156 /// PrintColourMode - use same colours as screen.
157 #define wxSTC_PRINT_NORMAL 0
159 /// PrintColourMode - invert the light value of each style for printing.
160 #define wxSTC_PRINT_INVERTLIGHT 1
162 /// PrintColourMode - force black text on white background for printing.
163 #define wxSTC_PRINT_BLACKONWHITE 2
165 /// PrintColourMode - text stays coloured, but all background is forced to be white for printing.
166 #define wxSTC_PRINT_COLOURONWHITE 3
168 /// PrintColourMode - only the default-background is forced to be white for printing.
169 #define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4
170 #define wxSTC_FIND_WHOLEWORD 2
171 #define wxSTC_FIND_MATCHCASE 4
172 #define wxSTC_FIND_WORDSTART 0x00100000
173 #define wxSTC_FIND_REGEXP 0x00200000
174 #define wxSTC_FIND_POSIX 0x00400000
175 #define wxSTC_FOLDLEVELBASE 0x400
176 #define wxSTC_FOLDLEVELWHITEFLAG 0x1000
177 #define wxSTC_FOLDLEVELHEADERFLAG 0x2000
178 #define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
179 #define wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
180 #define wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
181 #define wxSTC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
182 #define wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010
183 #define wxSTC_FOLDFLAG_LEVELNUMBERS 0x0040
184 #define wxSTC_TIME_FOREVER 10000000
185 #define wxSTC_WRAP_NONE 0
186 #define wxSTC_WRAP_WORD 1
187 #define wxSTC_WRAP_CHAR 2
188 #define wxSTC_WRAPVISUALFLAG_NONE 0x0000
189 #define wxSTC_WRAPVISUALFLAG_END 0x0001
190 #define wxSTC_WRAPVISUALFLAG_START 0x0002
191 #define wxSTC_WRAPVISUALFLAG_MARGIN 0x0004
192 #define wxSTC_WRAPVISUALFLAGLOC_DEFAULT 0x0000
193 #define wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001
194 #define wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002
195 #define wxSTC_WRAPINDENT_FIXED 0
196 #define wxSTC_WRAPINDENT_SAME 1
197 #define wxSTC_WRAPINDENT_INDENT 2
198 #define wxSTC_CACHE_NONE 0
199 #define wxSTC_CACHE_CARET 1
200 #define wxSTC_CACHE_PAGE 2
201 #define wxSTC_CACHE_DOCUMENT 3
203 /// Control font anti-aliasing.
204 #define wxSTC_EFF_QUALITY_MASK 0xF
205 #define wxSTC_EFF_QUALITY_DEFAULT 0
206 #define wxSTC_EFF_QUALITY_NON_ANTIALIASED 1
207 #define wxSTC_EFF_QUALITY_ANTIALIASED 2
208 #define wxSTC_EFF_QUALITY_LCD_OPTIMIZED 3
209 #define wxSTC_MULTIPASTE_ONCE 0
210 #define wxSTC_MULTIPASTE_EACH 1
211 #define wxSTC_EDGE_NONE 0
212 #define wxSTC_EDGE_LINE 1
213 #define wxSTC_EDGE_BACKGROUND 2
214 #define wxSTC_STATUS_OK 0
215 #define wxSTC_STATUS_FAILURE 1
216 #define wxSTC_STATUS_BADALLOC 2
217 #define wxSTC_CURSORNORMAL -1
218 #define wxSTC_CURSORARROW 2
219 #define wxSTC_CURSORWAIT 4
220 #define wxSTC_CURSORREVERSEARROW 7
222 /// Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
223 #define wxSTC_VISIBLE_SLOP 0x01
224 #define wxSTC_VISIBLE_STRICT 0x04
226 /// Caret policy, used by SetXCaretPolicy and SetYCaretPolicy.
227 /// If CARET_SLOP is set, we can define a slop value: caretSlop.
228 /// This value defines an unwanted zone (UZ) where the caret is... unwanted.
229 /// This zone is defined as a number of pixels near the vertical margins,
230 /// and as a number of lines near the horizontal margins.
231 /// By keeping the caret away from the edges, it is seen within its context,
232 /// so it is likely that the identifier that the caret is on can be completely seen,
233 /// and that the current line is seen with some of the lines following it which are
234 /// often dependent on that line.
235 #define wxSTC_CARET_SLOP 0x01
237 /// If CARET_STRICT is set, the policy is enforced... strictly.
238 /// The caret is centred on the display if slop is not set,
239 /// and cannot go in the UZ if slop is set.
240 #define wxSTC_CARET_STRICT 0x04
242 /// If CARET_JUMPS is set, the display is moved more energetically
243 /// so the caret can move in the same direction longer before the policy is applied again.
244 #define wxSTC_CARET_JUMPS 0x10
246 /// If CARET_EVEN is not set, instead of having symmetrical UZs,
247 /// the left and bottom UZs are extended up to right and top UZs respectively.
248 /// This way, we favour the displaying of useful information: the begining of lines,
249 /// where most code reside, and the lines after the caret, eg. the body of a function.
250 #define wxSTC_CARET_EVEN 0x08
251 #define wxSTC_SEL_STREAM 0
252 #define wxSTC_SEL_RECTANGLE 1
253 #define wxSTC_SEL_LINES 2
254 #define wxSTC_SEL_THIN 3
255 #define wxSTC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE 0
256 #define wxSTC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1
257 #define wxSTC_CARETSTICKY_OFF 0
258 #define wxSTC_CARETSTICKY_ON 1
259 #define wxSTC_CARETSTICKY_WHITESPACE 2
260 #define wxSTC_ALPHA_TRANSPARENT 0
261 #define wxSTC_ALPHA_OPAQUE 255
262 #define wxSTC_ALPHA_NOALPHA 256
263 #define wxSTC_CARETSTYLE_INVISIBLE 0
264 #define wxSTC_CARETSTYLE_LINE 1
265 #define wxSTC_CARETSTYLE_BLOCK 2
266 #define wxSTC_MARGINOPTION_NONE 0
267 #define wxSTC_MARGINOPTION_SUBLINESELECT 1
268 #define wxSTC_ANNOTATION_HIDDEN 0
269 #define wxSTC_ANNOTATION_STANDARD 1
270 #define wxSTC_ANNOTATION_BOXED 2
271 #define wxSTC_UNDO_MAY_COALESCE 1
272 #define wxSTC_SCVS_NONE 0
273 #define wxSTC_SCVS_RECTANGULARSELECTION 1
274 #define wxSTC_SCVS_USERACCESSIBLE 2
275 #define wxSTC_TECHNOLOGY_DEFAULT 0
276 #define wxSTC_TECHNOLOGY_DIRECTWRITE 1
278 /// Maximum value of keywordSet parameter of SetKeyWords.
279 #define wxSTC_KEYWORDSET_MAX 8
280 #define wxSTC_TYPE_BOOLEAN 0
281 #define wxSTC_TYPE_INTEGER 1
282 #define wxSTC_TYPE_STRING 2
285 /// Type of modification and the action which caused the modification.
286 /// These are defined as a bit mask to make it easy to specify which notifications are wanted.
287 /// One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
288 #define wxSTC_MOD_INSERTTEXT 0x1
289 #define wxSTC_MOD_DELETETEXT 0x2
290 #define wxSTC_MOD_CHANGESTYLE 0x4
291 #define wxSTC_MOD_CHANGEFOLD 0x8
292 #define wxSTC_PERFORMED_USER 0x10
293 #define wxSTC_PERFORMED_UNDO 0x20
294 #define wxSTC_PERFORMED_REDO 0x40
295 #define wxSTC_MULTISTEPUNDOREDO 0x80
296 #define wxSTC_LASTSTEPINUNDOREDO 0x100
297 #define wxSTC_MOD_CHANGEMARKER 0x200
298 #define wxSTC_MOD_BEFOREINSERT 0x400
299 #define wxSTC_MOD_BEFOREDELETE 0x800
300 #define wxSTC_MULTILINEUNDOREDO 0x1000
301 #define wxSTC_STARTACTION 0x2000
302 #define wxSTC_MOD_CHANGEINDICATOR 0x4000
303 #define wxSTC_MOD_CHANGELINESTATE 0x8000
304 #define wxSTC_MOD_CHANGEMARGIN 0x10000
305 #define wxSTC_MOD_CHANGEANNOTATION 0x20000
306 #define wxSTC_MOD_CONTAINER 0x40000
307 #define wxSTC_MOD_LEXERSTATE 0x80000
308 #define wxSTC_MODEVENTMASKALL 0xFFFFF
309 #define wxSTC_UPDATE_CONTENT 0x1
310 #define wxSTC_UPDATE_SELECTION 0x2
311 #define wxSTC_UPDATE_V_SCROLL 0x4
312 #define wxSTC_UPDATE_H_SCROLL 0x8
314 /// Symbolic key codes and modifier flags.
315 /// ASCII and other printable characters below 256.
316 /// Extended keys above 300.
317 #define wxSTC_KEY_DOWN 300
318 #define wxSTC_KEY_UP 301
319 #define wxSTC_KEY_LEFT 302
320 #define wxSTC_KEY_RIGHT 303
321 #define wxSTC_KEY_HOME 304
322 #define wxSTC_KEY_END 305
323 #define wxSTC_KEY_PRIOR 306
324 #define wxSTC_KEY_NEXT 307
325 #define wxSTC_KEY_DELETE 308
326 #define wxSTC_KEY_INSERT 309
327 #define wxSTC_KEY_ESCAPE 7
328 #define wxSTC_KEY_BACK 8
329 #define wxSTC_KEY_TAB 9
330 #define wxSTC_KEY_RETURN 13
331 #define wxSTC_KEY_ADD 310
332 #define wxSTC_KEY_SUBTRACT 311
333 #define wxSTC_KEY_DIVIDE 312
334 #define wxSTC_KEY_WIN 313
335 #define wxSTC_KEY_RWIN 314
336 #define wxSTC_KEY_MENU 315
337 #define wxSTC_SCMOD_NORM 0
338 #define wxSTC_SCMOD_SHIFT 1
339 #define wxSTC_SCMOD_CTRL 2
340 #define wxSTC_SCMOD_ALT 4
341 #define wxSTC_SCMOD_SUPER 8
342 #define wxSTC_SCMOD_META 16
345 #define wxSTC_LEX_CONTAINER 0
346 #define wxSTC_LEX_NULL 1
347 #define wxSTC_LEX_PYTHON 2
348 #define wxSTC_LEX_CPP 3
349 #define wxSTC_LEX_HTML 4
350 #define wxSTC_LEX_XML 5
351 #define wxSTC_LEX_PERL 6
352 #define wxSTC_LEX_SQL 7
353 #define wxSTC_LEX_VB 8
354 #define wxSTC_LEX_PROPERTIES 9
355 #define wxSTC_LEX_ERRORLIST 10
356 #define wxSTC_LEX_MAKEFILE 11
357 #define wxSTC_LEX_BATCH 12
358 #define wxSTC_LEX_XCODE 13
359 #define wxSTC_LEX_LATEX 14
360 #define wxSTC_LEX_LUA 15
361 #define wxSTC_LEX_DIFF 16
362 #define wxSTC_LEX_CONF 17
363 #define wxSTC_LEX_PASCAL 18
364 #define wxSTC_LEX_AVE 19
365 #define wxSTC_LEX_ADA 20
366 #define wxSTC_LEX_LISP 21
367 #define wxSTC_LEX_RUBY 22
368 #define wxSTC_LEX_EIFFEL 23
369 #define wxSTC_LEX_EIFFELKW 24
370 #define wxSTC_LEX_TCL 25
371 #define wxSTC_LEX_NNCRONTAB 26
372 #define wxSTC_LEX_BULLANT 27
373 #define wxSTC_LEX_VBSCRIPT 28
374 #define wxSTC_LEX_BAAN 31
375 #define wxSTC_LEX_MATLAB 32
376 #define wxSTC_LEX_SCRIPTOL 33
377 #define wxSTC_LEX_ASM 34
378 #define wxSTC_LEX_CPPNOCASE 35
379 #define wxSTC_LEX_FORTRAN 36
380 #define wxSTC_LEX_F77 37
381 #define wxSTC_LEX_CSS 38
382 #define wxSTC_LEX_POV 39
383 #define wxSTC_LEX_LOUT 40
384 #define wxSTC_LEX_ESCRIPT 41
385 #define wxSTC_LEX_PS 42
386 #define wxSTC_LEX_NSIS 43
387 #define wxSTC_LEX_MMIXAL 44
388 #define wxSTC_LEX_CLW 45
389 #define wxSTC_LEX_CLWNOCASE 46
390 #define wxSTC_LEX_LOT 47
391 #define wxSTC_LEX_YAML 48
392 #define wxSTC_LEX_TEX 49
393 #define wxSTC_LEX_METAPOST 50
394 #define wxSTC_LEX_POWERBASIC 51
395 #define wxSTC_LEX_FORTH 52
396 #define wxSTC_LEX_ERLANG 53
397 #define wxSTC_LEX_OCTAVE 54
398 #define wxSTC_LEX_MSSQL 55
399 #define wxSTC_LEX_VERILOG 56
400 #define wxSTC_LEX_KIX 57
401 #define wxSTC_LEX_GUI4CLI 58
402 #define wxSTC_LEX_SPECMAN 59
403 #define wxSTC_LEX_AU3 60
404 #define wxSTC_LEX_APDL 61
405 #define wxSTC_LEX_BASH 62
406 #define wxSTC_LEX_ASN1 63
407 #define wxSTC_LEX_VHDL 64
408 #define wxSTC_LEX_CAML 65
409 #define wxSTC_LEX_BLITZBASIC 66
410 #define wxSTC_LEX_PUREBASIC 67
411 #define wxSTC_LEX_HASKELL 68
412 #define wxSTC_LEX_PHPSCRIPT 69
413 #define wxSTC_LEX_TADS3 70
414 #define wxSTC_LEX_REBOL 71
415 #define wxSTC_LEX_SMALLTALK 72
416 #define wxSTC_LEX_FLAGSHIP 73
417 #define wxSTC_LEX_CSOUND 74
418 #define wxSTC_LEX_FREEBASIC 75
419 #define wxSTC_LEX_INNOSETUP 76
420 #define wxSTC_LEX_OPAL 77
421 #define wxSTC_LEX_SPICE 78
422 #define wxSTC_LEX_D 79
423 #define wxSTC_LEX_CMAKE 80
424 #define wxSTC_LEX_GAP 81
425 #define wxSTC_LEX_PLM 82
426 #define wxSTC_LEX_PROGRESS 83
427 #define wxSTC_LEX_ABAQUS 84
428 #define wxSTC_LEX_ASYMPTOTE 85
429 #define wxSTC_LEX_R 86
430 #define wxSTC_LEX_MAGIK 87
431 #define wxSTC_LEX_POWERSHELL 88
432 #define wxSTC_LEX_MYSQL 89
433 #define wxSTC_LEX_PO 90
434 #define wxSTC_LEX_TAL 91
435 #define wxSTC_LEX_COBOL 92
436 #define wxSTC_LEX_TACL 93
437 #define wxSTC_LEX_SORCUS 94
438 #define wxSTC_LEX_POWERPRO 95
439 #define wxSTC_LEX_NIMROD 96
440 #define wxSTC_LEX_SML 97
441 #define wxSTC_LEX_MARKDOWN 98
442 #define wxSTC_LEX_TXT2TAGS 99
443 #define wxSTC_LEX_A68K 100
444 #define wxSTC_LEX_MODULA 101
445 #define wxSTC_LEX_COFFEESCRIPT 102
446 #define wxSTC_LEX_TCMD 103
447 #define wxSTC_LEX_AVS 104
448 #define wxSTC_LEX_ECL 105
449 #define wxSTC_LEX_OSCRIPT 106
450 #define wxSTC_LEX_VISUALPROLOG 107
452 /// When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
453 /// value assigned in sequence from SCLEX_AUTOMATIC+1.
454 #define wxSTC_LEX_AUTOMATIC 1000
456 /// Lexical states for SCLEX_PYTHON
457 #define wxSTC_P_DEFAULT 0
458 #define wxSTC_P_COMMENTLINE 1
459 #define wxSTC_P_NUMBER 2
460 #define wxSTC_P_STRING 3
461 #define wxSTC_P_CHARACTER 4
462 #define wxSTC_P_WORD 5
463 #define wxSTC_P_TRIPLE 6
464 #define wxSTC_P_TRIPLEDOUBLE 7
465 #define wxSTC_P_CLASSNAME 8
466 #define wxSTC_P_DEFNAME 9
467 #define wxSTC_P_OPERATOR 10
468 #define wxSTC_P_IDENTIFIER 11
469 #define wxSTC_P_COMMENTBLOCK 12
470 #define wxSTC_P_STRINGEOL 13
471 #define wxSTC_P_WORD2 14
472 #define wxSTC_P_DECORATOR 15
474 /// Lexical states for SCLEX_CPP
475 #define wxSTC_C_DEFAULT 0
476 #define wxSTC_C_COMMENT 1
477 #define wxSTC_C_COMMENTLINE 2
478 #define wxSTC_C_COMMENTDOC 3
479 #define wxSTC_C_NUMBER 4
480 #define wxSTC_C_WORD 5
481 #define wxSTC_C_STRING 6
482 #define wxSTC_C_CHARACTER 7
483 #define wxSTC_C_UUID 8
484 #define wxSTC_C_PREPROCESSOR 9
485 #define wxSTC_C_OPERATOR 10
486 #define wxSTC_C_IDENTIFIER 11
487 #define wxSTC_C_STRINGEOL 12
488 #define wxSTC_C_VERBATIM 13
489 #define wxSTC_C_REGEX 14
490 #define wxSTC_C_COMMENTLINEDOC 15
491 #define wxSTC_C_WORD2 16
492 #define wxSTC_C_COMMENTDOCKEYWORD 17
493 #define wxSTC_C_COMMENTDOCKEYWORDERROR 18
494 #define wxSTC_C_GLOBALCLASS 19
495 #define wxSTC_C_STRINGRAW 20
496 #define wxSTC_C_TRIPLEVERBATIM 21
497 #define wxSTC_C_HASHQUOTEDSTRING 22
498 #define wxSTC_C_PREPROCESSORCOMMENT 23
500 /// Lexical states for SCLEX_D
501 #define wxSTC_D_DEFAULT 0
502 #define wxSTC_D_COMMENT 1
503 #define wxSTC_D_COMMENTLINE 2
504 #define wxSTC_D_COMMENTDOC 3
505 #define wxSTC_D_COMMENTNESTED 4
506 #define wxSTC_D_NUMBER 5
507 #define wxSTC_D_WORD 6
508 #define wxSTC_D_WORD2 7
509 #define wxSTC_D_WORD3 8
510 #define wxSTC_D_TYPEDEF 9
511 #define wxSTC_D_STRING 10
512 #define wxSTC_D_STRINGEOL 11
513 #define wxSTC_D_CHARACTER 12
514 #define wxSTC_D_OPERATOR 13
515 #define wxSTC_D_IDENTIFIER 14
516 #define wxSTC_D_COMMENTLINEDOC 15
517 #define wxSTC_D_COMMENTDOCKEYWORD 16
518 #define wxSTC_D_COMMENTDOCKEYWORDERROR 17
519 #define wxSTC_D_STRINGB 18
520 #define wxSTC_D_STRINGR 19
521 #define wxSTC_D_WORD5 20
522 #define wxSTC_D_WORD6 21
523 #define wxSTC_D_WORD7 22
525 /// Lexical states for SCLEX_TCL
526 #define wxSTC_TCL_DEFAULT 0
527 #define wxSTC_TCL_COMMENT 1
528 #define wxSTC_TCL_COMMENTLINE 2
529 #define wxSTC_TCL_NUMBER 3
530 #define wxSTC_TCL_WORD_IN_QUOTE 4
531 #define wxSTC_TCL_IN_QUOTE 5
532 #define wxSTC_TCL_OPERATOR 6
533 #define wxSTC_TCL_IDENTIFIER 7
534 #define wxSTC_TCL_SUBSTITUTION 8
535 #define wxSTC_TCL_SUB_BRACE 9
536 #define wxSTC_TCL_MODIFIER 10
537 #define wxSTC_TCL_EXPAND 11
538 #define wxSTC_TCL_WORD 12
539 #define wxSTC_TCL_WORD2 13
540 #define wxSTC_TCL_WORD3 14
541 #define wxSTC_TCL_WORD4 15
542 #define wxSTC_TCL_WORD5 16
543 #define wxSTC_TCL_WORD6 17
544 #define wxSTC_TCL_WORD7 18
545 #define wxSTC_TCL_WORD8 19
546 #define wxSTC_TCL_COMMENT_BOX 20
547 #define wxSTC_TCL_BLOCK_COMMENT 21
549 /// Lexical states for SCLEX_HTML, SCLEX_XML
550 #define wxSTC_H_DEFAULT 0
551 #define wxSTC_H_TAG 1
552 #define wxSTC_H_TAGUNKNOWN 2
553 #define wxSTC_H_ATTRIBUTE 3
554 #define wxSTC_H_ATTRIBUTEUNKNOWN 4
555 #define wxSTC_H_NUMBER 5
556 #define wxSTC_H_DOUBLESTRING 6
557 #define wxSTC_H_SINGLESTRING 7
558 #define wxSTC_H_OTHER 8
559 #define wxSTC_H_COMMENT 9
560 #define wxSTC_H_ENTITY 10
563 #define wxSTC_H_TAGEND 11
564 #define wxSTC_H_XMLSTART 12
565 #define wxSTC_H_XMLEND 13
566 #define wxSTC_H_SCRIPT 14
567 #define wxSTC_H_ASP 15
568 #define wxSTC_H_ASPAT 16
569 #define wxSTC_H_CDATA 17
570 #define wxSTC_H_QUESTION 18
573 #define wxSTC_H_VALUE 19
576 #define wxSTC_H_XCCOMMENT 20
579 #define wxSTC_H_SGML_DEFAULT 21
580 #define wxSTC_H_SGML_COMMAND 22
581 #define wxSTC_H_SGML_1ST_PARAM 23
582 #define wxSTC_H_SGML_DOUBLESTRING 24
583 #define wxSTC_H_SGML_SIMPLESTRING 25
584 #define wxSTC_H_SGML_ERROR 26
585 #define wxSTC_H_SGML_SPECIAL 27
586 #define wxSTC_H_SGML_ENTITY 28
587 #define wxSTC_H_SGML_COMMENT 29
588 #define wxSTC_H_SGML_1ST_PARAM_COMMENT 30
589 #define wxSTC_H_SGML_BLOCK_DEFAULT 31
591 /// Embedded Javascript
592 #define wxSTC_HJ_START 40
593 #define wxSTC_HJ_DEFAULT 41
594 #define wxSTC_HJ_COMMENT 42
595 #define wxSTC_HJ_COMMENTLINE 43
596 #define wxSTC_HJ_COMMENTDOC 44
597 #define wxSTC_HJ_NUMBER 45
598 #define wxSTC_HJ_WORD 46
599 #define wxSTC_HJ_KEYWORD 47
600 #define wxSTC_HJ_DOUBLESTRING 48
601 #define wxSTC_HJ_SINGLESTRING 49
602 #define wxSTC_HJ_SYMBOLS 50
603 #define wxSTC_HJ_STRINGEOL 51
604 #define wxSTC_HJ_REGEX 52
607 #define wxSTC_HJA_START 55
608 #define wxSTC_HJA_DEFAULT 56
609 #define wxSTC_HJA_COMMENT 57
610 #define wxSTC_HJA_COMMENTLINE 58
611 #define wxSTC_HJA_COMMENTDOC 59
612 #define wxSTC_HJA_NUMBER 60
613 #define wxSTC_HJA_WORD 61
614 #define wxSTC_HJA_KEYWORD 62
615 #define wxSTC_HJA_DOUBLESTRING 63
616 #define wxSTC_HJA_SINGLESTRING 64
617 #define wxSTC_HJA_SYMBOLS 65
618 #define wxSTC_HJA_STRINGEOL 66
619 #define wxSTC_HJA_REGEX 67
621 /// Embedded VBScript
622 #define wxSTC_HB_START 70
623 #define wxSTC_HB_DEFAULT 71
624 #define wxSTC_HB_COMMENTLINE 72
625 #define wxSTC_HB_NUMBER 73
626 #define wxSTC_HB_WORD 74
627 #define wxSTC_HB_STRING 75
628 #define wxSTC_HB_IDENTIFIER 76
629 #define wxSTC_HB_STRINGEOL 77
632 #define wxSTC_HBA_START 80
633 #define wxSTC_HBA_DEFAULT 81
634 #define wxSTC_HBA_COMMENTLINE 82
635 #define wxSTC_HBA_NUMBER 83
636 #define wxSTC_HBA_WORD 84
637 #define wxSTC_HBA_STRING 85
638 #define wxSTC_HBA_IDENTIFIER 86
639 #define wxSTC_HBA_STRINGEOL 87
642 #define wxSTC_HP_START 90
643 #define wxSTC_HP_DEFAULT 91
644 #define wxSTC_HP_COMMENTLINE 92
645 #define wxSTC_HP_NUMBER 93
646 #define wxSTC_HP_STRING 94
647 #define wxSTC_HP_CHARACTER 95
648 #define wxSTC_HP_WORD 96
649 #define wxSTC_HP_TRIPLE 97
650 #define wxSTC_HP_TRIPLEDOUBLE 98
651 #define wxSTC_HP_CLASSNAME 99
652 #define wxSTC_HP_DEFNAME 100
653 #define wxSTC_HP_OPERATOR 101
654 #define wxSTC_HP_IDENTIFIER 102
657 #define wxSTC_HPHP_COMPLEX_VARIABLE 104
660 #define wxSTC_HPA_START 105
661 #define wxSTC_HPA_DEFAULT 106
662 #define wxSTC_HPA_COMMENTLINE 107
663 #define wxSTC_HPA_NUMBER 108
664 #define wxSTC_HPA_STRING 109
665 #define wxSTC_HPA_CHARACTER 110
666 #define wxSTC_HPA_WORD 111
667 #define wxSTC_HPA_TRIPLE 112
668 #define wxSTC_HPA_TRIPLEDOUBLE 113
669 #define wxSTC_HPA_CLASSNAME 114
670 #define wxSTC_HPA_DEFNAME 115
671 #define wxSTC_HPA_OPERATOR 116
672 #define wxSTC_HPA_IDENTIFIER 117
675 #define wxSTC_HPHP_DEFAULT 118
676 #define wxSTC_HPHP_HSTRING 119
677 #define wxSTC_HPHP_SIMPLESTRING 120
678 #define wxSTC_HPHP_WORD 121
679 #define wxSTC_HPHP_NUMBER 122
680 #define wxSTC_HPHP_VARIABLE 123
681 #define wxSTC_HPHP_COMMENT 124
682 #define wxSTC_HPHP_COMMENTLINE 125
683 #define wxSTC_HPHP_HSTRING_VARIABLE 126
684 #define wxSTC_HPHP_OPERATOR 127
686 /// Lexical states for SCLEX_PERL
687 #define wxSTC_PL_DEFAULT 0
688 #define wxSTC_PL_ERROR 1
689 #define wxSTC_PL_COMMENTLINE 2
690 #define wxSTC_PL_POD 3
691 #define wxSTC_PL_NUMBER 4
692 #define wxSTC_PL_WORD 5
693 #define wxSTC_PL_STRING 6
694 #define wxSTC_PL_CHARACTER 7
695 #define wxSTC_PL_PUNCTUATION 8
696 #define wxSTC_PL_PREPROCESSOR 9
697 #define wxSTC_PL_OPERATOR 10
698 #define wxSTC_PL_IDENTIFIER 11
699 #define wxSTC_PL_SCALAR 12
700 #define wxSTC_PL_ARRAY 13
701 #define wxSTC_PL_HASH 14
702 #define wxSTC_PL_SYMBOLTABLE 15
703 #define wxSTC_PL_VARIABLE_INDEXER 16
704 #define wxSTC_PL_REGEX 17
705 #define wxSTC_PL_REGSUBST 18
706 #define wxSTC_PL_LONGQUOTE 19
707 #define wxSTC_PL_BACKTICKS 20
708 #define wxSTC_PL_DATASECTION 21
709 #define wxSTC_PL_HERE_DELIM 22
710 #define wxSTC_PL_HERE_Q 23
711 #define wxSTC_PL_HERE_QQ 24
712 #define wxSTC_PL_HERE_QX 25
713 #define wxSTC_PL_STRING_Q 26
714 #define wxSTC_PL_STRING_QQ 27
715 #define wxSTC_PL_STRING_QX 28
716 #define wxSTC_PL_STRING_QR 29
717 #define wxSTC_PL_STRING_QW 30
718 #define wxSTC_PL_POD_VERB 31
719 #define wxSTC_PL_SUB_PROTOTYPE 40
720 #define wxSTC_PL_FORMAT_IDENT 41
721 #define wxSTC_PL_FORMAT 42
722 #define wxSTC_PL_STRING_VAR 43
723 #define wxSTC_PL_XLAT 44
724 #define wxSTC_PL_REGEX_VAR 54
725 #define wxSTC_PL_REGSUBST_VAR 55
726 #define wxSTC_PL_BACKTICKS_VAR 57
727 #define wxSTC_PL_HERE_QQ_VAR 61
728 #define wxSTC_PL_HERE_QX_VAR 62
729 #define wxSTC_PL_STRING_QQ_VAR 64
730 #define wxSTC_PL_STRING_QX_VAR 65
731 #define wxSTC_PL_STRING_QR_VAR 66
733 /// Lexical states for SCLEX_RUBY
734 #define wxSTC_RB_DEFAULT 0
735 #define wxSTC_RB_ERROR 1
736 #define wxSTC_RB_COMMENTLINE 2
737 #define wxSTC_RB_POD 3
738 #define wxSTC_RB_NUMBER 4
739 #define wxSTC_RB_WORD 5
740 #define wxSTC_RB_STRING 6
741 #define wxSTC_RB_CHARACTER 7
742 #define wxSTC_RB_CLASSNAME 8
743 #define wxSTC_RB_DEFNAME 9
744 #define wxSTC_RB_OPERATOR 10
745 #define wxSTC_RB_IDENTIFIER 11
746 #define wxSTC_RB_REGEX 12
747 #define wxSTC_RB_GLOBAL 13
748 #define wxSTC_RB_SYMBOL 14
749 #define wxSTC_RB_MODULE_NAME 15
750 #define wxSTC_RB_INSTANCE_VAR 16
751 #define wxSTC_RB_CLASS_VAR 17
752 #define wxSTC_RB_BACKTICKS 18
753 #define wxSTC_RB_DATASECTION 19
754 #define wxSTC_RB_HERE_DELIM 20
755 #define wxSTC_RB_HERE_Q 21
756 #define wxSTC_RB_HERE_QQ 22
757 #define wxSTC_RB_HERE_QX 23
758 #define wxSTC_RB_STRING_Q 24
759 #define wxSTC_RB_STRING_QQ 25
760 #define wxSTC_RB_STRING_QX 26
761 #define wxSTC_RB_STRING_QR 27
762 #define wxSTC_RB_STRING_QW 28
763 #define wxSTC_RB_WORD_DEMOTED 29
764 #define wxSTC_RB_STDIN 30
765 #define wxSTC_RB_STDOUT 31
766 #define wxSTC_RB_STDERR 40
767 #define wxSTC_RB_UPPER_BOUND 41
769 /// Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC
770 #define wxSTC_B_DEFAULT 0
771 #define wxSTC_B_COMMENT 1
772 #define wxSTC_B_NUMBER 2
773 #define wxSTC_B_KEYWORD 3
774 #define wxSTC_B_STRING 4
775 #define wxSTC_B_PREPROCESSOR 5
776 #define wxSTC_B_OPERATOR 6
777 #define wxSTC_B_IDENTIFIER 7
778 #define wxSTC_B_DATE 8
779 #define wxSTC_B_STRINGEOL 9
780 #define wxSTC_B_KEYWORD2 10
781 #define wxSTC_B_KEYWORD3 11
782 #define wxSTC_B_KEYWORD4 12
783 #define wxSTC_B_CONSTANT 13
784 #define wxSTC_B_ASM 14
785 #define wxSTC_B_LABEL 15
786 #define wxSTC_B_ERROR 16
787 #define wxSTC_B_HEXNUMBER 17
788 #define wxSTC_B_BINNUMBER 18
790 /// Lexical states for SCLEX_PROPERTIES
791 #define wxSTC_PROPS_DEFAULT 0
792 #define wxSTC_PROPS_COMMENT 1
793 #define wxSTC_PROPS_SECTION 2
794 #define wxSTC_PROPS_ASSIGNMENT 3
795 #define wxSTC_PROPS_DEFVAL 4
796 #define wxSTC_PROPS_KEY 5
798 /// Lexical states for SCLEX_LATEX
799 #define wxSTC_L_DEFAULT 0
800 #define wxSTC_L_COMMAND 1
801 #define wxSTC_L_TAG 2
802 #define wxSTC_L_MATH 3
803 #define wxSTC_L_COMMENT 4
804 #define wxSTC_L_TAG2 5
805 #define wxSTC_L_MATH2 6
806 #define wxSTC_L_COMMENT2 7
807 #define wxSTC_L_VERBATIM 8
808 #define wxSTC_L_SHORTCMD 9
809 #define wxSTC_L_SPECIAL 10
810 #define wxSTC_L_CMDOPT 11
811 #define wxSTC_L_ERROR 12
813 /// Lexical states for SCLEX_LUA
814 #define wxSTC_LUA_DEFAULT 0
815 #define wxSTC_LUA_COMMENT 1
816 #define wxSTC_LUA_COMMENTLINE 2
817 #define wxSTC_LUA_COMMENTDOC 3
818 #define wxSTC_LUA_NUMBER 4
819 #define wxSTC_LUA_WORD 5
820 #define wxSTC_LUA_STRING 6
821 #define wxSTC_LUA_CHARACTER 7
822 #define wxSTC_LUA_LITERALSTRING 8
823 #define wxSTC_LUA_PREPROCESSOR 9
824 #define wxSTC_LUA_OPERATOR 10
825 #define wxSTC_LUA_IDENTIFIER 11
826 #define wxSTC_LUA_STRINGEOL 12
827 #define wxSTC_LUA_WORD2 13
828 #define wxSTC_LUA_WORD3 14
829 #define wxSTC_LUA_WORD4 15
830 #define wxSTC_LUA_WORD5 16
831 #define wxSTC_LUA_WORD6 17
832 #define wxSTC_LUA_WORD7 18
833 #define wxSTC_LUA_WORD8 19
834 #define wxSTC_LUA_LABEL 20
836 /// Lexical states for SCLEX_ERRORLIST
837 #define wxSTC_ERR_DEFAULT 0
838 #define wxSTC_ERR_PYTHON 1
839 #define wxSTC_ERR_GCC 2
840 #define wxSTC_ERR_MS 3
841 #define wxSTC_ERR_CMD 4
842 #define wxSTC_ERR_BORLAND 5
843 #define wxSTC_ERR_PERL 6
844 #define wxSTC_ERR_NET 7
845 #define wxSTC_ERR_LUA 8
846 #define wxSTC_ERR_CTAG 9
847 #define wxSTC_ERR_DIFF_CHANGED 10
848 #define wxSTC_ERR_DIFF_ADDITION 11
849 #define wxSTC_ERR_DIFF_DELETION 12
850 #define wxSTC_ERR_DIFF_MESSAGE 13
851 #define wxSTC_ERR_PHP 14
852 #define wxSTC_ERR_ELF 15
853 #define wxSTC_ERR_IFC 16
854 #define wxSTC_ERR_IFORT 17
855 #define wxSTC_ERR_ABSF 18
856 #define wxSTC_ERR_TIDY 19
857 #define wxSTC_ERR_JAVA_STACK 20
858 #define wxSTC_ERR_VALUE 21
860 /// Lexical states for SCLEX_BATCH
861 #define wxSTC_BAT_DEFAULT 0
862 #define wxSTC_BAT_COMMENT 1
863 #define wxSTC_BAT_WORD 2
864 #define wxSTC_BAT_LABEL 3
865 #define wxSTC_BAT_HIDE 4
866 #define wxSTC_BAT_COMMAND 5
867 #define wxSTC_BAT_IDENTIFIER 6
868 #define wxSTC_BAT_OPERATOR 7
870 /// Lexical states for SCLEX_TCMD
871 #define wxSTC_TCMD_DEFAULT 0
872 #define wxSTC_TCMD_COMMENT 1
873 #define wxSTC_TCMD_WORD 2
874 #define wxSTC_TCMD_LABEL 3
875 #define wxSTC_TCMD_HIDE 4
876 #define wxSTC_TCMD_COMMAND 5
877 #define wxSTC_TCMD_IDENTIFIER 6
878 #define wxSTC_TCMD_OPERATOR 7
879 #define wxSTC_TCMD_ENVIRONMENT 8
880 #define wxSTC_TCMD_EXPANSION 9
881 #define wxSTC_TCMD_CLABEL 10
883 /// Lexical states for SCLEX_MAKEFILE
884 #define wxSTC_MAKE_DEFAULT 0
885 #define wxSTC_MAKE_COMMENT 1
886 #define wxSTC_MAKE_PREPROCESSOR 2
887 #define wxSTC_MAKE_IDENTIFIER 3
888 #define wxSTC_MAKE_OPERATOR 4
889 #define wxSTC_MAKE_TARGET 5
890 #define wxSTC_MAKE_IDEOL 9
892 /// Lexical states for SCLEX_DIFF
893 #define wxSTC_DIFF_DEFAULT 0
894 #define wxSTC_DIFF_COMMENT 1
895 #define wxSTC_DIFF_COMMAND 2
896 #define wxSTC_DIFF_HEADER 3
897 #define wxSTC_DIFF_POSITION 4
898 #define wxSTC_DIFF_DELETED 5
899 #define wxSTC_DIFF_ADDED 6
900 #define wxSTC_DIFF_CHANGED 7
902 /// Lexical states for SCLEX_CONF (Apache Configuration Files Lexer)
903 #define wxSTC_CONF_DEFAULT 0
904 #define wxSTC_CONF_COMMENT 1
905 #define wxSTC_CONF_NUMBER 2
906 #define wxSTC_CONF_IDENTIFIER 3
907 #define wxSTC_CONF_EXTENSION 4
908 #define wxSTC_CONF_PARAMETER 5
909 #define wxSTC_CONF_STRING 6
910 #define wxSTC_CONF_OPERATOR 7
911 #define wxSTC_CONF_IP 8
912 #define wxSTC_CONF_DIRECTIVE 9
914 /// Lexical states for SCLEX_AVE, Avenue
915 #define wxSTC_AVE_DEFAULT 0
916 #define wxSTC_AVE_COMMENT 1
917 #define wxSTC_AVE_NUMBER 2
918 #define wxSTC_AVE_WORD 3
919 #define wxSTC_AVE_STRING 6
920 #define wxSTC_AVE_ENUM 7
921 #define wxSTC_AVE_STRINGEOL 8
922 #define wxSTC_AVE_IDENTIFIER 9
923 #define wxSTC_AVE_OPERATOR 10
924 #define wxSTC_AVE_WORD1 11
925 #define wxSTC_AVE_WORD2 12
926 #define wxSTC_AVE_WORD3 13
927 #define wxSTC_AVE_WORD4 14
928 #define wxSTC_AVE_WORD5 15
929 #define wxSTC_AVE_WORD6 16
931 /// Lexical states for SCLEX_ADA
932 #define wxSTC_ADA_DEFAULT 0
933 #define wxSTC_ADA_WORD 1
934 #define wxSTC_ADA_IDENTIFIER 2
935 #define wxSTC_ADA_NUMBER 3
936 #define wxSTC_ADA_DELIMITER 4
937 #define wxSTC_ADA_CHARACTER 5
938 #define wxSTC_ADA_CHARACTEREOL 6
939 #define wxSTC_ADA_STRING 7
940 #define wxSTC_ADA_STRINGEOL 8
941 #define wxSTC_ADA_LABEL 9
942 #define wxSTC_ADA_COMMENTLINE 10
943 #define wxSTC_ADA_ILLEGAL 11
945 /// Lexical states for SCLEX_BAAN
946 #define wxSTC_BAAN_DEFAULT 0
947 #define wxSTC_BAAN_COMMENT 1
948 #define wxSTC_BAAN_COMMENTDOC 2
949 #define wxSTC_BAAN_NUMBER 3
950 #define wxSTC_BAAN_WORD 4
951 #define wxSTC_BAAN_STRING 5
952 #define wxSTC_BAAN_PREPROCESSOR 6
953 #define wxSTC_BAAN_OPERATOR 7
954 #define wxSTC_BAAN_IDENTIFIER 8
955 #define wxSTC_BAAN_STRINGEOL 9
956 #define wxSTC_BAAN_WORD2 10
958 /// Lexical states for SCLEX_LISP
959 #define wxSTC_LISP_DEFAULT 0
960 #define wxSTC_LISP_COMMENT 1
961 #define wxSTC_LISP_NUMBER 2
962 #define wxSTC_LISP_KEYWORD 3
963 #define wxSTC_LISP_KEYWORD_KW 4
964 #define wxSTC_LISP_SYMBOL 5
965 #define wxSTC_LISP_STRING 6
966 #define wxSTC_LISP_STRINGEOL 8
967 #define wxSTC_LISP_IDENTIFIER 9
968 #define wxSTC_LISP_OPERATOR 10
969 #define wxSTC_LISP_SPECIAL 11
970 #define wxSTC_LISP_MULTI_COMMENT 12
972 /// Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
973 #define wxSTC_EIFFEL_DEFAULT 0
974 #define wxSTC_EIFFEL_COMMENTLINE 1
975 #define wxSTC_EIFFEL_NUMBER 2
976 #define wxSTC_EIFFEL_WORD 3
977 #define wxSTC_EIFFEL_STRING 4
978 #define wxSTC_EIFFEL_CHARACTER 5
979 #define wxSTC_EIFFEL_OPERATOR 6
980 #define wxSTC_EIFFEL_IDENTIFIER 7
981 #define wxSTC_EIFFEL_STRINGEOL 8
983 /// Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer)
984 #define wxSTC_NNCRONTAB_DEFAULT 0
985 #define wxSTC_NNCRONTAB_COMMENT 1
986 #define wxSTC_NNCRONTAB_TASK 2
987 #define wxSTC_NNCRONTAB_SECTION 3
988 #define wxSTC_NNCRONTAB_KEYWORD 4
989 #define wxSTC_NNCRONTAB_MODIFIER 5
990 #define wxSTC_NNCRONTAB_ASTERISK 6
991 #define wxSTC_NNCRONTAB_NUMBER 7
992 #define wxSTC_NNCRONTAB_STRING 8
993 #define wxSTC_NNCRONTAB_ENVIRONMENT 9
994 #define wxSTC_NNCRONTAB_IDENTIFIER 10
996 /// Lexical states for SCLEX_FORTH (Forth Lexer)
997 #define wxSTC_FORTH_DEFAULT 0
998 #define wxSTC_FORTH_COMMENT 1
999 #define wxSTC_FORTH_COMMENT_ML 2
1000 #define wxSTC_FORTH_IDENTIFIER 3
1001 #define wxSTC_FORTH_CONTROL 4
1002 #define wxSTC_FORTH_KEYWORD 5
1003 #define wxSTC_FORTH_DEFWORD 6
1004 #define wxSTC_FORTH_PREWORD1 7
1005 #define wxSTC_FORTH_PREWORD2 8
1006 #define wxSTC_FORTH_NUMBER 9
1007 #define wxSTC_FORTH_STRING 10
1008 #define wxSTC_FORTH_LOCALE 11
1010 /// Lexical states for SCLEX_MATLAB
1011 #define wxSTC_MATLAB_DEFAULT 0
1012 #define wxSTC_MATLAB_COMMENT 1
1013 #define wxSTC_MATLAB_COMMAND 2
1014 #define wxSTC_MATLAB_NUMBER 3
1015 #define wxSTC_MATLAB_KEYWORD 4
1017 /// single quoted string
1018 #define wxSTC_MATLAB_STRING 5
1019 #define wxSTC_MATLAB_OPERATOR 6
1020 #define wxSTC_MATLAB_IDENTIFIER 7
1021 #define wxSTC_MATLAB_DOUBLEQUOTESTRING 8
1023 /// Lexical states for SCLEX_SCRIPTOL
1024 #define wxSTC_SCRIPTOL_DEFAULT 0
1025 #define wxSTC_SCRIPTOL_WHITE 1
1026 #define wxSTC_SCRIPTOL_COMMENTLINE 2
1027 #define wxSTC_SCRIPTOL_PERSISTENT 3
1028 #define wxSTC_SCRIPTOL_CSTYLE 4
1029 #define wxSTC_SCRIPTOL_COMMENTBLOCK 5
1030 #define wxSTC_SCRIPTOL_NUMBER 6
1031 #define wxSTC_SCRIPTOL_STRING 7
1032 #define wxSTC_SCRIPTOL_CHARACTER 8
1033 #define wxSTC_SCRIPTOL_STRINGEOL 9
1034 #define wxSTC_SCRIPTOL_KEYWORD 10
1035 #define wxSTC_SCRIPTOL_OPERATOR 11
1036 #define wxSTC_SCRIPTOL_IDENTIFIER 12
1037 #define wxSTC_SCRIPTOL_TRIPLE 13
1038 #define wxSTC_SCRIPTOL_CLASSNAME 14
1039 #define wxSTC_SCRIPTOL_PREPROCESSOR 15
1041 /// Lexical states for SCLEX_ASM
1042 #define wxSTC_ASM_DEFAULT 0
1043 #define wxSTC_ASM_COMMENT 1
1044 #define wxSTC_ASM_NUMBER 2
1045 #define wxSTC_ASM_STRING 3
1046 #define wxSTC_ASM_OPERATOR 4
1047 #define wxSTC_ASM_IDENTIFIER 5
1048 #define wxSTC_ASM_CPUINSTRUCTION 6
1049 #define wxSTC_ASM_MATHINSTRUCTION 7
1050 #define wxSTC_ASM_REGISTER 8
1051 #define wxSTC_ASM_DIRECTIVE 9
1052 #define wxSTC_ASM_DIRECTIVEOPERAND 10
1053 #define wxSTC_ASM_COMMENTBLOCK 11
1054 #define wxSTC_ASM_CHARACTER 12
1055 #define wxSTC_ASM_STRINGEOL 13
1056 #define wxSTC_ASM_EXTINSTRUCTION 14
1057 #define wxSTC_ASM_COMMENTDIRECTIVE 15
1059 /// Lexical states for SCLEX_FORTRAN
1060 #define wxSTC_F_DEFAULT 0
1061 #define wxSTC_F_COMMENT 1
1062 #define wxSTC_F_NUMBER 2
1063 #define wxSTC_F_STRING1 3
1064 #define wxSTC_F_STRING2 4
1065 #define wxSTC_F_STRINGEOL 5
1066 #define wxSTC_F_OPERATOR 6
1067 #define wxSTC_F_IDENTIFIER 7
1068 #define wxSTC_F_WORD 8
1069 #define wxSTC_F_WORD2 9
1070 #define wxSTC_F_WORD3 10
1071 #define wxSTC_F_PREPROCESSOR 11
1072 #define wxSTC_F_OPERATOR2 12
1073 #define wxSTC_F_LABEL 13
1074 #define wxSTC_F_CONTINUATION 14
1076 /// Lexical states for SCLEX_CSS
1077 #define wxSTC_CSS_DEFAULT 0
1078 #define wxSTC_CSS_TAG 1
1079 #define wxSTC_CSS_CLASS 2
1080 #define wxSTC_CSS_PSEUDOCLASS 3
1081 #define wxSTC_CSS_UNKNOWN_PSEUDOCLASS 4
1082 #define wxSTC_CSS_OPERATOR 5
1083 #define wxSTC_CSS_IDENTIFIER 6
1084 #define wxSTC_CSS_UNKNOWN_IDENTIFIER 7
1085 #define wxSTC_CSS_VALUE 8
1086 #define wxSTC_CSS_COMMENT 9
1087 #define wxSTC_CSS_ID 10
1088 #define wxSTC_CSS_IMPORTANT 11
1089 #define wxSTC_CSS_DIRECTIVE 12
1090 #define wxSTC_CSS_DOUBLESTRING 13
1091 #define wxSTC_CSS_SINGLESTRING 14
1092 #define wxSTC_CSS_IDENTIFIER2 15
1093 #define wxSTC_CSS_ATTRIBUTE 16
1094 #define wxSTC_CSS_IDENTIFIER3 17
1095 #define wxSTC_CSS_PSEUDOELEMENT 18
1096 #define wxSTC_CSS_EXTENDED_IDENTIFIER 19
1097 #define wxSTC_CSS_EXTENDED_PSEUDOCLASS 20
1098 #define wxSTC_CSS_EXTENDED_PSEUDOELEMENT 21
1099 #define wxSTC_CSS_MEDIA 22
1100 #define wxSTC_CSS_VARIABLE 23
1102 /// Lexical states for SCLEX_POV
1103 #define wxSTC_POV_DEFAULT 0
1104 #define wxSTC_POV_COMMENT 1
1105 #define wxSTC_POV_COMMENTLINE 2
1106 #define wxSTC_POV_NUMBER 3
1107 #define wxSTC_POV_OPERATOR 4
1108 #define wxSTC_POV_IDENTIFIER 5
1109 #define wxSTC_POV_STRING 6
1110 #define wxSTC_POV_STRINGEOL 7
1111 #define wxSTC_POV_DIRECTIVE 8
1112 #define wxSTC_POV_BADDIRECTIVE 9
1113 #define wxSTC_POV_WORD2 10
1114 #define wxSTC_POV_WORD3 11
1115 #define wxSTC_POV_WORD4 12
1116 #define wxSTC_POV_WORD5 13
1117 #define wxSTC_POV_WORD6 14
1118 #define wxSTC_POV_WORD7 15
1119 #define wxSTC_POV_WORD8 16
1121 /// Lexical states for SCLEX_LOUT
1122 #define wxSTC_LOUT_DEFAULT 0
1123 #define wxSTC_LOUT_COMMENT 1
1124 #define wxSTC_LOUT_NUMBER 2
1125 #define wxSTC_LOUT_WORD 3
1126 #define wxSTC_LOUT_WORD2 4
1127 #define wxSTC_LOUT_WORD3 5
1128 #define wxSTC_LOUT_WORD4 6
1129 #define wxSTC_LOUT_STRING 7
1130 #define wxSTC_LOUT_OPERATOR 8
1131 #define wxSTC_LOUT_IDENTIFIER 9
1132 #define wxSTC_LOUT_STRINGEOL 10
1134 /// Lexical states for SCLEX_ESCRIPT
1135 #define wxSTC_ESCRIPT_DEFAULT 0
1136 #define wxSTC_ESCRIPT_COMMENT 1
1137 #define wxSTC_ESCRIPT_COMMENTLINE 2
1138 #define wxSTC_ESCRIPT_COMMENTDOC 3
1139 #define wxSTC_ESCRIPT_NUMBER 4
1140 #define wxSTC_ESCRIPT_WORD 5
1141 #define wxSTC_ESCRIPT_STRING 6
1142 #define wxSTC_ESCRIPT_OPERATOR 7
1143 #define wxSTC_ESCRIPT_IDENTIFIER 8
1144 #define wxSTC_ESCRIPT_BRACE 9
1145 #define wxSTC_ESCRIPT_WORD2 10
1146 #define wxSTC_ESCRIPT_WORD3 11
1148 /// Lexical states for SCLEX_PS
1149 #define wxSTC_PS_DEFAULT 0
1150 #define wxSTC_PS_COMMENT 1
1151 #define wxSTC_PS_DSC_COMMENT 2
1152 #define wxSTC_PS_DSC_VALUE 3
1153 #define wxSTC_PS_NUMBER 4
1154 #define wxSTC_PS_NAME 5
1155 #define wxSTC_PS_KEYWORD 6
1156 #define wxSTC_PS_LITERAL 7
1157 #define wxSTC_PS_IMMEVAL 8
1158 #define wxSTC_PS_PAREN_ARRAY 9
1159 #define wxSTC_PS_PAREN_DICT 10
1160 #define wxSTC_PS_PAREN_PROC 11
1161 #define wxSTC_PS_TEXT 12
1162 #define wxSTC_PS_HEXSTRING 13
1163 #define wxSTC_PS_BASE85STRING 14
1164 #define wxSTC_PS_BADSTRINGCHAR 15
1166 /// Lexical states for SCLEX_NSIS
1167 #define wxSTC_NSIS_DEFAULT 0
1168 #define wxSTC_NSIS_COMMENT 1
1169 #define wxSTC_NSIS_STRINGDQ 2
1170 #define wxSTC_NSIS_STRINGLQ 3
1171 #define wxSTC_NSIS_STRINGRQ 4
1172 #define wxSTC_NSIS_FUNCTION 5
1173 #define wxSTC_NSIS_VARIABLE 6
1174 #define wxSTC_NSIS_LABEL 7
1175 #define wxSTC_NSIS_USERDEFINED 8
1176 #define wxSTC_NSIS_SECTIONDEF 9
1177 #define wxSTC_NSIS_SUBSECTIONDEF 10
1178 #define wxSTC_NSIS_IFDEFINEDEF 11
1179 #define wxSTC_NSIS_MACRODEF 12
1180 #define wxSTC_NSIS_STRINGVAR 13
1181 #define wxSTC_NSIS_NUMBER 14
1182 #define wxSTC_NSIS_SECTIONGROUP 15
1183 #define wxSTC_NSIS_PAGEEX 16
1184 #define wxSTC_NSIS_FUNCTIONDEF 17
1185 #define wxSTC_NSIS_COMMENTBOX 18
1187 /// Lexical states for SCLEX_MMIXAL
1188 #define wxSTC_MMIXAL_LEADWS 0
1189 #define wxSTC_MMIXAL_COMMENT 1
1190 #define wxSTC_MMIXAL_LABEL 2
1191 #define wxSTC_MMIXAL_OPCODE 3
1192 #define wxSTC_MMIXAL_OPCODE_PRE 4
1193 #define wxSTC_MMIXAL_OPCODE_VALID 5
1194 #define wxSTC_MMIXAL_OPCODE_UNKNOWN 6
1195 #define wxSTC_MMIXAL_OPCODE_POST 7
1196 #define wxSTC_MMIXAL_OPERANDS 8
1197 #define wxSTC_MMIXAL_NUMBER 9
1198 #define wxSTC_MMIXAL_REF 10
1199 #define wxSTC_MMIXAL_CHAR 11
1200 #define wxSTC_MMIXAL_STRING 12
1201 #define wxSTC_MMIXAL_REGISTER 13
1202 #define wxSTC_MMIXAL_HEX 14
1203 #define wxSTC_MMIXAL_OPERATOR 15
1204 #define wxSTC_MMIXAL_SYMBOL 16
1205 #define wxSTC_MMIXAL_INCLUDE 17
1207 /// Lexical states for SCLEX_CLW
1208 #define wxSTC_CLW_DEFAULT 0
1209 #define wxSTC_CLW_LABEL 1
1210 #define wxSTC_CLW_COMMENT 2
1211 #define wxSTC_CLW_STRING 3
1212 #define wxSTC_CLW_USER_IDENTIFIER 4
1213 #define wxSTC_CLW_INTEGER_CONSTANT 5
1214 #define wxSTC_CLW_REAL_CONSTANT 6
1215 #define wxSTC_CLW_PICTURE_STRING 7
1216 #define wxSTC_CLW_KEYWORD 8
1217 #define wxSTC_CLW_COMPILER_DIRECTIVE 9
1218 #define wxSTC_CLW_RUNTIME_EXPRESSIONS 10
1219 #define wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION 11
1220 #define wxSTC_CLW_STRUCTURE_DATA_TYPE 12
1221 #define wxSTC_CLW_ATTRIBUTE 13
1222 #define wxSTC_CLW_STANDARD_EQUATE 14
1223 #define wxSTC_CLW_ERROR 15
1224 #define wxSTC_CLW_DEPRECATED 16
1226 /// Lexical states for SCLEX_LOT
1227 #define wxSTC_LOT_DEFAULT 0
1228 #define wxSTC_LOT_HEADER 1
1229 #define wxSTC_LOT_BREAK 2
1230 #define wxSTC_LOT_SET 3
1231 #define wxSTC_LOT_PASS 4
1232 #define wxSTC_LOT_FAIL 5
1233 #define wxSTC_LOT_ABORT 6
1235 /// Lexical states for SCLEX_YAML
1236 #define wxSTC_YAML_DEFAULT 0
1237 #define wxSTC_YAML_COMMENT 1
1238 #define wxSTC_YAML_IDENTIFIER 2
1239 #define wxSTC_YAML_KEYWORD 3
1240 #define wxSTC_YAML_NUMBER 4
1241 #define wxSTC_YAML_REFERENCE 5
1242 #define wxSTC_YAML_DOCUMENT 6
1243 #define wxSTC_YAML_TEXT 7
1244 #define wxSTC_YAML_ERROR 8
1245 #define wxSTC_YAML_OPERATOR 9
1247 /// Lexical states for SCLEX_TEX
1248 #define wxSTC_TEX_DEFAULT 0
1249 #define wxSTC_TEX_SPECIAL 1
1250 #define wxSTC_TEX_GROUP 2
1251 #define wxSTC_TEX_SYMBOL 3
1252 #define wxSTC_TEX_COMMAND 4
1253 #define wxSTC_TEX_TEXT 5
1254 #define wxSTC_METAPOST_DEFAULT 0
1255 #define wxSTC_METAPOST_SPECIAL 1
1256 #define wxSTC_METAPOST_GROUP 2
1257 #define wxSTC_METAPOST_SYMBOL 3
1258 #define wxSTC_METAPOST_COMMAND 4
1259 #define wxSTC_METAPOST_TEXT 5
1260 #define wxSTC_METAPOST_EXTRA 6
1262 /// Lexical states for SCLEX_ERLANG
1263 #define wxSTC_ERLANG_DEFAULT 0
1264 #define wxSTC_ERLANG_COMMENT 1
1265 #define wxSTC_ERLANG_VARIABLE 2
1266 #define wxSTC_ERLANG_NUMBER 3
1267 #define wxSTC_ERLANG_KEYWORD 4
1268 #define wxSTC_ERLANG_STRING 5
1269 #define wxSTC_ERLANG_OPERATOR 6
1270 #define wxSTC_ERLANG_ATOM 7
1271 #define wxSTC_ERLANG_FUNCTION_NAME 8
1272 #define wxSTC_ERLANG_CHARACTER 9
1273 #define wxSTC_ERLANG_MACRO 10
1274 #define wxSTC_ERLANG_RECORD 11
1275 #define wxSTC_ERLANG_PREPROC 12
1276 #define wxSTC_ERLANG_NODE_NAME 13
1277 #define wxSTC_ERLANG_COMMENT_FUNCTION 14
1278 #define wxSTC_ERLANG_COMMENT_MODULE 15
1279 #define wxSTC_ERLANG_COMMENT_DOC 16
1280 #define wxSTC_ERLANG_COMMENT_DOC_MACRO 17
1281 #define wxSTC_ERLANG_ATOM_QUOTED 18
1282 #define wxSTC_ERLANG_MACRO_QUOTED 19
1283 #define wxSTC_ERLANG_RECORD_QUOTED 20
1284 #define wxSTC_ERLANG_NODE_NAME_QUOTED 21
1285 #define wxSTC_ERLANG_BIFS 22
1286 #define wxSTC_ERLANG_MODULES 23
1287 #define wxSTC_ERLANG_MODULES_ATT 24
1288 #define wxSTC_ERLANG_UNKNOWN 31
1290 /// Lexical states for SCLEX_OCTAVE are identical to MatLab
1291 /// Lexical states for SCLEX_MSSQL
1292 #define wxSTC_MSSQL_DEFAULT 0
1293 #define wxSTC_MSSQL_COMMENT 1
1294 #define wxSTC_MSSQL_LINE_COMMENT 2
1295 #define wxSTC_MSSQL_NUMBER 3
1296 #define wxSTC_MSSQL_STRING 4
1297 #define wxSTC_MSSQL_OPERATOR 5
1298 #define wxSTC_MSSQL_IDENTIFIER 6
1299 #define wxSTC_MSSQL_VARIABLE 7
1300 #define wxSTC_MSSQL_COLUMN_NAME 8
1301 #define wxSTC_MSSQL_STATEMENT 9
1302 #define wxSTC_MSSQL_DATATYPE 10
1303 #define wxSTC_MSSQL_SYSTABLE 11
1304 #define wxSTC_MSSQL_GLOBAL_VARIABLE 12
1305 #define wxSTC_MSSQL_FUNCTION 13
1306 #define wxSTC_MSSQL_STORED_PROCEDURE 14
1307 #define wxSTC_MSSQL_DEFAULT_PREF_DATATYPE 15
1308 #define wxSTC_MSSQL_COLUMN_NAME_2 16
1310 /// Lexical states for SCLEX_VERILOG
1311 #define wxSTC_V_DEFAULT 0
1312 #define wxSTC_V_COMMENT 1
1313 #define wxSTC_V_COMMENTLINE 2
1314 #define wxSTC_V_COMMENTLINEBANG 3
1315 #define wxSTC_V_NUMBER 4
1316 #define wxSTC_V_WORD 5
1317 #define wxSTC_V_STRING 6
1318 #define wxSTC_V_WORD2 7
1319 #define wxSTC_V_WORD3 8
1320 #define wxSTC_V_PREPROCESSOR 9
1321 #define wxSTC_V_OPERATOR 10
1322 #define wxSTC_V_IDENTIFIER 11
1323 #define wxSTC_V_STRINGEOL 12
1324 #define wxSTC_V_USER 19
1326 /// Lexical states for SCLEX_KIX
1327 #define wxSTC_KIX_DEFAULT 0
1328 #define wxSTC_KIX_COMMENT 1
1329 #define wxSTC_KIX_STRING1 2
1330 #define wxSTC_KIX_STRING2 3
1331 #define wxSTC_KIX_NUMBER 4
1332 #define wxSTC_KIX_VAR 5
1333 #define wxSTC_KIX_MACRO 6
1334 #define wxSTC_KIX_KEYWORD 7
1335 #define wxSTC_KIX_FUNCTIONS 8
1336 #define wxSTC_KIX_OPERATOR 9
1337 #define wxSTC_KIX_IDENTIFIER 31
1339 /// Lexical states for SCLEX_GUI4CLI
1340 #define wxSTC_GC_DEFAULT 0
1341 #define wxSTC_GC_COMMENTLINE 1
1342 #define wxSTC_GC_COMMENTBLOCK 2
1343 #define wxSTC_GC_GLOBAL 3
1344 #define wxSTC_GC_EVENT 4
1345 #define wxSTC_GC_ATTRIBUTE 5
1346 #define wxSTC_GC_CONTROL 6
1347 #define wxSTC_GC_COMMAND 7
1348 #define wxSTC_GC_STRING 8
1349 #define wxSTC_GC_OPERATOR 9
1351 /// Lexical states for SCLEX_SPECMAN
1352 #define wxSTC_SN_DEFAULT 0
1353 #define wxSTC_SN_CODE 1
1354 #define wxSTC_SN_COMMENTLINE 2
1355 #define wxSTC_SN_COMMENTLINEBANG 3
1356 #define wxSTC_SN_NUMBER 4
1357 #define wxSTC_SN_WORD 5
1358 #define wxSTC_SN_STRING 6
1359 #define wxSTC_SN_WORD2 7
1360 #define wxSTC_SN_WORD3 8
1361 #define wxSTC_SN_PREPROCESSOR 9
1362 #define wxSTC_SN_OPERATOR 10
1363 #define wxSTC_SN_IDENTIFIER 11
1364 #define wxSTC_SN_STRINGEOL 12
1365 #define wxSTC_SN_REGEXTAG 13
1366 #define wxSTC_SN_SIGNAL 14
1367 #define wxSTC_SN_USER 19
1369 /// Lexical states for SCLEX_AU3
1370 #define wxSTC_AU3_DEFAULT 0
1371 #define wxSTC_AU3_COMMENT 1
1372 #define wxSTC_AU3_COMMENTBLOCK 2
1373 #define wxSTC_AU3_NUMBER 3
1374 #define wxSTC_AU3_FUNCTION 4
1375 #define wxSTC_AU3_KEYWORD 5
1376 #define wxSTC_AU3_MACRO 6
1377 #define wxSTC_AU3_STRING 7
1378 #define wxSTC_AU3_OPERATOR 8
1379 #define wxSTC_AU3_VARIABLE 9
1380 #define wxSTC_AU3_SENT 10
1381 #define wxSTC_AU3_PREPROCESSOR 11
1382 #define wxSTC_AU3_SPECIAL 12
1383 #define wxSTC_AU3_EXPAND 13
1384 #define wxSTC_AU3_COMOBJ 14
1385 #define wxSTC_AU3_UDF 15
1387 /// Lexical states for SCLEX_APDL
1388 #define wxSTC_APDL_DEFAULT 0
1389 #define wxSTC_APDL_COMMENT 1
1390 #define wxSTC_APDL_COMMENTBLOCK 2
1391 #define wxSTC_APDL_NUMBER 3
1392 #define wxSTC_APDL_STRING 4
1393 #define wxSTC_APDL_OPERATOR 5
1394 #define wxSTC_APDL_WORD 6
1395 #define wxSTC_APDL_PROCESSOR 7
1396 #define wxSTC_APDL_COMMAND 8
1397 #define wxSTC_APDL_SLASHCOMMAND 9
1398 #define wxSTC_APDL_STARCOMMAND 10
1399 #define wxSTC_APDL_ARGUMENT 11
1400 #define wxSTC_APDL_FUNCTION 12
1402 /// Lexical states for SCLEX_BASH
1403 #define wxSTC_SH_DEFAULT 0
1404 #define wxSTC_SH_ERROR 1
1405 #define wxSTC_SH_COMMENTLINE 2
1406 #define wxSTC_SH_NUMBER 3
1407 #define wxSTC_SH_WORD 4
1408 #define wxSTC_SH_STRING 5
1409 #define wxSTC_SH_CHARACTER 6
1410 #define wxSTC_SH_OPERATOR 7
1411 #define wxSTC_SH_IDENTIFIER 8
1412 #define wxSTC_SH_SCALAR 9
1413 #define wxSTC_SH_PARAM 10
1414 #define wxSTC_SH_BACKTICKS 11
1415 #define wxSTC_SH_HERE_DELIM 12
1416 #define wxSTC_SH_HERE_Q 13
1418 /// Lexical states for SCLEX_ASN1
1419 #define wxSTC_ASN1_DEFAULT 0
1420 #define wxSTC_ASN1_COMMENT 1
1421 #define wxSTC_ASN1_IDENTIFIER 2
1422 #define wxSTC_ASN1_STRING 3
1423 #define wxSTC_ASN1_OID 4
1424 #define wxSTC_ASN1_SCALAR 5
1425 #define wxSTC_ASN1_KEYWORD 6
1426 #define wxSTC_ASN1_ATTRIBUTE 7
1427 #define wxSTC_ASN1_DESCRIPTOR 8
1428 #define wxSTC_ASN1_TYPE 9
1429 #define wxSTC_ASN1_OPERATOR 10
1431 /// Lexical states for SCLEX_VHDL
1432 #define wxSTC_VHDL_DEFAULT 0
1433 #define wxSTC_VHDL_COMMENT 1
1434 #define wxSTC_VHDL_COMMENTLINEBANG 2
1435 #define wxSTC_VHDL_NUMBER 3
1436 #define wxSTC_VHDL_STRING 4
1437 #define wxSTC_VHDL_OPERATOR 5
1438 #define wxSTC_VHDL_IDENTIFIER 6
1439 #define wxSTC_VHDL_STRINGEOL 7
1440 #define wxSTC_VHDL_KEYWORD 8
1441 #define wxSTC_VHDL_STDOPERATOR 9
1442 #define wxSTC_VHDL_ATTRIBUTE 10
1443 #define wxSTC_VHDL_STDFUNCTION 11
1444 #define wxSTC_VHDL_STDPACKAGE 12
1445 #define wxSTC_VHDL_STDTYPE 13
1446 #define wxSTC_VHDL_USERWORD 14
1448 /// Lexical states for SCLEX_CAML
1449 #define wxSTC_CAML_DEFAULT 0
1450 #define wxSTC_CAML_IDENTIFIER 1
1451 #define wxSTC_CAML_TAGNAME 2
1452 #define wxSTC_CAML_KEYWORD 3
1453 #define wxSTC_CAML_KEYWORD2 4
1454 #define wxSTC_CAML_KEYWORD3 5
1455 #define wxSTC_CAML_LINENUM 6
1456 #define wxSTC_CAML_OPERATOR 7
1457 #define wxSTC_CAML_NUMBER 8
1458 #define wxSTC_CAML_CHAR 9
1459 #define wxSTC_CAML_WHITE 10
1460 #define wxSTC_CAML_STRING 11
1461 #define wxSTC_CAML_COMMENT 12
1462 #define wxSTC_CAML_COMMENT1 13
1463 #define wxSTC_CAML_COMMENT2 14
1464 #define wxSTC_CAML_COMMENT3 15
1466 /// Lexical states for SCLEX_HASKELL
1467 #define wxSTC_HA_DEFAULT 0
1468 #define wxSTC_HA_IDENTIFIER 1
1469 #define wxSTC_HA_KEYWORD 2
1470 #define wxSTC_HA_NUMBER 3
1471 #define wxSTC_HA_STRING 4
1472 #define wxSTC_HA_CHARACTER 5
1473 #define wxSTC_HA_CLASS 6
1474 #define wxSTC_HA_MODULE 7
1475 #define wxSTC_HA_CAPITAL 8
1476 #define wxSTC_HA_DATA 9
1477 #define wxSTC_HA_IMPORT 10
1478 #define wxSTC_HA_OPERATOR 11
1479 #define wxSTC_HA_INSTANCE 12
1480 #define wxSTC_HA_COMMENTLINE 13
1481 #define wxSTC_HA_COMMENTBLOCK 14
1482 #define wxSTC_HA_COMMENTBLOCK2 15
1483 #define wxSTC_HA_COMMENTBLOCK3 16
1485 /// Lexical states of SCLEX_TADS3
1486 #define wxSTC_T3_DEFAULT 0
1487 #define wxSTC_T3_X_DEFAULT 1
1488 #define wxSTC_T3_PREPROCESSOR 2
1489 #define wxSTC_T3_BLOCK_COMMENT 3
1490 #define wxSTC_T3_LINE_COMMENT 4
1491 #define wxSTC_T3_OPERATOR 5
1492 #define wxSTC_T3_KEYWORD 6
1493 #define wxSTC_T3_NUMBER 7
1494 #define wxSTC_T3_IDENTIFIER 8
1495 #define wxSTC_T3_S_STRING 9
1496 #define wxSTC_T3_D_STRING 10
1497 #define wxSTC_T3_X_STRING 11
1498 #define wxSTC_T3_LIB_DIRECTIVE 12
1499 #define wxSTC_T3_MSG_PARAM 13
1500 #define wxSTC_T3_HTML_TAG 14
1501 #define wxSTC_T3_HTML_DEFAULT 15
1502 #define wxSTC_T3_HTML_STRING 16
1503 #define wxSTC_T3_USER1 17
1504 #define wxSTC_T3_USER2 18
1505 #define wxSTC_T3_USER3 19
1506 #define wxSTC_T3_BRACE 20
1508 /// Lexical states for SCLEX_REBOL
1509 #define wxSTC_REBOL_DEFAULT 0
1510 #define wxSTC_REBOL_COMMENTLINE 1
1511 #define wxSTC_REBOL_COMMENTBLOCK 2
1512 #define wxSTC_REBOL_PREFACE 3
1513 #define wxSTC_REBOL_OPERATOR 4
1514 #define wxSTC_REBOL_CHARACTER 5
1515 #define wxSTC_REBOL_QUOTEDSTRING 6
1516 #define wxSTC_REBOL_BRACEDSTRING 7
1517 #define wxSTC_REBOL_NUMBER 8
1518 #define wxSTC_REBOL_PAIR 9
1519 #define wxSTC_REBOL_TUPLE 10
1520 #define wxSTC_REBOL_BINARY 11
1521 #define wxSTC_REBOL_MONEY 12
1522 #define wxSTC_REBOL_ISSUE 13
1523 #define wxSTC_REBOL_TAG 14
1524 #define wxSTC_REBOL_FILE 15
1525 #define wxSTC_REBOL_EMAIL 16
1526 #define wxSTC_REBOL_URL 17
1527 #define wxSTC_REBOL_DATE 18
1528 #define wxSTC_REBOL_TIME 19
1529 #define wxSTC_REBOL_IDENTIFIER 20
1530 #define wxSTC_REBOL_WORD 21
1531 #define wxSTC_REBOL_WORD2 22
1532 #define wxSTC_REBOL_WORD3 23
1533 #define wxSTC_REBOL_WORD4 24
1534 #define wxSTC_REBOL_WORD5 25
1535 #define wxSTC_REBOL_WORD6 26
1536 #define wxSTC_REBOL_WORD7 27
1537 #define wxSTC_REBOL_WORD8 28
1539 /// Lexical states for SCLEX_SQL
1540 #define wxSTC_SQL_DEFAULT 0
1541 #define wxSTC_SQL_COMMENT 1
1542 #define wxSTC_SQL_COMMENTLINE 2
1543 #define wxSTC_SQL_COMMENTDOC 3
1544 #define wxSTC_SQL_NUMBER 4
1545 #define wxSTC_SQL_WORD 5
1546 #define wxSTC_SQL_STRING 6
1547 #define wxSTC_SQL_CHARACTER 7
1548 #define wxSTC_SQL_SQLPLUS 8
1549 #define wxSTC_SQL_SQLPLUS_PROMPT 9
1550 #define wxSTC_SQL_OPERATOR 10
1551 #define wxSTC_SQL_IDENTIFIER 11
1552 #define wxSTC_SQL_SQLPLUS_COMMENT 13
1553 #define wxSTC_SQL_COMMENTLINEDOC 15
1554 #define wxSTC_SQL_WORD2 16
1555 #define wxSTC_SQL_COMMENTDOCKEYWORD 17
1556 #define wxSTC_SQL_COMMENTDOCKEYWORDERROR 18
1557 #define wxSTC_SQL_USER1 19
1558 #define wxSTC_SQL_USER2 20
1559 #define wxSTC_SQL_USER3 21
1560 #define wxSTC_SQL_USER4 22
1561 #define wxSTC_SQL_QUOTEDIDENTIFIER 23
1563 /// Lexical states for SCLEX_SMALLTALK
1564 #define wxSTC_ST_DEFAULT 0
1565 #define wxSTC_ST_STRING 1
1566 #define wxSTC_ST_NUMBER 2
1567 #define wxSTC_ST_COMMENT 3
1568 #define wxSTC_ST_SYMBOL 4
1569 #define wxSTC_ST_BINARY 5
1570 #define wxSTC_ST_BOOL 6
1571 #define wxSTC_ST_SELF 7
1572 #define wxSTC_ST_SUPER 8
1573 #define wxSTC_ST_NIL 9
1574 #define wxSTC_ST_GLOBAL 10
1575 #define wxSTC_ST_RETURN 11
1576 #define wxSTC_ST_SPECIAL 12
1577 #define wxSTC_ST_KWSEND 13
1578 #define wxSTC_ST_ASSIGN 14
1579 #define wxSTC_ST_CHARACTER 15
1580 #define wxSTC_ST_SPEC_SEL 16
1582 /// Lexical states for SCLEX_FLAGSHIP (clipper)
1583 #define wxSTC_FS_DEFAULT 0
1584 #define wxSTC_FS_COMMENT 1
1585 #define wxSTC_FS_COMMENTLINE 2
1586 #define wxSTC_FS_COMMENTDOC 3
1587 #define wxSTC_FS_COMMENTLINEDOC 4
1588 #define wxSTC_FS_COMMENTDOCKEYWORD 5
1589 #define wxSTC_FS_COMMENTDOCKEYWORDERROR 6
1590 #define wxSTC_FS_KEYWORD 7
1591 #define wxSTC_FS_KEYWORD2 8
1592 #define wxSTC_FS_KEYWORD3 9
1593 #define wxSTC_FS_KEYWORD4 10
1594 #define wxSTC_FS_NUMBER 11
1595 #define wxSTC_FS_STRING 12
1596 #define wxSTC_FS_PREPROCESSOR 13
1597 #define wxSTC_FS_OPERATOR 14
1598 #define wxSTC_FS_IDENTIFIER 15
1599 #define wxSTC_FS_DATE 16
1600 #define wxSTC_FS_STRINGEOL 17
1601 #define wxSTC_FS_CONSTANT 18
1602 #define wxSTC_FS_WORDOPERATOR 19
1603 #define wxSTC_FS_DISABLEDCODE 20
1604 #define wxSTC_FS_DEFAULT_C 21
1605 #define wxSTC_FS_COMMENTDOC_C 22
1606 #define wxSTC_FS_COMMENTLINEDOC_C 23
1607 #define wxSTC_FS_KEYWORD_C 24
1608 #define wxSTC_FS_KEYWORD2_C 25
1609 #define wxSTC_FS_NUMBER_C 26
1610 #define wxSTC_FS_STRING_C 27
1611 #define wxSTC_FS_PREPROCESSOR_C 28
1612 #define wxSTC_FS_OPERATOR_C 29
1613 #define wxSTC_FS_IDENTIFIER_C 30
1614 #define wxSTC_FS_STRINGEOL_C 31
1616 /// Lexical states for SCLEX_CSOUND
1617 #define wxSTC_CSOUND_DEFAULT 0
1618 #define wxSTC_CSOUND_COMMENT 1
1619 #define wxSTC_CSOUND_NUMBER 2
1620 #define wxSTC_CSOUND_OPERATOR 3
1621 #define wxSTC_CSOUND_INSTR 4
1622 #define wxSTC_CSOUND_IDENTIFIER 5
1623 #define wxSTC_CSOUND_OPCODE 6
1624 #define wxSTC_CSOUND_HEADERSTMT 7
1625 #define wxSTC_CSOUND_USERKEYWORD 8
1626 #define wxSTC_CSOUND_COMMENTBLOCK 9
1627 #define wxSTC_CSOUND_PARAM 10
1628 #define wxSTC_CSOUND_ARATE_VAR 11
1629 #define wxSTC_CSOUND_KRATE_VAR 12
1630 #define wxSTC_CSOUND_IRATE_VAR 13
1631 #define wxSTC_CSOUND_GLOBAL_VAR 14
1632 #define wxSTC_CSOUND_STRINGEOL 15
1634 /// Lexical states for SCLEX_INNOSETUP
1635 #define wxSTC_INNO_DEFAULT 0
1636 #define wxSTC_INNO_COMMENT 1
1637 #define wxSTC_INNO_KEYWORD 2
1638 #define wxSTC_INNO_PARAMETER 3
1639 #define wxSTC_INNO_SECTION 4
1640 #define wxSTC_INNO_PREPROC 5
1641 #define wxSTC_INNO_INLINE_EXPANSION 6
1642 #define wxSTC_INNO_COMMENT_PASCAL 7
1643 #define wxSTC_INNO_KEYWORD_PASCAL 8
1644 #define wxSTC_INNO_KEYWORD_USER 9
1645 #define wxSTC_INNO_STRING_DOUBLE 10
1646 #define wxSTC_INNO_STRING_SINGLE 11
1647 #define wxSTC_INNO_IDENTIFIER 12
1649 /// Lexical states for SCLEX_OPAL
1650 #define wxSTC_OPAL_SPACE 0
1651 #define wxSTC_OPAL_COMMENT_BLOCK 1
1652 #define wxSTC_OPAL_COMMENT_LINE 2
1653 #define wxSTC_OPAL_INTEGER 3
1654 #define wxSTC_OPAL_KEYWORD 4
1655 #define wxSTC_OPAL_SORT 5
1656 #define wxSTC_OPAL_STRING 6
1657 #define wxSTC_OPAL_PAR 7
1658 #define wxSTC_OPAL_BOOL_CONST 8
1659 #define wxSTC_OPAL_DEFAULT 32
1661 /// Lexical states for SCLEX_SPICE
1662 #define wxSTC_SPICE_DEFAULT 0
1663 #define wxSTC_SPICE_IDENTIFIER 1
1664 #define wxSTC_SPICE_KEYWORD 2
1665 #define wxSTC_SPICE_KEYWORD2 3
1666 #define wxSTC_SPICE_KEYWORD3 4
1667 #define wxSTC_SPICE_NUMBER 5
1668 #define wxSTC_SPICE_DELIMITER 6
1669 #define wxSTC_SPICE_VALUE 7
1670 #define wxSTC_SPICE_COMMENTLINE 8
1672 /// Lexical states for SCLEX_CMAKE
1673 #define wxSTC_CMAKE_DEFAULT 0
1674 #define wxSTC_CMAKE_COMMENT 1
1675 #define wxSTC_CMAKE_STRINGDQ 2
1676 #define wxSTC_CMAKE_STRINGLQ 3
1677 #define wxSTC_CMAKE_STRINGRQ 4
1678 #define wxSTC_CMAKE_COMMANDS 5
1679 #define wxSTC_CMAKE_PARAMETERS 6
1680 #define wxSTC_CMAKE_VARIABLE 7
1681 #define wxSTC_CMAKE_USERDEFINED 8
1682 #define wxSTC_CMAKE_WHILEDEF 9
1683 #define wxSTC_CMAKE_FOREACHDEF 10
1684 #define wxSTC_CMAKE_IFDEFINEDEF 11
1685 #define wxSTC_CMAKE_MACRODEF 12
1686 #define wxSTC_CMAKE_STRINGVAR 13
1687 #define wxSTC_CMAKE_NUMBER 14
1689 /// Lexical states for SCLEX_GAP
1690 #define wxSTC_GAP_DEFAULT 0
1691 #define wxSTC_GAP_IDENTIFIER 1
1692 #define wxSTC_GAP_KEYWORD 2
1693 #define wxSTC_GAP_KEYWORD2 3
1694 #define wxSTC_GAP_KEYWORD3 4
1695 #define wxSTC_GAP_KEYWORD4 5
1696 #define wxSTC_GAP_STRING 6
1697 #define wxSTC_GAP_CHAR 7
1698 #define wxSTC_GAP_OPERATOR 8
1699 #define wxSTC_GAP_COMMENT 9
1700 #define wxSTC_GAP_NUMBER 10
1701 #define wxSTC_GAP_STRINGEOL 11
1703 /// Lexical state for SCLEX_PLM
1704 #define wxSTC_PLM_DEFAULT 0
1705 #define wxSTC_PLM_COMMENT 1
1706 #define wxSTC_PLM_STRING 2
1707 #define wxSTC_PLM_NUMBER 3
1708 #define wxSTC_PLM_IDENTIFIER 4
1709 #define wxSTC_PLM_OPERATOR 5
1710 #define wxSTC_PLM_CONTROL 6
1711 #define wxSTC_PLM_KEYWORD 7
1713 /// Lexical state for SCLEX_PROGRESS
1714 #define wxSTC_4GL_DEFAULT 0
1715 #define wxSTC_4GL_NUMBER 1
1716 #define wxSTC_4GL_WORD 2
1717 #define wxSTC_4GL_STRING 3
1718 #define wxSTC_4GL_CHARACTER 4
1719 #define wxSTC_4GL_PREPROCESSOR 5
1720 #define wxSTC_4GL_OPERATOR 6
1721 #define wxSTC_4GL_IDENTIFIER 7
1722 #define wxSTC_4GL_BLOCK 8
1723 #define wxSTC_4GL_END 9
1724 #define wxSTC_4GL_COMMENT1 10
1725 #define wxSTC_4GL_COMMENT2 11
1726 #define wxSTC_4GL_COMMENT3 12
1727 #define wxSTC_4GL_COMMENT4 13
1728 #define wxSTC_4GL_COMMENT5 14
1729 #define wxSTC_4GL_COMMENT6 15
1730 #define wxSTC_4GL_DEFAULT_ 16
1731 #define wxSTC_4GL_NUMBER_ 17
1732 #define wxSTC_4GL_WORD_ 18
1733 #define wxSTC_4GL_STRING_ 19
1734 #define wxSTC_4GL_CHARACTER_ 20
1735 #define wxSTC_4GL_PREPROCESSOR_ 21
1736 #define wxSTC_4GL_OPERATOR_ 22
1737 #define wxSTC_4GL_IDENTIFIER_ 23
1738 #define wxSTC_4GL_BLOCK_ 24
1739 #define wxSTC_4GL_END_ 25
1740 #define wxSTC_4GL_COMMENT1_ 26
1741 #define wxSTC_4GL_COMMENT2_ 27
1742 #define wxSTC_4GL_COMMENT3_ 28
1743 #define wxSTC_4GL_COMMENT4_ 29
1744 #define wxSTC_4GL_COMMENT5_ 30
1745 #define wxSTC_4GL_COMMENT6_ 31
1747 /// Lexical states for SCLEX_ABAQUS
1748 #define wxSTC_ABAQUS_DEFAULT 0
1749 #define wxSTC_ABAQUS_COMMENT 1
1750 #define wxSTC_ABAQUS_COMMENTBLOCK 2
1751 #define wxSTC_ABAQUS_NUMBER 3
1752 #define wxSTC_ABAQUS_STRING 4
1753 #define wxSTC_ABAQUS_OPERATOR 5
1754 #define wxSTC_ABAQUS_WORD 6
1755 #define wxSTC_ABAQUS_PROCESSOR 7
1756 #define wxSTC_ABAQUS_COMMAND 8
1757 #define wxSTC_ABAQUS_SLASHCOMMAND 9
1758 #define wxSTC_ABAQUS_STARCOMMAND 10
1759 #define wxSTC_ABAQUS_ARGUMENT 11
1760 #define wxSTC_ABAQUS_FUNCTION 12
1762 /// Lexical states for SCLEX_ASYMPTOTE
1763 #define wxSTC_ASY_DEFAULT 0
1764 #define wxSTC_ASY_COMMENT 1
1765 #define wxSTC_ASY_COMMENTLINE 2
1766 #define wxSTC_ASY_NUMBER 3
1767 #define wxSTC_ASY_WORD 4
1768 #define wxSTC_ASY_STRING 5
1769 #define wxSTC_ASY_CHARACTER 6
1770 #define wxSTC_ASY_OPERATOR 7
1771 #define wxSTC_ASY_IDENTIFIER 8
1772 #define wxSTC_ASY_STRINGEOL 9
1773 #define wxSTC_ASY_COMMENTLINEDOC 10
1774 #define wxSTC_ASY_WORD2 11
1776 /// Lexical states for SCLEX_R
1777 #define wxSTC_R_DEFAULT 0
1778 #define wxSTC_R_COMMENT 1
1779 #define wxSTC_R_KWORD 2
1780 #define wxSTC_R_BASEKWORD 3
1781 #define wxSTC_R_OTHERKWORD 4
1782 #define wxSTC_R_NUMBER 5
1783 #define wxSTC_R_STRING 6
1784 #define wxSTC_R_STRING2 7
1785 #define wxSTC_R_OPERATOR 8
1786 #define wxSTC_R_IDENTIFIER 9
1787 #define wxSTC_R_INFIX 10
1788 #define wxSTC_R_INFIXEOL 11
1790 /// Lexical state for SCLEX_MAGIKSF
1791 #define wxSTC_MAGIK_DEFAULT 0
1792 #define wxSTC_MAGIK_COMMENT 1
1793 #define wxSTC_MAGIK_HYPER_COMMENT 16
1794 #define wxSTC_MAGIK_STRING 2
1795 #define wxSTC_MAGIK_CHARACTER 3
1796 #define wxSTC_MAGIK_NUMBER 4
1797 #define wxSTC_MAGIK_IDENTIFIER 5
1798 #define wxSTC_MAGIK_OPERATOR 6
1799 #define wxSTC_MAGIK_FLOW 7
1800 #define wxSTC_MAGIK_CONTAINER 8
1801 #define wxSTC_MAGIK_BRACKET_BLOCK 9
1802 #define wxSTC_MAGIK_BRACE_BLOCK 10
1803 #define wxSTC_MAGIK_SQBRACKET_BLOCK 11
1804 #define wxSTC_MAGIK_UNKNOWN_KEYWORD 12
1805 #define wxSTC_MAGIK_KEYWORD 13
1806 #define wxSTC_MAGIK_PRAGMA 14
1807 #define wxSTC_MAGIK_SYMBOL 15
1809 /// Lexical state for SCLEX_POWERSHELL
1810 #define wxSTC_POWERSHELL_DEFAULT 0
1811 #define wxSTC_POWERSHELL_COMMENT 1
1812 #define wxSTC_POWERSHELL_STRING 2
1813 #define wxSTC_POWERSHELL_CHARACTER 3
1814 #define wxSTC_POWERSHELL_NUMBER 4
1815 #define wxSTC_POWERSHELL_VARIABLE 5
1816 #define wxSTC_POWERSHELL_OPERATOR 6
1817 #define wxSTC_POWERSHELL_IDENTIFIER 7
1818 #define wxSTC_POWERSHELL_KEYWORD 8
1819 #define wxSTC_POWERSHELL_CMDLET 9
1820 #define wxSTC_POWERSHELL_ALIAS 10
1821 #define wxSTC_POWERSHELL_FUNCTION 11
1822 #define wxSTC_POWERSHELL_USER1 12
1823 #define wxSTC_POWERSHELL_COMMENTSTREAM 13
1825 /// Lexical state for SCLEX_MYSQL
1826 #define wxSTC_MYSQL_DEFAULT 0
1827 #define wxSTC_MYSQL_COMMENT 1
1828 #define wxSTC_MYSQL_COMMENTLINE 2
1829 #define wxSTC_MYSQL_VARIABLE 3
1830 #define wxSTC_MYSQL_SYSTEMVARIABLE 4
1831 #define wxSTC_MYSQL_KNOWNSYSTEMVARIABLE 5
1832 #define wxSTC_MYSQL_NUMBER 6
1833 #define wxSTC_MYSQL_MAJORKEYWORD 7
1834 #define wxSTC_MYSQL_KEYWORD 8
1835 #define wxSTC_MYSQL_DATABASEOBJECT 9
1836 #define wxSTC_MYSQL_PROCEDUREKEYWORD 10
1837 #define wxSTC_MYSQL_STRING 11
1838 #define wxSTC_MYSQL_SQSTRING 12
1839 #define wxSTC_MYSQL_DQSTRING 13
1840 #define wxSTC_MYSQL_OPERATOR 14
1841 #define wxSTC_MYSQL_FUNCTION 15
1842 #define wxSTC_MYSQL_IDENTIFIER 16
1843 #define wxSTC_MYSQL_QUOTEDIDENTIFIER 17
1844 #define wxSTC_MYSQL_USER1 18
1845 #define wxSTC_MYSQL_USER2 19
1846 #define wxSTC_MYSQL_USER3 20
1847 #define wxSTC_MYSQL_HIDDENCOMMAND 21
1849 /// Lexical state for SCLEX_PO
1850 #define wxSTC_PO_DEFAULT 0
1851 #define wxSTC_PO_COMMENT 1
1852 #define wxSTC_PO_MSGID 2
1853 #define wxSTC_PO_MSGID_TEXT 3
1854 #define wxSTC_PO_MSGSTR 4
1855 #define wxSTC_PO_MSGSTR_TEXT 5
1856 #define wxSTC_PO_MSGCTXT 6
1857 #define wxSTC_PO_MSGCTXT_TEXT 7
1858 #define wxSTC_PO_FUZZY 8
1860 /// Lexical states for SCLEX_PASCAL
1861 #define wxSTC_PAS_DEFAULT 0
1862 #define wxSTC_PAS_IDENTIFIER 1
1863 #define wxSTC_PAS_COMMENT 2
1864 #define wxSTC_PAS_COMMENT2 3
1865 #define wxSTC_PAS_COMMENTLINE 4
1866 #define wxSTC_PAS_PREPROCESSOR 5
1867 #define wxSTC_PAS_PREPROCESSOR2 6
1868 #define wxSTC_PAS_NUMBER 7
1869 #define wxSTC_PAS_HEXNUMBER 8
1870 #define wxSTC_PAS_WORD 9
1871 #define wxSTC_PAS_STRING 10
1872 #define wxSTC_PAS_STRINGEOL 11
1873 #define wxSTC_PAS_CHARACTER 12
1874 #define wxSTC_PAS_OPERATOR 13
1875 #define wxSTC_PAS_ASM 14
1877 /// Lexical state for SCLEX_SORCUS
1878 #define wxSTC_SORCUS_DEFAULT 0
1879 #define wxSTC_SORCUS_COMMAND 1
1880 #define wxSTC_SORCUS_PARAMETER 2
1881 #define wxSTC_SORCUS_COMMENTLINE 3
1882 #define wxSTC_SORCUS_STRING 4
1883 #define wxSTC_SORCUS_STRINGEOL 5
1884 #define wxSTC_SORCUS_IDENTIFIER 6
1885 #define wxSTC_SORCUS_OPERATOR 7
1886 #define wxSTC_SORCUS_NUMBER 8
1887 #define wxSTC_SORCUS_CONSTANT 9
1889 /// Lexical state for SCLEX_POWERPRO
1890 #define wxSTC_POWERPRO_DEFAULT 0
1891 #define wxSTC_POWERPRO_COMMENTBLOCK 1
1892 #define wxSTC_POWERPRO_COMMENTLINE 2
1893 #define wxSTC_POWERPRO_NUMBER 3
1894 #define wxSTC_POWERPRO_WORD 4
1895 #define wxSTC_POWERPRO_WORD2 5
1896 #define wxSTC_POWERPRO_WORD3 6
1897 #define wxSTC_POWERPRO_WORD4 7
1898 #define wxSTC_POWERPRO_DOUBLEQUOTEDSTRING 8
1899 #define wxSTC_POWERPRO_SINGLEQUOTEDSTRING 9
1900 #define wxSTC_POWERPRO_LINECONTINUE 10
1901 #define wxSTC_POWERPRO_OPERATOR 11
1902 #define wxSTC_POWERPRO_IDENTIFIER 12
1903 #define wxSTC_POWERPRO_STRINGEOL 13
1904 #define wxSTC_POWERPRO_VERBATIM 14
1905 #define wxSTC_POWERPRO_ALTQUOTE 15
1906 #define wxSTC_POWERPRO_FUNCTION 16
1908 /// Lexical states for SCLEX_SML
1909 #define wxSTC_SML_DEFAULT 0
1910 #define wxSTC_SML_IDENTIFIER 1
1911 #define wxSTC_SML_TAGNAME 2
1912 #define wxSTC_SML_KEYWORD 3
1913 #define wxSTC_SML_KEYWORD2 4
1914 #define wxSTC_SML_KEYWORD3 5
1915 #define wxSTC_SML_LINENUM 6
1916 #define wxSTC_SML_OPERATOR 7
1917 #define wxSTC_SML_NUMBER 8
1918 #define wxSTC_SML_CHAR 9
1919 #define wxSTC_SML_STRING 11
1920 #define wxSTC_SML_COMMENT 12
1921 #define wxSTC_SML_COMMENT1 13
1922 #define wxSTC_SML_COMMENT2 14
1923 #define wxSTC_SML_COMMENT3 15
1925 /// Lexical state for SCLEX_MARKDOWN
1926 #define wxSTC_MARKDOWN_DEFAULT 0
1927 #define wxSTC_MARKDOWN_LINE_BEGIN 1
1928 #define wxSTC_MARKDOWN_STRONG1 2
1929 #define wxSTC_MARKDOWN_STRONG2 3
1930 #define wxSTC_MARKDOWN_EM1 4
1931 #define wxSTC_MARKDOWN_EM2 5
1932 #define wxSTC_MARKDOWN_HEADER1 6
1933 #define wxSTC_MARKDOWN_HEADER2 7
1934 #define wxSTC_MARKDOWN_HEADER3 8
1935 #define wxSTC_MARKDOWN_HEADER4 9
1936 #define wxSTC_MARKDOWN_HEADER5 10
1937 #define wxSTC_MARKDOWN_HEADER6 11
1938 #define wxSTC_MARKDOWN_PRECHAR 12
1939 #define wxSTC_MARKDOWN_ULIST_ITEM 13
1940 #define wxSTC_MARKDOWN_OLIST_ITEM 14
1941 #define wxSTC_MARKDOWN_BLOCKQUOTE 15
1942 #define wxSTC_MARKDOWN_STRIKEOUT 16
1943 #define wxSTC_MARKDOWN_HRULE 17
1944 #define wxSTC_MARKDOWN_LINK 18
1945 #define wxSTC_MARKDOWN_CODE 19
1946 #define wxSTC_MARKDOWN_CODE2 20
1947 #define wxSTC_MARKDOWN_CODEBK 21
1949 /// Lexical state for SCLEX_TXT2TAGS
1950 #define wxSTC_TXT2TAGS_DEFAULT 0
1951 #define wxSTC_TXT2TAGS_LINE_BEGIN 1
1952 #define wxSTC_TXT2TAGS_STRONG1 2
1953 #define wxSTC_TXT2TAGS_STRONG2 3
1954 #define wxSTC_TXT2TAGS_EM1 4
1955 #define wxSTC_TXT2TAGS_EM2 5
1956 #define wxSTC_TXT2TAGS_HEADER1 6
1957 #define wxSTC_TXT2TAGS_HEADER2 7
1958 #define wxSTC_TXT2TAGS_HEADER3 8
1959 #define wxSTC_TXT2TAGS_HEADER4 9
1960 #define wxSTC_TXT2TAGS_HEADER5 10
1961 #define wxSTC_TXT2TAGS_HEADER6 11
1962 #define wxSTC_TXT2TAGS_PRECHAR 12
1963 #define wxSTC_TXT2TAGS_ULIST_ITEM 13
1964 #define wxSTC_TXT2TAGS_OLIST_ITEM 14
1965 #define wxSTC_TXT2TAGS_BLOCKQUOTE 15
1966 #define wxSTC_TXT2TAGS_STRIKEOUT 16
1967 #define wxSTC_TXT2TAGS_HRULE 17
1968 #define wxSTC_TXT2TAGS_LINK 18
1969 #define wxSTC_TXT2TAGS_CODE 19
1970 #define wxSTC_TXT2TAGS_CODE2 20
1971 #define wxSTC_TXT2TAGS_CODEBK 21
1972 #define wxSTC_TXT2TAGS_COMMENT 22
1973 #define wxSTC_TXT2TAGS_OPTION 23
1974 #define wxSTC_TXT2TAGS_PREPROC 24
1975 #define wxSTC_TXT2TAGS_POSTPROC 25
1977 /// Lexical states for SCLEX_A68K
1978 #define wxSTC_A68K_DEFAULT 0
1979 #define wxSTC_A68K_COMMENT 1
1980 #define wxSTC_A68K_NUMBER_DEC 2
1981 #define wxSTC_A68K_NUMBER_BIN 3
1982 #define wxSTC_A68K_NUMBER_HEX 4
1983 #define wxSTC_A68K_STRING1 5
1984 #define wxSTC_A68K_OPERATOR 6
1985 #define wxSTC_A68K_CPUINSTRUCTION 7
1986 #define wxSTC_A68K_EXTINSTRUCTION 8
1987 #define wxSTC_A68K_REGISTER 9
1988 #define wxSTC_A68K_DIRECTIVE 10
1989 #define wxSTC_A68K_MACRO_ARG 11
1990 #define wxSTC_A68K_LABEL 12
1991 #define wxSTC_A68K_STRING2 13
1992 #define wxSTC_A68K_IDENTIFIER 14
1993 #define wxSTC_A68K_MACRO_DECLARATION 15
1994 #define wxSTC_A68K_COMMENT_WORD 16
1995 #define wxSTC_A68K_COMMENT_SPECIAL 17
1996 #define wxSTC_A68K_COMMENT_DOXYGEN 18
1998 /// Lexical states for SCLEX_MODULA
1999 #define wxSTC_MODULA_DEFAULT 0
2000 #define wxSTC_MODULA_COMMENT 1
2001 #define wxSTC_MODULA_DOXYCOMM 2
2002 #define wxSTC_MODULA_DOXYKEY 3
2003 #define wxSTC_MODULA_KEYWORD 4
2004 #define wxSTC_MODULA_RESERVED 5
2005 #define wxSTC_MODULA_NUMBER 6
2006 #define wxSTC_MODULA_BASENUM 7
2007 #define wxSTC_MODULA_FLOAT 8
2008 #define wxSTC_MODULA_STRING 9
2009 #define wxSTC_MODULA_STRSPEC 10
2010 #define wxSTC_MODULA_CHAR 11
2011 #define wxSTC_MODULA_CHARSPEC 12
2012 #define wxSTC_MODULA_PROC 13
2013 #define wxSTC_MODULA_PRAGMA 14
2014 #define wxSTC_MODULA_PRGKEY 15
2015 #define wxSTC_MODULA_OPERATOR 16
2016 #define wxSTC_MODULA_BADSTR 17
2018 /// Lexical states for SCLEX_COFFEESCRIPT
2019 #define wxSTC_COFFEESCRIPT_DEFAULT 0
2020 #define wxSTC_COFFEESCRIPT_COMMENT 1
2021 #define wxSTC_COFFEESCRIPT_COMMENTLINE 2
2022 #define wxSTC_COFFEESCRIPT_COMMENTDOC 3
2023 #define wxSTC_COFFEESCRIPT_NUMBER 4
2024 #define wxSTC_COFFEESCRIPT_WORD 5
2025 #define wxSTC_COFFEESCRIPT_STRING 6
2026 #define wxSTC_COFFEESCRIPT_CHARACTER 7
2027 #define wxSTC_COFFEESCRIPT_UUID 8
2028 #define wxSTC_COFFEESCRIPT_PREPROCESSOR 9
2029 #define wxSTC_COFFEESCRIPT_OPERATOR 10
2030 #define wxSTC_COFFEESCRIPT_IDENTIFIER 11
2031 #define wxSTC_COFFEESCRIPT_STRINGEOL 12
2032 #define wxSTC_COFFEESCRIPT_VERBATIM 13
2033 #define wxSTC_COFFEESCRIPT_REGEX 14
2034 #define wxSTC_COFFEESCRIPT_COMMENTLINEDOC 15
2035 #define wxSTC_COFFEESCRIPT_WORD2 16
2036 #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORD 17
2037 #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORDERROR 18
2038 #define wxSTC_COFFEESCRIPT_GLOBALCLASS 19
2039 #define wxSTC_COFFEESCRIPT_STRINGRAW 20
2040 #define wxSTC_COFFEESCRIPT_TRIPLEVERBATIM 21
2041 #define wxSTC_COFFEESCRIPT_HASHQUOTEDSTRING 22
2042 #define wxSTC_COFFEESCRIPT_COMMENTBLOCK 22
2043 #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX 23
2044 #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX_COMMENT 24
2046 /// Lexical states for SCLEX_AVS
2047 #define wxSTC_AVS_DEFAULT 0
2048 #define wxSTC_AVS_COMMENTBLOCK 1
2049 #define wxSTC_AVS_COMMENTBLOCKN 2
2050 #define wxSTC_AVS_COMMENTLINE 3
2051 #define wxSTC_AVS_NUMBER 4
2052 #define wxSTC_AVS_OPERATOR 5
2053 #define wxSTC_AVS_IDENTIFIER 6
2054 #define wxSTC_AVS_STRING 7
2055 #define wxSTC_AVS_TRIPLESTRING 8
2056 #define wxSTC_AVS_KEYWORD 9
2057 #define wxSTC_AVS_FILTER 10
2058 #define wxSTC_AVS_PLUGIN 11
2059 #define wxSTC_AVS_FUNCTION 12
2060 #define wxSTC_AVS_CLIPPROP 13
2061 #define wxSTC_AVS_USERDFN 14
2063 /// Lexical states for SCLEX_ECL
2064 #define wxSTC_ECL_DEFAULT 0
2065 #define wxSTC_ECL_COMMENT 1
2066 #define wxSTC_ECL_COMMENTLINE 2
2067 #define wxSTC_ECL_NUMBER 3
2068 #define wxSTC_ECL_STRING 4
2069 #define wxSTC_ECL_WORD0 5
2070 #define wxSTC_ECL_OPERATOR 6
2071 #define wxSTC_ECL_CHARACTER 7
2072 #define wxSTC_ECL_UUID 8
2073 #define wxSTC_ECL_PREPROCESSOR 9
2074 #define wxSTC_ECL_UNKNOWN 10
2075 #define wxSTC_ECL_IDENTIFIER 11
2076 #define wxSTC_ECL_STRINGEOL 12
2077 #define wxSTC_ECL_VERBATIM 13
2078 #define wxSTC_ECL_REGEX 14
2079 #define wxSTC_ECL_COMMENTLINEDOC 15
2080 #define wxSTC_ECL_WORD1 16
2081 #define wxSTC_ECL_COMMENTDOCKEYWORD 17
2082 #define wxSTC_ECL_COMMENTDOCKEYWORDERROR 18
2083 #define wxSTC_ECL_WORD2 19
2084 #define wxSTC_ECL_WORD3 20
2085 #define wxSTC_ECL_WORD4 21
2086 #define wxSTC_ECL_WORD5 22
2087 #define wxSTC_ECL_COMMENTDOC 23
2088 #define wxSTC_ECL_ADDED 24
2089 #define wxSTC_ECL_DELETED 25
2090 #define wxSTC_ECL_CHANGED 26
2091 #define wxSTC_ECL_MOVED 27
2093 /// Lexical states for SCLEX_OSCRIPT
2094 #define wxSTC_OSCRIPT_DEFAULT 0
2095 #define wxSTC_OSCRIPT_LINE_COMMENT 1
2096 #define wxSTC_OSCRIPT_BLOCK_COMMENT 2
2097 #define wxSTC_OSCRIPT_DOC_COMMENT 3
2098 #define wxSTC_OSCRIPT_PREPROCESSOR 4
2099 #define wxSTC_OSCRIPT_NUMBER 5
2100 #define wxSTC_OSCRIPT_SINGLEQUOTE_STRING 6
2101 #define wxSTC_OSCRIPT_DOUBLEQUOTE_STRING 7
2102 #define wxSTC_OSCRIPT_CONSTANT 8
2103 #define wxSTC_OSCRIPT_IDENTIFIER 9
2104 #define wxSTC_OSCRIPT_GLOBAL 10
2105 #define wxSTC_OSCRIPT_KEYWORD 11
2106 #define wxSTC_OSCRIPT_OPERATOR 12
2107 #define wxSTC_OSCRIPT_LABEL 13
2108 #define wxSTC_OSCRIPT_TYPE 14
2109 #define wxSTC_OSCRIPT_FUNCTION 15
2110 #define wxSTC_OSCRIPT_OBJECT 16
2111 #define wxSTC_OSCRIPT_PROPERTY 17
2112 #define wxSTC_OSCRIPT_METHOD 18
2114 /// Lexical states for SCLEX_VISUALPROLOG
2115 #define wxSTC_VISUALPROLOG_DEFAULT 0
2116 #define wxSTC_VISUALPROLOG_KEY_MAJOR 1
2117 #define wxSTC_VISUALPROLOG_KEY_MINOR 2
2118 #define wxSTC_VISUALPROLOG_KEY_DIRECTIVE 3
2119 #define wxSTC_VISUALPROLOG_COMMENT_BLOCK 4
2120 #define wxSTC_VISUALPROLOG_COMMENT_LINE 5
2121 #define wxSTC_VISUALPROLOG_COMMENT_KEY 6
2122 #define wxSTC_VISUALPROLOG_COMMENT_KEY_ERROR 7
2123 #define wxSTC_VISUALPROLOG_IDENTIFIER 8
2124 #define wxSTC_VISUALPROLOG_VARIABLE 9
2125 #define wxSTC_VISUALPROLOG_ANONYMOUS 10
2126 #define wxSTC_VISUALPROLOG_NUMBER 11
2127 #define wxSTC_VISUALPROLOG_OPERATOR 12
2128 #define wxSTC_VISUALPROLOG_CHARACTER 13
2129 #define wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY 14
2130 #define wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR 15
2131 #define wxSTC_VISUALPROLOG_STRING 16
2132 #define wxSTC_VISUALPROLOG_STRING_ESCAPE 17
2133 #define wxSTC_VISUALPROLOG_STRING_ESCAPE_ERROR 18
2134 #define wxSTC_VISUALPROLOG_STRING_EOL_OPEN 19
2135 #define wxSTC_VISUALPROLOG_STRING_VERBATIM 20
2136 #define wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL 21
2137 #define wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL 22
2141 // Commands that can be bound to keystrokes {{{
2144 /// Redoes the next action on the undo history.
2145 #define wxSTC_CMD_REDO 2011
2147 /// Select all the text in the document.
2148 #define wxSTC_CMD_SELECTALL 2013
2150 /// Undo one action in the undo history.
2151 #define wxSTC_CMD_UNDO 2176
2153 /// Cut the selection to the clipboard.
2154 #define wxSTC_CMD_CUT 2177
2156 /// Copy the selection to the clipboard.
2157 #define wxSTC_CMD_COPY 2178
2159 /// Paste the contents of the clipboard into the document replacing the selection.
2160 #define wxSTC_CMD_PASTE 2179
2162 /// Clear the selection.
2163 #define wxSTC_CMD_CLEAR 2180
2165 /// Move caret down one line.
2166 #define wxSTC_CMD_LINEDOWN 2300
2168 /// Move caret down one line extending selection to new caret position.
2169 #define wxSTC_CMD_LINEDOWNEXTEND 2301
2171 /// Move caret up one line.
2172 #define wxSTC_CMD_LINEUP 2302
2174 /// Move caret up one line extending selection to new caret position.
2175 #define wxSTC_CMD_LINEUPEXTEND 2303
2177 /// Move caret left one character.
2178 #define wxSTC_CMD_CHARLEFT 2304
2180 /// Move caret left one character extending selection to new caret position.
2181 #define wxSTC_CMD_CHARLEFTEXTEND 2305
2183 /// Move caret right one character.
2184 #define wxSTC_CMD_CHARRIGHT 2306
2186 /// Move caret right one character extending selection to new caret position.
2187 #define wxSTC_CMD_CHARRIGHTEXTEND 2307
2189 /// Move caret left one word.
2190 #define wxSTC_CMD_WORDLEFT 2308
2192 /// Move caret left one word extending selection to new caret position.
2193 #define wxSTC_CMD_WORDLEFTEXTEND 2309
2195 /// Move caret right one word.
2196 #define wxSTC_CMD_WORDRIGHT 2310
2198 /// Move caret right one word extending selection to new caret position.
2199 #define wxSTC_CMD_WORDRIGHTEXTEND 2311
2201 /// Move caret to first position on line.
2202 #define wxSTC_CMD_HOME 2312
2204 /// Move caret to first position on line extending selection to new caret position.
2205 #define wxSTC_CMD_HOMEEXTEND 2313
2207 /// Move caret to last position on line.
2208 #define wxSTC_CMD_LINEEND 2314
2210 /// Move caret to last position on line extending selection to new caret position.
2211 #define wxSTC_CMD_LINEENDEXTEND 2315
2213 /// Move caret to first position in document.
2214 #define wxSTC_CMD_DOCUMENTSTART 2316
2216 /// Move caret to first position in document extending selection to new caret position.
2217 #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
2219 /// Move caret to last position in document.
2220 #define wxSTC_CMD_DOCUMENTEND 2318
2222 /// Move caret to last position in document extending selection to new caret position.
2223 #define wxSTC_CMD_DOCUMENTENDEXTEND 2319
2225 /// Move caret one page up.
2226 #define wxSTC_CMD_PAGEUP 2320
2228 /// Move caret one page up extending selection to new caret position.
2229 #define wxSTC_CMD_PAGEUPEXTEND 2321
2231 /// Move caret one page down.
2232 #define wxSTC_CMD_PAGEDOWN 2322
2234 /// Move caret one page down extending selection to new caret position.
2235 #define wxSTC_CMD_PAGEDOWNEXTEND 2323
2237 /// Switch from insert to overtype mode or the reverse.
2238 #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
2240 /// Cancel any modes such as call tip or auto-completion list display.
2241 #define wxSTC_CMD_CANCEL 2325
2243 /// Delete the selection or if no selection, the character before the caret.
2244 #define wxSTC_CMD_DELETEBACK 2326
2246 /// If selection is empty or all on one line replace the selection with a tab character.
2247 /// If more than one line selected, indent the lines.
2248 #define wxSTC_CMD_TAB 2327
2250 /// Dedent the selected lines.
2251 #define wxSTC_CMD_BACKTAB 2328
2253 /// Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
2254 #define wxSTC_CMD_NEWLINE 2329
2256 /// Insert a Form Feed character.
2257 #define wxSTC_CMD_FORMFEED 2330
2259 /// Move caret to before first visible character on line.
2260 /// If already there move to first character on line.
2261 #define wxSTC_CMD_VCHOME 2331
2263 /// Like VCHome but extending selection to new caret position.
2264 #define wxSTC_CMD_VCHOMEEXTEND 2332
2266 /// Magnify the displayed text by increasing the sizes by 1 point.
2267 #define wxSTC_CMD_ZOOMIN 2333
2269 /// Make the displayed text smaller by decreasing the sizes by 1 point.
2270 #define wxSTC_CMD_ZOOMOUT 2334
2272 /// Delete the word to the left of the caret.
2273 #define wxSTC_CMD_DELWORDLEFT 2335
2275 /// Delete the word to the right of the caret.
2276 #define wxSTC_CMD_DELWORDRIGHT 2336
2278 /// Delete the word to the right of the caret, but not the trailing non-word characters.
2279 #define wxSTC_CMD_DELWORDRIGHTEND 2518
2281 /// Cut the line containing the caret.
2282 #define wxSTC_CMD_LINECUT 2337
2284 /// Delete the line containing the caret.
2285 #define wxSTC_CMD_LINEDELETE 2338
2287 /// Switch the current line with the previous.
2288 #define wxSTC_CMD_LINETRANSPOSE 2339
2290 /// Duplicate the current line.
2291 #define wxSTC_CMD_LINEDUPLICATE 2404
2293 /// Transform the selection to lower case.
2294 #define wxSTC_CMD_LOWERCASE 2340
2296 /// Transform the selection to upper case.
2297 #define wxSTC_CMD_UPPERCASE 2341
2299 /// Scroll the document down, keeping the caret visible.
2300 #define wxSTC_CMD_LINESCROLLDOWN 2342
2302 /// Scroll the document up, keeping the caret visible.
2303 #define wxSTC_CMD_LINESCROLLUP 2343
2305 /// Delete the selection or if no selection, the character before the caret.
2306 /// Will not delete the character before at the start of a line.
2307 #define wxSTC_CMD_DELETEBACKNOTLINE 2344
2309 /// Move caret to first position on display line.
2310 #define wxSTC_CMD_HOMEDISPLAY 2345
2312 /// Move caret to first position on display line extending selection to
2313 /// new caret position.
2314 #define wxSTC_CMD_HOMEDISPLAYEXTEND 2346
2316 /// Move caret to last position on display line.
2317 #define wxSTC_CMD_LINEENDDISPLAY 2347
2319 /// Move caret to last position on display line extending selection to new
2321 #define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
2323 /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
2324 /// except they behave differently when word-wrap is enabled:
2325 /// They go first to the start / end of the display line, like (Home|LineEnd)Display
2326 /// The difference is that, the cursor is already at the point, it goes on to the start
2327 /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
2328 #define wxSTC_CMD_HOMEWRAP 2349
2329 #define wxSTC_CMD_HOMEWRAPEXTEND 2450
2330 #define wxSTC_CMD_LINEENDWRAP 2451
2331 #define wxSTC_CMD_LINEENDWRAPEXTEND 2452
2332 #define wxSTC_CMD_VCHOMEWRAP 2453
2333 #define wxSTC_CMD_VCHOMEWRAPEXTEND 2454
2335 /// Copy the line containing the caret.
2336 #define wxSTC_CMD_LINECOPY 2455
2338 /// Move to the previous change in capitalisation.
2339 #define wxSTC_CMD_WORDPARTLEFT 2390
2341 /// Move to the previous change in capitalisation extending selection
2342 /// to new caret position.
2343 #define wxSTC_CMD_WORDPARTLEFTEXTEND 2391
2345 /// Move to the change next in capitalisation.
2346 #define wxSTC_CMD_WORDPARTRIGHT 2392
2348 /// Move to the next change in capitalisation extending selection
2349 /// to new caret position.
2350 #define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393
2352 /// Delete back from the current position to the start of the line.
2353 #define wxSTC_CMD_DELLINELEFT 2395
2355 /// Delete forwards from the current position to the end of the line.
2356 #define wxSTC_CMD_DELLINERIGHT 2396
2358 /// Move caret between paragraphs (delimited by empty lines).
2359 #define wxSTC_CMD_PARADOWN 2413
2360 #define wxSTC_CMD_PARADOWNEXTEND 2414
2361 #define wxSTC_CMD_PARAUP 2415
2362 #define wxSTC_CMD_PARAUPEXTEND 2416
2364 /// Move caret down one line, extending rectangular selection to new caret position.
2365 #define wxSTC_CMD_LINEDOWNRECTEXTEND 2426
2367 /// Move caret up one line, extending rectangular selection to new caret position.
2368 #define wxSTC_CMD_LINEUPRECTEXTEND 2427
2370 /// Move caret left one character, extending rectangular selection to new caret position.
2371 #define wxSTC_CMD_CHARLEFTRECTEXTEND 2428
2373 /// Move caret right one character, extending rectangular selection to new caret position.
2374 #define wxSTC_CMD_CHARRIGHTRECTEXTEND 2429
2376 /// Move caret to first position on line, extending rectangular selection to new caret position.
2377 #define wxSTC_CMD_HOMERECTEXTEND 2430
2379 /// Move caret to before first visible character on line.
2380 /// If already there move to first character on line.
2381 /// In either case, extend rectangular selection to new caret position.
2382 #define wxSTC_CMD_VCHOMERECTEXTEND 2431
2384 /// Move caret to last position on line, extending rectangular selection to new caret position.
2385 #define wxSTC_CMD_LINEENDRECTEXTEND 2432
2387 /// Move caret one page up, extending rectangular selection to new caret position.
2388 #define wxSTC_CMD_PAGEUPRECTEXTEND 2433
2390 /// Move caret one page down, extending rectangular selection to new caret position.
2391 #define wxSTC_CMD_PAGEDOWNRECTEXTEND 2434
2393 /// Move caret to top of page, or one page up if already at top of page.
2394 #define wxSTC_CMD_STUTTEREDPAGEUP 2435
2396 /// Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
2397 #define wxSTC_CMD_STUTTEREDPAGEUPEXTEND 2436
2399 /// Move caret to bottom of page, or one page down if already at bottom of page.
2400 #define wxSTC_CMD_STUTTEREDPAGEDOWN 2437
2402 /// Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
2403 #define wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND 2438
2405 /// Move caret left one word, position cursor at end of word.
2406 #define wxSTC_CMD_WORDLEFTEND 2439
2408 /// Move caret left one word, position cursor at end of word, extending selection to new caret position.
2409 #define wxSTC_CMD_WORDLEFTENDEXTEND 2440
2411 /// Move caret right one word, position cursor at end of word.
2412 #define wxSTC_CMD_WORDRIGHTEND 2441
2414 /// Move caret right one word, position cursor at end of word, extending selection to new caret position.
2415 #define wxSTC_CMD_WORDRIGHTENDEXTEND 2442
2417 /// Centre current line in window.
2418 #define wxSTC_CMD_VERTICALCENTRECARET 2619
2420 /// Move the selected lines up one line, shifting the line above after the selection
2421 #define wxSTC_CMD_MOVESELECTEDLINESUP 2620
2423 /// Move the selected lines down one line, shifting the line below before the selection
2424 #define wxSTC_CMD_MOVESELECTEDLINESDOWN 2621
2426 /// Scroll to start of document.
2427 #define wxSTC_CMD_SCROLLTOSTART 2628
2429 /// Scroll to end of document.
2430 #define wxSTC_CMD_SCROLLTOEND 2629
2438 @class wxStyledTextCtrl
2440 A wxWidgets implementation of the Scintilla source code editing component.
2442 As well as features found in standard text editing components, Scintilla
2443 includes features especially useful when editing and debugging source code.
2444 These include support for syntax styling, error indicators, code completion
2447 The selection margin can contain markers like those used in debuggers to indicate
2448 breakpoints and the current line. Styling choices are more open than with many
2449 editors, allowing the use of proportional fonts, bold and italics, multiple
2450 foreground and background colours and multiple fonts.
2452 wxStyledTextCtrl is a 1 to 1 mapping of "raw" scintilla interface, whose
2453 documentation can be found in the Scintilla website (http://www.scintilla.org/).
2455 @beginEventEmissionTable{wxStyledTextEvent}
2456 @event{EVT_STC_CHANGE(id, fn)}
2458 @event{EVT_STC_STYLENEEDED(id, fn)}
2460 @event{EVT_STC_CHARADDED(id, fn)}
2462 @event{EVT_STC_SAVEPOINTREACHED(id, fn)}
2464 @event{EVT_STC_SAVEPOINTLEFT(id, fn)}
2466 @event{EVT_STC_ROMODIFYATTEMPT(id, fn)}
2468 @event{EVT_STC_KEY(id, fn)}
2470 @event{EVT_STC_DOUBLECLICK(id, fn)}
2472 @event{EVT_STC_UPDATEUI(id, fn)}
2474 @event{EVT_STC_MODIFIED(id, fn)}
2476 @event{EVT_STC_MACRORECORD(id, fn)}
2478 @event{EVT_STC_MARGINCLICK(id, fn)}
2480 @event{EVT_STC_NEEDSHOWN(id, fn)}
2482 @event{EVT_STC_PAINTED(id, fn)}
2484 @event{EVT_STC_USERLISTSELECTION(id, fn)}
2486 @event{EVT_STC_URIDROPPED(id, fn)}
2488 @event{EVT_STC_DWELLSTART(id, fn)}
2490 @event{EVT_STC_DWELLEND(id, fn)}
2492 @event{EVT_STC_START_DRAG(id, fn)}
2494 @event{EVT_STC_DRAG_OVER(id, fn)}
2496 @event{EVT_STC_DO_DROP(id, fn)}
2498 @event{EVT_STC_ZOOM(id, fn)}
2500 @event{EVT_STC_HOTSPOT_CLICK(id, fn)}
2502 @event{EVT_STC_HOTSPOT_DCLICK(id, fn)}
2504 @event{EVT_STC_CALLTIP_CLICK(id, fn)}
2506 @event{EVT_STC_AUTOCOMP_SELECTION(id, fn)}
2508 @event{EVT_STC_INDICATOR_CLICK(id, fn)}
2510 @event{EVT_STC_INDICATOR_RELEASE(id, fn)}
2512 @event{EVT_STC_AUTOCOMP_CANCELLED(id, fn)}
2514 @event{EVT_STC_AUTOCOMP_CHAR_DELETED(id, fn)}
2516 @event{EVT_STC_HOTSPOT_RELEASE_CLICK(id, fn)}
2523 @see wxStyledTextEvent
2526 class wxStyledTextCtrl
: public wxControl
, public wxTextEntry
2533 wxStyledTextCtrl(wxWindow
*parent
, wxWindowID id
=wxID_ANY
,
2534 const wxPoint
& pos
= wxDefaultPosition
,
2535 const wxSize
& size
= wxDefaultSize
, long style
= 0,
2536 const wxString
& name
= wxSTCNameStr
);
2546 ~wxStyledTextCtrl();
2549 Create the UI elements for a STC that was created with the default ctor. (For 2-phase create.)
2551 bool Create(wxWindow
*parent
, wxWindowID id
=wxID_ANY
,
2552 const wxPoint
& pos
= wxDefaultPosition
,
2553 const wxSize
& size
= wxDefaultSize
, long style
= 0,
2554 const wxString
& name
= wxSTCNameStr
);
2557 // **** Generated methods {{{
2561 Add text to the document at current position.
2563 void AddText(const wxString
& text
);
2566 Add array of cells to document.
2568 void AddStyledText(const wxMemoryBuffer
& data
);
2571 Insert string at a position.
2573 void InsertText(int pos
, const wxString
& text
);
2576 Delete all text in the document.
2581 Delete a range of text in the document.
2583 void DeleteRange(int pos
, int deleteLength
);
2586 Set all style bytes to 0, remove all folding information.
2588 void ClearDocumentStyle();
2591 Returns the number of bytes in the document.
2593 int GetLength() const;
2596 Returns the character byte at the position.
2598 int GetCharAt(int pos
) const;
2601 Returns the position of the caret.
2603 int GetCurrentPos() const;
2606 Returns the position of the opposite end of the selection to the caret.
2608 int GetAnchor() const;
2611 Returns the style byte at the position.
2613 int GetStyleAt(int pos
) const;
2616 Redoes the next action on the undo history.
2621 Choose between collecting actions into the undo
2622 history and discarding them.
2624 void SetUndoCollection(bool collectUndo
);
2627 Select all the text in the document.
2632 Remember the current position in the undo history as the position
2633 at which the document was saved.
2635 void SetSavePoint();
2638 Retrieve a buffer of cells.
2640 wxMemoryBuffer
GetStyledText(int startPos
, int endPos
);
2643 Are there any redoable actions in the undo history?
2645 bool CanRedo() const;
2648 Retrieve the line number at which a particular marker is located.
2650 int MarkerLineFromHandle(int handle
);
2655 void MarkerDeleteHandle(int handle
);
2658 Is undo history being collected?
2660 bool GetUndoCollection() const;
2663 Are white space characters currently visible?
2664 Returns one of SCWS_* constants.
2666 int GetViewWhiteSpace() const;
2669 Make white space characters invisible, always visible or visible outside indentation.
2671 void SetViewWhiteSpace(int viewWS
);
2674 Find the position from a point within the window.
2676 int PositionFromPoint(wxPoint pt
) const;
2679 Find the position from a point within the window but return
2680 INVALID_POSITION if not close to text.
2682 int PositionFromPointClose(int x
, int y
);
2685 Set caret to start of a line and ensure it is visible.
2687 void GotoLine(int line
);
2690 Set caret to a position and ensure it is visible.
2692 void GotoPos(int pos
);
2695 Set the selection anchor to a position. The anchor is the opposite
2696 end of the selection from the caret.
2698 void SetAnchor(int posAnchor
);
2701 Retrieve the text of the line containing the caret.
2702 Returns the index of the caret on the line.
2704 wxString
GetCurLine(int* linePos
=NULL
);
2707 Retrieve the position of the last correctly styled character.
2709 int GetEndStyled() const;
2712 Convert all line endings in the document to one mode.
2714 void ConvertEOLs(int eolMode
);
2717 Retrieve the current end of line mode - one of CRLF, CR, or LF.
2719 int GetEOLMode() const;
2722 Set the current end of line mode.
2724 void SetEOLMode(int eolMode
);
2727 Set the current styling position to pos and the styling mask to mask.
2728 The styling mask can be used to protect some bits in each styling byte from modification.
2730 void StartStyling(int pos
, int mask
);
2733 Change style from current styling position for length characters to a style
2734 and move the current styling position to after this newly styled segment.
2736 void SetStyling(int length
, int style
);
2739 Is drawing done first into a buffer or direct to the screen?
2741 bool GetBufferedDraw() const;
2744 If drawing is buffered then each line of text is drawn into a bitmap buffer
2745 before drawing it to the screen to avoid flicker.
2747 void SetBufferedDraw(bool buffered
);
2750 Change the visible size of a tab to be a multiple of the width of a space character.
2752 void SetTabWidth(int tabWidth
);
2755 Retrieve the visible size of a tab.
2757 int GetTabWidth() const;
2760 Set the code page used to interpret the bytes of the document as characters.
2762 void SetCodePage(int codePage
);
2765 Set the symbol used for a particular marker number,
2766 and optionally the fore and background colours.
2768 void MarkerDefine(int markerNumber
, int markerSymbol
,
2769 const wxColour
& foreground
= wxNullColour
,
2770 const wxColour
& background
= wxNullColour
);
2773 Set the foreground colour used for a particular marker number.
2775 void MarkerSetForeground(int markerNumber
, const wxColour
& fore
);
2778 Set the background colour used for a particular marker number.
2780 void MarkerSetBackground(int markerNumber
, const wxColour
& back
);
2783 Set the background colour used for a particular marker number when its folding block is selected.
2785 void MarkerSetBackgroundSelected(int markerNumber
, const wxColour
& back
);
2788 Enable/disable highlight for current folding bloc (smallest one that contains the caret)
2790 void MarkerEnableHighlight(bool enabled
);
2793 Add a marker to a line, returning an ID which can be used to find or delete the marker.
2795 int MarkerAdd(int line
, int markerNumber
);
2798 Delete a marker from a line.
2800 void MarkerDelete(int line
, int markerNumber
);
2803 Delete all markers with a particular number from all lines.
2805 void MarkerDeleteAll(int markerNumber
);
2808 Get a bit mask of all the markers set on a line.
2810 int MarkerGet(int line
);
2813 Find the next line at or after lineStart that includes a marker in mask.
2814 Return -1 when no more lines.
2816 int MarkerNext(int lineStart
, int markerMask
);
2819 Find the previous line before lineStart that includes a marker in mask.
2821 int MarkerPrevious(int lineStart
, int markerMask
);
2824 Define a marker from a bitmap
2826 void MarkerDefineBitmap(int markerNumber
, const wxBitmap
& bmp
);
2829 Add a set of markers to a line.
2831 void MarkerAddSet(int line
, int set
);
2834 Set the alpha used for a marker that is drawn in the text area, not the margin.
2836 void MarkerSetAlpha(int markerNumber
, int alpha
);
2839 Set a margin to be either numeric or symbolic.
2841 void SetMarginType(int margin
, int marginType
);
2844 Retrieve the type of a margin.
2846 int GetMarginType(int margin
) const;
2849 Set the width of a margin to a width expressed in pixels.
2851 void SetMarginWidth(int margin
, int pixelWidth
);
2854 Retrieve the width of a margin in pixels.
2856 int GetMarginWidth(int margin
) const;
2859 Set a mask that determines which markers are displayed in a margin.
2861 void SetMarginMask(int margin
, int mask
);
2864 Retrieve the marker mask of a margin.
2866 int GetMarginMask(int margin
) const;
2869 Make a margin sensitive or insensitive to mouse clicks.
2871 void SetMarginSensitive(int margin
, bool sensitive
);
2874 Retrieve the mouse click sensitivity of a margin.
2876 bool GetMarginSensitive(int margin
) const;
2879 Set the cursor shown when the mouse is inside a margin.
2881 void SetMarginCursor(int margin
, int cursor
);
2884 Retrieve the cursor shown in a margin.
2886 int GetMarginCursor(int margin
) const;
2889 Clear all the styles and make equivalent to the global default style.
2891 void StyleClearAll();
2894 Set the foreground colour of a style.
2896 void StyleSetForeground(int style
, const wxColour
& fore
);
2899 Set the background colour of a style.
2901 void StyleSetBackground(int style
, const wxColour
& back
);
2904 Set a style to be bold or not.
2906 void StyleSetBold(int style
, bool bold
);
2909 Set a style to be italic or not.
2911 void StyleSetItalic(int style
, bool italic
);
2914 Set the size of characters of a style.
2916 void StyleSetSize(int style
, int sizePoints
);
2919 Set the font of a style.
2921 void StyleSetFaceName(int style
, const wxString
& fontName
);
2924 Set a style to have its end of line filled or not.
2926 void StyleSetEOLFilled(int style
, bool filled
);
2929 Reset the default style to its state at startup
2931 void StyleResetDefault();
2934 Set a style to be underlined or not.
2936 void StyleSetUnderline(int style
, bool underline
);
2939 Get the foreground colour of a style.
2941 wxColour
StyleGetForeground(int style
) const;
2944 Get the background colour of a style.
2946 wxColour
StyleGetBackground(int style
) const;
2949 Get is a style bold or not.
2951 bool StyleGetBold(int style
) const;
2954 Get is a style italic or not.
2956 bool StyleGetItalic(int style
) const;
2959 Get the size of characters of a style.
2961 int StyleGetSize(int style
) const;
2964 Get the font facename of a style
2966 wxString
StyleGetFaceName(int style
);
2969 Get is a style to have its end of line filled or not.
2971 bool StyleGetEOLFilled(int style
) const;
2974 Get is a style underlined or not.
2976 bool StyleGetUnderline(int style
) const;
2979 Get is a style mixed case, or to force upper or lower case.
2981 int StyleGetCase(int style
) const;
2984 Get the character set of the font in a style.
2986 int StyleGetCharacterSet(int style
) const;
2989 Get is a style visible or not.
2991 bool StyleGetVisible(int style
) const;
2994 Get is a style changeable or not (read only).
2995 Experimental feature, currently buggy.
2997 bool StyleGetChangeable(int style
) const;
3000 Get is a style a hotspot or not.
3002 bool StyleGetHotSpot(int style
) const;
3005 Set a style to be mixed case, or to force upper or lower case.
3007 void StyleSetCase(int style
, int caseForce
);
3010 Set the size of characters of a style. Size is in points multiplied by 100.
3012 void StyleSetSizeFractional(int style
, int caseForce
);
3015 Get the size of characters of a style in points multiplied by 100
3017 int StyleGetSizeFractional(int style
) const;
3020 Set the weight of characters of a style.
3022 void StyleSetWeight(int style
, int weight
);
3025 Get the weight of characters of a style.
3027 int StyleGetWeight(int style
) const;
3030 Set a style to be a hotspot or not.
3032 void StyleSetHotSpot(int style
, bool hotspot
);
3035 Set the foreground colour of the main and additional selections and whether to use this setting.
3037 void SetSelForeground(bool useSetting
, const wxColour
& fore
);
3040 Set the background colour of the main and additional selections and whether to use this setting.
3042 void SetSelBackground(bool useSetting
, const wxColour
& back
);
3045 Get the alpha of the selection.
3047 int GetSelAlpha() const;
3050 Set the alpha of the selection.
3052 void SetSelAlpha(int alpha
);
3055 Is the selection end of line filled?
3057 bool GetSelEOLFilled() const;
3060 Set the selection to have its end of line filled or not.
3062 void SetSelEOLFilled(bool filled
);
3065 Set the foreground colour of the caret.
3067 void SetCaretForeground(const wxColour
& fore
);
3070 When key+modifier combination km is pressed perform msg.
3072 void CmdKeyAssign(int key
, int modifiers
, int cmd
);
3075 When key+modifier combination km is pressed do nothing.
3077 void CmdKeyClear(int key
, int modifiers
);
3080 Drop all key mappings.
3082 void CmdKeyClearAll();
3085 Set the styles for a segment of the document.
3087 void SetStyleBytes(int length
, char* styleBytes
);
3090 Set a style to be visible or not.
3092 void StyleSetVisible(int style
, bool visible
);
3095 Get the time in milliseconds that the caret is on and off.
3097 int GetCaretPeriod() const;
3100 Get the time in milliseconds that the caret is on and off. 0 = steady on.
3102 void SetCaretPeriod(int periodMilliseconds
);
3105 Set the set of characters making up words for when moving or selecting by word.
3106 First sets defaults like SetCharsDefault.
3108 void SetWordChars(const wxString
& characters
);
3111 Get the set of characters making up words for when moving or selecting by word.
3113 wxString
GetWordChars() const;
3116 Start a sequence of actions that is undone and redone as a unit.
3119 void BeginUndoAction();
3122 End a sequence of actions that is undone and redone as a unit.
3124 void EndUndoAction();
3127 Set an indicator to plain, squiggle or TT.
3129 void IndicatorSetStyle(int indic
, int style
);
3132 Retrieve the style of an indicator.
3134 int IndicatorGetStyle(int indic
) const;
3137 Set the foreground colour of an indicator.
3139 void IndicatorSetForeground(int indic
, const wxColour
& fore
);
3142 Retrieve the foreground colour of an indicator.
3144 wxColour
IndicatorGetForeground(int indic
) const;
3147 Set an indicator to draw under text or over(default).
3149 void IndicatorSetUnder(int indic
, bool under
);
3152 Retrieve whether indicator drawn under or over text.
3154 bool IndicatorGetUnder(int indic
) const;
3157 Set the foreground colour of all whitespace and whether to use this setting.
3159 void SetWhitespaceForeground(bool useSetting
, const wxColour
& fore
);
3162 Set the background colour of all whitespace and whether to use this setting.
3164 void SetWhitespaceBackground(bool useSetting
, const wxColour
& back
);
3167 Set the size of the dots used to mark space characters.
3169 void SetWhitespaceSize(int size
);
3172 Get the size of the dots used to mark space characters.
3174 int GetWhitespaceSize() const;
3177 Divide each styling byte into lexical class bits (default: 5) and indicator
3178 bits (default: 3). If a lexer requires more than 32 lexical states, then this
3179 is used to expand the possible states.
3181 void SetStyleBits(int bits
);
3184 Retrieve number of bits in style bytes used to hold the lexical state.
3186 int GetStyleBits() const;
3189 Used to hold extra styling information for each line.
3191 void SetLineState(int line
, int state
);
3194 Retrieve the extra styling information for a line.
3196 int GetLineState(int line
) const;
3199 Retrieve the last line number that has line state.
3201 int GetMaxLineState() const;
3204 Is the background of the line containing the caret in a different colour?
3206 bool GetCaretLineVisible() const;
3209 Display the background of the line containing the caret in a different colour.
3211 void SetCaretLineVisible(bool show
);
3214 Get the colour of the background of the line containing the caret.
3216 wxColour
GetCaretLineBackground() const;
3219 Set the colour of the background of the line containing the caret.
3221 void SetCaretLineBackground(const wxColour
& back
);
3224 Set a style to be changeable or not (read only).
3225 Experimental feature, currently buggy.
3227 void StyleSetChangeable(int style
, bool changeable
);
3230 Display a auto-completion list.
3231 The lenEntered parameter indicates how many characters before
3232 the caret should be used to provide context.
3234 void AutoCompShow(int lenEntered
, const wxString
& itemList
);
3237 Remove the auto-completion list from the screen.
3239 void AutoCompCancel();
3242 Is there an auto-completion list visible?
3244 bool AutoCompActive();
3247 Retrieve the position of the caret when the auto-completion list was displayed.
3249 int AutoCompPosStart();
3252 User has selected an item so remove the list and insert the selection.
3254 void AutoCompComplete();
3257 Define a set of character that when typed cancel the auto-completion list.
3259 void AutoCompStops(const wxString
& characterSet
);
3262 Change the separator character in the string setting up an auto-completion list.
3263 Default is space but can be changed if items contain space.
3265 void AutoCompSetSeparator(int separatorCharacter
);
3268 Retrieve the auto-completion list separator character.
3270 int AutoCompGetSeparator() const;
3273 Select the item in the auto-completion list that starts with a string.
3275 void AutoCompSelect(const wxString
& text
);
3278 Should the auto-completion list be cancelled if the user backspaces to a
3279 position before where the box was created.
3281 void AutoCompSetCancelAtStart(bool cancel
);
3284 Retrieve whether auto-completion cancelled by backspacing before start.
3286 bool AutoCompGetCancelAtStart() const;
3289 Define a set of characters that when typed will cause the autocompletion to
3290 choose the selected item.
3292 void AutoCompSetFillUps(const wxString
& characterSet
);
3295 Should a single item auto-completion list automatically choose the item.
3297 void AutoCompSetChooseSingle(bool chooseSingle
);
3300 Retrieve whether a single item auto-completion list automatically choose the item.
3302 bool AutoCompGetChooseSingle() const;
3305 Set whether case is significant when performing auto-completion searches.
3307 void AutoCompSetIgnoreCase(bool ignoreCase
);
3310 Retrieve state of ignore case flag.
3312 bool AutoCompGetIgnoreCase() const;
3315 Display a list of strings and send notification when user chooses one.
3317 void UserListShow(int listType
, const wxString
& itemList
);
3320 Set whether or not autocompletion is hidden automatically when nothing matches.
3322 void AutoCompSetAutoHide(bool autoHide
);
3325 Retrieve whether or not autocompletion is hidden automatically when nothing matches.
3327 bool AutoCompGetAutoHide() const;
3330 Set whether or not autocompletion deletes any word characters
3331 after the inserted text upon completion.
3333 void AutoCompSetDropRestOfWord(bool dropRestOfWord
);
3336 Retrieve whether or not autocompletion deletes any word characters
3337 after the inserted text upon completion.
3339 bool AutoCompGetDropRestOfWord() const;
3342 Register an image for use in autocompletion lists.
3344 void RegisterImage(int type
, const wxBitmap
& bmp
);
3347 Clear all the registered images.
3349 void ClearRegisteredImages();
3352 Retrieve the auto-completion list type-separator character.
3354 int AutoCompGetTypeSeparator() const;
3357 Change the type-separator character in the string setting up an auto-completion list.
3358 Default is '?' but can be changed if items contain '?'.
3360 void AutoCompSetTypeSeparator(int separatorCharacter
);
3363 Set the maximum width, in characters, of auto-completion and user lists.
3364 Set to 0 to autosize to fit longest item, which is the default.
3366 void AutoCompSetMaxWidth(int characterCount
);
3369 Get the maximum width, in characters, of auto-completion and user lists.
3371 int AutoCompGetMaxWidth() const;
3374 Set the maximum height, in rows, of auto-completion and user lists.
3375 The default is 5 rows.
3377 void AutoCompSetMaxHeight(int rowCount
);
3380 Set the maximum height, in rows, of auto-completion and user lists.
3382 int AutoCompGetMaxHeight() const;
3385 Set the number of spaces used for one level of indentation.
3387 void SetIndent(int indentSize
);
3390 Retrieve indentation size.
3392 int GetIndent() const;
3395 Indentation will only use space characters if useTabs is false, otherwise
3396 it will use a combination of tabs and spaces.
3398 void SetUseTabs(bool useTabs
);
3401 Retrieve whether tabs will be used in indentation.
3403 bool GetUseTabs() const;
3406 Change the indentation of a line to a number of columns.
3408 void SetLineIndentation(int line
, int indentSize
);
3411 Retrieve the number of columns that a line is indented.
3413 int GetLineIndentation(int line
) const;
3416 Retrieve the position before the first non indentation character on a line.
3418 int GetLineIndentPosition(int line
) const;
3421 Retrieve the column number of a position, taking tab width into account.
3423 int GetColumn(int pos
) const;
3426 Count characters between two positions.
3428 int CountCharacters(int startPos
, int endPos
);
3431 Show or hide the horizontal scroll bar.
3433 void SetUseHorizontalScrollBar(bool show
);
3436 Is the horizontal scroll bar visible?
3438 bool GetUseHorizontalScrollBar() const;
3441 Show or hide indentation guides.
3443 void SetIndentationGuides(int indentView
);
3446 Are the indentation guides visible?
3448 int GetIndentationGuides() const;
3451 Set the highlighted indentation guide column.
3452 0 = no highlighted guide.
3454 void SetHighlightGuide(int column
);
3457 Get the highlighted indentation guide column.
3459 int GetHighlightGuide() const;
3462 Get the position after the last visible characters on a line.
3464 int GetLineEndPosition(int line
) const;
3467 Get the code page used to interpret the bytes of the document as characters.
3469 int GetCodePage() const;
3472 Get the foreground colour of the caret.
3474 wxColour
GetCaretForeground() const;
3479 bool GetReadOnly() const;
3482 Sets the position of the caret.
3484 void SetCurrentPos(int pos
);
3487 Sets the position that starts the selection - this becomes the anchor.
3489 void SetSelectionStart(int pos
);
3492 Returns the position at the start of the selection.
3494 int GetSelectionStart() const;
3497 Sets the position that ends the selection - this becomes the currentPosition.
3499 void SetSelectionEnd(int pos
);
3502 Returns the position at the end of the selection.
3504 int GetSelectionEnd() const;
3507 Set caret to a position, while removing any existing selection.
3509 void SetEmptySelection(int pos
);
3512 Sets the print magnification added to the point size of each style for printing.
3514 void SetPrintMagnification(int magnification
);
3517 Returns the print magnification.
3519 int GetPrintMagnification() const;
3522 Modify colours when printing for clearer printed text.
3524 void SetPrintColourMode(int mode
);
3527 Returns the print colour mode.
3529 int GetPrintColourMode() const;
3532 Find some text in the document.
3534 int FindText(int minPos
, int maxPos
, const wxString
& text
, int flags
=0);
3537 On Windows, will draw the document into a display context such as a printer.
3539 int FormatRange(bool doDraw
,
3548 Retrieve the display line at the top of the display.
3550 int GetFirstVisibleLine() const;
3553 Retrieve the contents of a line.
3555 wxString
GetLine(int line
) const;
3558 Returns the number of lines in the document. There is always at least one.
3560 int GetLineCount() const;
3563 Sets the size in pixels of the left margin.
3565 void SetMarginLeft(int pixelWidth
);
3568 Returns the size in pixels of the left margin.
3570 int GetMarginLeft() const;
3573 Sets the size in pixels of the right margin.
3575 void SetMarginRight(int pixelWidth
);
3578 Returns the size in pixels of the right margin.
3580 int GetMarginRight() const;
3583 Is the document different from when it was last saved?
3585 bool GetModify() const;
3588 Retrieve the selected text.
3590 wxString
GetSelectedText();
3593 Retrieve a range of text.
3595 wxString
GetTextRange(int startPos
, int endPos
);
3598 Draw the selection in normal style or with selection highlighted.
3600 void HideSelection(bool normal
);
3603 Retrieve the line containing a position.
3605 int LineFromPosition(int pos
) const;
3608 Retrieve the position at the start of a line.
3610 int PositionFromLine(int line
) const;
3613 Scroll horizontally and vertically.
3615 void LineScroll(int columns
, int lines
);
3618 Ensure the caret is visible.
3620 void EnsureCaretVisible();
3623 Replace the selected text with the argument text.
3625 void ReplaceSelection(const wxString
& text
);
3628 Set to read only or read write.
3630 void SetReadOnly(bool readOnly
);
3633 Will a paste succeed?
3635 bool CanPaste() const;
3638 Are there any undoable actions in the undo history?
3640 bool CanUndo() const;
3643 Delete the undo history.
3645 void EmptyUndoBuffer();
3648 Undo one action in the undo history.
3653 Cut the selection to the clipboard.
3658 Copy the selection to the clipboard.
3663 Paste the contents of the clipboard into the document replacing the selection.
3668 Clear the selection.
3673 Replace the contents of the document with the argument text.
3675 void SetText(const wxString
& text
);
3678 Retrieve all the text in the document.
3680 wxString
GetText() const;
3683 Retrieve the number of characters in the document.
3685 int GetTextLength() const;
3688 Set to overtype (true) or insert mode.
3690 void SetOvertype(bool overtype
);
3693 Returns true if overtype mode is active otherwise false is returned.
3695 bool GetOvertype() const;
3698 Set the width of the insert mode caret.
3700 void SetCaretWidth(int pixelWidth
);
3703 Returns the width of the insert mode caret.
3705 int GetCaretWidth() const;
3708 Sets the position that starts the target which is used for updating the
3709 document without affecting the scroll position.
3711 void SetTargetStart(int pos
);
3714 Get the position that starts the target.
3716 int GetTargetStart() const;
3719 Sets the position that ends the target which is used for updating the
3720 document without affecting the scroll position.
3722 void SetTargetEnd(int pos
);
3725 Get the position that ends the target.
3727 int GetTargetEnd() const;
3730 Replace the target text with the argument text.
3731 Text is counted so it can contain NULs.
3732 Returns the length of the replacement text.
3734 int ReplaceTarget(const wxString
& text
);
3737 Replace the target text with the argument text after \\d processing.
3738 Text is counted so it can contain NULs.
3739 Looks for \\d where d is between 1 and 9 and replaces these with the strings
3740 matched in the last search operation which were surrounded by \( and \).
3741 Returns the length of the replacement text including any change
3742 caused by processing the \\d patterns.
3744 int ReplaceTargetRE(const wxString
& text
);
3747 Search for a counted string in the target and set the target to the found
3748 range. Text is counted so it can contain NULs.
3749 Returns length of range or -1 for failure in which case target is not moved.
3751 int SearchInTarget(const wxString
& text
);
3754 Set the search flags used by SearchInTarget.
3756 void SetSearchFlags(int flags
);
3759 Get the search flags used by SearchInTarget.
3761 int GetSearchFlags() const;
3764 Show a call tip containing a definition near position pos.
3766 void CallTipShow(int pos
, const wxString
& definition
);
3769 Remove the call tip from the screen.
3771 void CallTipCancel();
3774 Is there an active call tip?
3776 bool CallTipActive();
3779 Retrieve the position where the caret was before displaying the call tip.
3781 int CallTipPosAtStart();
3784 Highlight a segment of the definition.
3786 void CallTipSetHighlight(int start
, int end
);
3789 Set the background colour for the call tip.
3791 void CallTipSetBackground(const wxColour
& back
);
3794 Set the foreground colour for the call tip.
3796 void CallTipSetForeground(const wxColour
& fore
);
3799 Set the foreground colour for the highlighted part of the call tip.
3801 void CallTipSetForegroundHighlight(const wxColour
& fore
);
3804 Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
3806 void CallTipUseStyle(int tabSize
);
3809 Set position of calltip, above or below text.
3811 void CallTipSetPosition(bool above
);
3814 Find the display line of a document line taking hidden lines into account.
3816 int VisibleFromDocLine(int line
);
3819 Find the document line of a display line taking hidden lines into account.
3821 int DocLineFromVisible(int lineDisplay
);
3824 The number of display lines needed to wrap a document line
3826 int WrapCount(int line
);
3829 Set the fold level of a line.
3830 This encodes an integer level along with flags indicating whether the
3831 line is a header and whether it is effectively white space.
3833 void SetFoldLevel(int line
, int level
);
3836 Retrieve the fold level of a line.
3838 int GetFoldLevel(int line
) const;
3841 Find the last child line of a header line.
3843 int GetLastChild(int line
, int level
) const;
3846 Find the parent line of a child line.
3848 int GetFoldParent(int line
) const;
3851 Make a range of lines visible.
3853 void ShowLines(int lineStart
, int lineEnd
);
3856 Make a range of lines invisible.
3858 void HideLines(int lineStart
, int lineEnd
);
3863 bool GetLineVisible(int line
) const;
3866 Are all lines visible?
3868 bool GetAllLinesVisible() const;
3871 Show the children of a header line.
3873 void SetFoldExpanded(int line
, bool expanded
);
3876 Is a header line expanded?
3878 bool GetFoldExpanded(int line
) const;
3881 Switch a header line between expanded and contracted.
3883 void ToggleFold(int line
);
3886 Ensure a particular line is visible by expanding any header line hiding it.
3888 void EnsureVisible(int line
);
3891 Set some style options for folding.
3893 void SetFoldFlags(int flags
);
3896 Ensure a particular line is visible by expanding any header line hiding it.
3897 Use the currently set visibility policy to determine which range to display.
3899 void EnsureVisibleEnforcePolicy(int line
);
3902 Sets whether a tab pressed when caret is within indentation indents.
3904 void SetTabIndents(bool tabIndents
);
3907 Does a tab pressed when caret is within indentation indent?
3909 bool GetTabIndents() const;
3912 Sets whether a backspace pressed when caret is within indentation unindents.
3914 void SetBackSpaceUnIndents(bool bsUnIndents
);
3917 Does a backspace pressed when caret is within indentation unindent?
3919 bool GetBackSpaceUnIndents() const;
3922 Sets the time the mouse must sit still to generate a mouse dwell event.
3924 void SetMouseDwellTime(int periodMilliseconds
);
3927 Retrieve the time the mouse must sit still to generate a mouse dwell event.
3929 int GetMouseDwellTime() const;
3932 Get position of start of word.
3934 int WordStartPosition(int pos
, bool onlyWordCharacters
);
3937 Get position of end of word.
3939 int WordEndPosition(int pos
, bool onlyWordCharacters
);
3942 Sets whether text is word wrapped.
3944 void SetWrapMode(int mode
);
3947 Retrieve whether text is word wrapped.
3949 int GetWrapMode() const;
3952 Set the display mode of visual flags for wrapped lines.
3954 void SetWrapVisualFlags(int wrapVisualFlags
);
3957 Retrive the display mode of visual flags for wrapped lines.
3959 int GetWrapVisualFlags() const;
3962 Set the location of visual flags for wrapped lines.
3964 void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation
);
3967 Retrive the location of visual flags for wrapped lines.
3969 int GetWrapVisualFlagsLocation() const;
3972 Set the start indent for wrapped lines.
3974 void SetWrapStartIndent(int indent
);
3977 Retrive the start indent for wrapped lines.
3979 int GetWrapStartIndent() const;
3982 Sets how wrapped sublines are placed. Default is fixed.
3984 void SetWrapIndentMode(int mode
);
3987 Retrieve how wrapped sublines are placed. Default is fixed.
3989 int GetWrapIndentMode() const;
3992 Sets the degree of caching of layout information.
3994 void SetLayoutCache(int mode
);
3997 Retrieve the degree of caching of layout information.
3999 int GetLayoutCache() const;
4002 Sets the document width assumed for scrolling.
4004 void SetScrollWidth(int pixelWidth
);
4007 Retrieve the document width assumed for scrolling.
4009 int GetScrollWidth() const;
4012 Sets whether the maximum width line displayed is used to set scroll width.
4014 void SetScrollWidthTracking(bool tracking
);
4017 Retrieve whether the scroll width tracks wide lines.
4019 bool GetScrollWidthTracking() const;
4022 Measure the pixel width of some text in a particular style.
4023 NUL terminated text argument.
4024 Does not handle tab or control characters.
4026 int TextWidth(int style
, const wxString
& text
);
4029 Sets the scroll range so that maximum scroll position has
4030 the last line at the bottom of the view (default).
4031 Setting this to false allows scrolling one page below the last line.
4033 void SetEndAtLastLine(bool endAtLastLine
);
4036 Retrieve whether the maximum scroll position has the last
4037 line at the bottom of the view.
4039 bool GetEndAtLastLine() const;
4042 Retrieve the height of a particular line of text in pixels.
4044 int TextHeight(int line
);
4047 Show or hide the vertical scroll bar.
4049 void SetUseVerticalScrollBar(bool show
);
4052 Is the vertical scroll bar visible?
4054 bool GetUseVerticalScrollBar() const;
4057 Append a string to the end of the document without changing the selection.
4059 void AppendText(const wxString
& text
);
4062 Is drawing done in two phases with backgrounds drawn before foregrounds?
4064 bool GetTwoPhaseDraw() const;
4067 In twoPhaseDraw mode, drawing is performed in two phases, first the background
4068 and then the foreground. This avoids chopping off characters that overlap the next run.
4070 void SetTwoPhaseDraw(bool twoPhase
);
4073 Scroll so that a display line is at the top of the display.
4075 void SetFirstVisibleLine(int lineDisplay
);
4078 Change the effect of pasting when there are multiple selections.
4080 void SetMultiPaste(int multiPaste
);
4083 Retrieve the effect of pasting when there are multiple selections.
4085 int GetMultiPaste() const;
4088 Retrieve the value of a tag from a regular expression search.
4090 wxString
GetTag(int tagNumber
) const;
4093 Make the target range start and end be the same as the selection range start and end.
4095 void TargetFromSelection();
4098 Join the lines in the target.
4103 Split the lines in the target into lines that are less wide than pixelWidth
4106 void LinesSplit(int pixelWidth
);
4109 Set the colours used as a chequerboard pattern in the fold margin
4111 void SetFoldMarginColour(bool useSetting
, const wxColour
& back
);
4112 void SetFoldMarginHiColour(bool useSetting
, const wxColour
& fore
);
4115 Move caret down one line.
4120 Move caret down one line extending selection to new caret position.
4122 void LineDownExtend();
4125 Move caret up one line.
4130 Move caret up one line extending selection to new caret position.
4132 void LineUpExtend();
4135 Move caret left one character.
4140 Move caret left one character extending selection to new caret position.
4142 void CharLeftExtend();
4145 Move caret right one character.
4150 Move caret right one character extending selection to new caret position.
4152 void CharRightExtend();
4155 Move caret left one word.
4160 Move caret left one word extending selection to new caret position.
4162 void WordLeftExtend();
4165 Move caret right one word.
4170 Move caret right one word extending selection to new caret position.
4172 void WordRightExtend();
4175 Move caret to first position on line.
4180 Move caret to first position on line extending selection to new caret position.
4185 Move caret to last position on line.
4190 Move caret to last position on line extending selection to new caret position.
4192 void LineEndExtend();
4195 Move caret to first position in document.
4197 void DocumentStart();
4200 Move caret to first position in document extending selection to new caret position.
4202 void DocumentStartExtend();
4205 Move caret to last position in document.
4210 Move caret to last position in document extending selection to new caret position.
4212 void DocumentEndExtend();
4215 Move caret one page up.
4220 Move caret one page up extending selection to new caret position.
4222 void PageUpExtend();
4225 Move caret one page down.
4230 Move caret one page down extending selection to new caret position.
4232 void PageDownExtend();
4235 Switch from insert to overtype mode or the reverse.
4237 void EditToggleOvertype();
4240 Cancel any modes such as call tip or auto-completion list display.
4245 Delete the selection or if no selection, the character before the caret.
4250 If selection is empty or all on one line replace the selection with a tab character.
4251 If more than one line selected, indent the lines.
4256 Dedent the selected lines.
4261 Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
4266 Insert a Form Feed character.
4271 Move caret to before first visible character on line.
4272 If already there move to first character on line.
4277 Like VCHome but extending selection to new caret position.
4279 void VCHomeExtend();
4282 Magnify the displayed text by increasing the sizes by 1 point.
4287 Make the displayed text smaller by decreasing the sizes by 1 point.
4292 Delete the word to the left of the caret.
4297 Delete the word to the right of the caret.
4299 void DelWordRight();
4302 Delete the word to the right of the caret, but not the trailing non-word characters.
4304 void DelWordRightEnd();
4307 Cut the line containing the caret.
4312 Delete the line containing the caret.
4317 Switch the current line with the previous.
4319 void LineTranspose();
4322 Duplicate the current line.
4324 void LineDuplicate();
4327 Transform the selection to lower case.
4332 Transform the selection to upper case.
4337 Scroll the document down, keeping the caret visible.
4339 void LineScrollDown();
4342 Scroll the document up, keeping the caret visible.
4344 void LineScrollUp();
4347 Delete the selection or if no selection, the character before the caret.
4348 Will not delete the character before at the start of a line.
4350 void DeleteBackNotLine();
4353 Move caret to first position on display line.
4358 Move caret to first position on display line extending selection to
4361 void HomeDisplayExtend();
4364 Move caret to last position on display line.
4366 void LineEndDisplay();
4369 Move caret to last position on display line extending selection to new
4372 void LineEndDisplayExtend();
4375 These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
4376 except they behave differently when word-wrap is enabled:
4377 They go first to the start / end of the display line, like (Home|LineEnd)Display
4378 The difference is that, the cursor is already at the point, it goes on to the start
4379 or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
4382 void HomeWrapExtend();
4384 void LineEndWrapExtend();
4386 void VCHomeWrapExtend();
4389 Copy the line containing the caret.
4394 Move the caret inside current view if it's not there already.
4396 void MoveCaretInsideView();
4399 How many characters are on a line, including end of line characters?
4401 int LineLength(int line
) const;
4404 Highlight the characters at two positions.
4406 void BraceHighlight(int pos1
, int pos2
);
4409 Use specified indicator to highlight matching braces instead of changing their style.
4411 void BraceHighlightIndicator(bool useBraceHighlightIndicator
, int indicator
);
4414 Highlight the character at a position indicating there is no matching brace.
4416 void BraceBadLight(int pos
);
4419 Use specified indicator to highlight non matching brace instead of changing its style.
4421 void BraceBadLightIndicator(bool useBraceBadLightIndicator
, int indicator
);
4424 Find the position of a matching brace or INVALID_POSITION if no match.
4426 int BraceMatch(int pos
);
4429 Are the end of line characters visible?
4431 bool GetViewEOL() const;
4434 Make the end of line characters visible or invisible.
4436 void SetViewEOL(bool visible
);
4439 Retrieve a pointer to the document object.
4441 void* GetDocPointer();
4444 Change the document object used.
4446 void SetDocPointer(void* docPointer
);
4449 Set which document modification events are sent to the container.
4451 void SetModEventMask(int mask
);
4454 Retrieve the column number which text should be kept within.
4456 int GetEdgeColumn() const;
4459 Set the column number of the edge.
4460 If text goes past the edge then it is highlighted.
4462 void SetEdgeColumn(int column
);
4465 Retrieve the edge highlight mode.
4467 int GetEdgeMode() const;
4470 The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
4471 goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
4473 void SetEdgeMode(int mode
);
4476 Retrieve the colour used in edge indication.
4478 wxColour
GetEdgeColour() const;
4481 Change the colour used in edge indication.
4483 void SetEdgeColour(const wxColour
& edgeColour
);
4486 Sets the current caret position to be the search anchor.
4488 void SearchAnchor();
4491 Find some text starting at the search anchor.
4492 Does not ensure the selection is visible.
4494 int SearchNext(int flags
, const wxString
& text
);
4497 Find some text starting at the search anchor and moving backwards.
4498 Does not ensure the selection is visible.
4500 int SearchPrev(int flags
, const wxString
& text
);
4503 Retrieves the number of lines completely visible.
4505 int LinesOnScreen() const;
4508 Set whether a pop up menu is displayed automatically when the user presses
4509 the wrong mouse button.
4511 void UsePopUp(bool allowPopUp
);
4514 Is the selection rectangular? The alternative is the more common stream selection.
4516 bool SelectionIsRectangle() const;
4519 Set the zoom level. This number of points is added to the size of all fonts.
4520 It may be positive to magnify or negative to reduce.
4522 void SetZoom(int zoom
);
4525 Retrieve the zoom level.
4527 int GetZoom() const;
4530 Create a new document object.
4531 Starts with reference count of 1 and not selected into editor.
4533 void* CreateDocument();
4536 Extend life of document.
4538 void AddRefDocument(void* docPointer
);
4541 Release a reference to the document, deleting document if it fades to black.
4543 void ReleaseDocument(void* docPointer
);
4546 Get which document modification events are sent to the container.
4548 int GetModEventMask() const;
4551 Change internal focus flag.
4553 void SetSTCFocus(bool focus
);
4556 Get internal focus flag.
4558 bool GetSTCFocus() const;
4561 Change error status - 0 = OK.
4563 void SetStatus(int statusCode
);
4568 int GetStatus() const;
4571 Set whether the mouse is captured when its button is pressed.
4573 void SetMouseDownCaptures(bool captures
);
4576 Get whether mouse gets captured.
4578 bool GetMouseDownCaptures() const;
4581 Sets the cursor to one of the SC_CURSOR* values.
4583 void SetSTCCursor(int cursorType
);
4588 int GetSTCCursor() const;
4591 Change the way control characters are displayed:
4592 If symbol is < 32, keep the drawn way, else, use the given character.
4594 void SetControlCharSymbol(int symbol
);
4597 Get the way control characters are displayed.
4599 int GetControlCharSymbol() const;
4602 Move to the previous change in capitalisation.
4604 void WordPartLeft();
4607 Move to the previous change in capitalisation extending selection
4608 to new caret position.
4610 void WordPartLeftExtend();
4613 Move to the change next in capitalisation.
4615 void WordPartRight();
4618 Move to the next change in capitalisation extending selection
4619 to new caret position.
4621 void WordPartRightExtend();
4624 Set the way the display area is determined when a particular line
4625 is to be moved to by Find, FindNext, GotoLine, etc.
4627 void SetVisiblePolicy(int visiblePolicy
, int visibleSlop
);
4630 Delete back from the current position to the start of the line.
4635 Delete forwards from the current position to the end of the line.
4637 void DelLineRight();
4640 Get and Set the xOffset (ie, horizontal scroll position).
4642 void SetXOffset(int newOffset
);
4643 int GetXOffset() const;
4646 Set the last x chosen value to be the caret x position.
4648 void ChooseCaretX();
4651 Set the way the caret is kept visible when going sideways.
4652 The exclusion zone is given in pixels.
4654 void SetXCaretPolicy(int caretPolicy
, int caretSlop
);
4657 Set the way the line the caret is on is kept visible.
4658 The exclusion zone is given in lines.
4660 void SetYCaretPolicy(int caretPolicy
, int caretSlop
);
4663 Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
4665 void SetPrintWrapMode(int mode
);
4668 Is printing line wrapped?
4670 int GetPrintWrapMode() const;
4673 Set a fore colour for active hotspots.
4675 void SetHotspotActiveForeground(bool useSetting
, const wxColour
& fore
);
4678 Get the fore colour for active hotspots.
4680 wxColour
GetHotspotActiveForeground() const;
4683 Set a back colour for active hotspots.
4685 void SetHotspotActiveBackground(bool useSetting
, const wxColour
& back
);
4688 Get the back colour for active hotspots.
4690 wxColour
GetHotspotActiveBackground() const;
4693 Enable / Disable underlining active hotspots.
4695 void SetHotspotActiveUnderline(bool underline
);
4698 Get whether underlining for active hotspots.
4700 bool GetHotspotActiveUnderline() const;
4703 Limit hotspots to single line so hotspots on two lines don't merge.
4705 void SetHotspotSingleLine(bool singleLine
);
4708 Get the HotspotSingleLine property
4710 bool GetHotspotSingleLine() const;
4713 Move caret between paragraphs (delimited by empty lines).
4716 void ParaDownExtend();
4718 void ParaUpExtend();
4721 Given a valid document position, return the previous position taking code
4722 page into account. Returns 0 if passed 0.
4724 int PositionBefore(int pos
);
4727 Given a valid document position, return the next position taking code
4728 page into account. Maximum value returned is the last position in the document.
4730 int PositionAfter(int pos
);
4733 Copy a range of text to the clipboard. Positions are clipped into the document.
4735 void CopyRange(int start
, int end
);
4738 Copy argument text to the clipboard.
4740 void CopyText(int length
, const wxString
& text
);
4743 Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or
4744 by lines (SC_SEL_LINES).
4746 void SetSelectionMode(int mode
);
4749 Get the mode of the current selection.
4751 int GetSelectionMode() const;
4754 Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
4756 int GetLineSelStartPosition(int line
);
4759 Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
4761 int GetLineSelEndPosition(int line
);
4764 Move caret down one line, extending rectangular selection to new caret position.
4766 void LineDownRectExtend();
4769 Move caret up one line, extending rectangular selection to new caret position.
4771 void LineUpRectExtend();
4774 Move caret left one character, extending rectangular selection to new caret position.
4776 void CharLeftRectExtend();
4779 Move caret right one character, extending rectangular selection to new caret position.
4781 void CharRightRectExtend();
4784 Move caret to first position on line, extending rectangular selection to new caret position.
4786 void HomeRectExtend();
4789 Move caret to before first visible character on line.
4790 If already there move to first character on line.
4791 In either case, extend rectangular selection to new caret position.
4793 void VCHomeRectExtend();
4796 Move caret to last position on line, extending rectangular selection to new caret position.
4798 void LineEndRectExtend();
4801 Move caret one page up, extending rectangular selection to new caret position.
4803 void PageUpRectExtend();
4806 Move caret one page down, extending rectangular selection to new caret position.
4808 void PageDownRectExtend();
4811 Move caret to top of page, or one page up if already at top of page.
4813 void StutteredPageUp();
4816 Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
4818 void StutteredPageUpExtend();
4821 Move caret to bottom of page, or one page down if already at bottom of page.
4823 void StutteredPageDown();
4826 Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
4828 void StutteredPageDownExtend();
4831 Move caret left one word, position cursor at end of word.
4836 Move caret left one word, position cursor at end of word, extending selection to new caret position.
4838 void WordLeftEndExtend();
4841 Move caret right one word, position cursor at end of word.
4843 void WordRightEnd();
4846 Move caret right one word, position cursor at end of word, extending selection to new caret position.
4848 void WordRightEndExtend();
4851 Set the set of characters making up whitespace for when moving or selecting by word.
4852 Should be called after SetWordChars.
4854 void SetWhitespaceChars(const wxString
& characters
);
4857 Get the set of characters making up whitespace for when moving or selecting by word.
4859 wxString
GetWhitespaceChars() const;
4862 Set the set of characters making up punctuation characters
4863 Should be called after SetWordChars.
4865 void SetPunctuationChars(const wxString
& characters
);
4868 Get the set of characters making up punctuation characters
4870 wxString
GetPunctuationChars() const;
4873 Reset the set of characters for whitespace and word characters to the defaults.
4875 void SetCharsDefault();
4878 Get currently selected item position in the auto-completion list
4880 int AutoCompGetCurrent() const;
4883 Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.
4885 void AutoCompSetCaseInsensitiveBehaviour(int behaviour
);
4888 Get auto-completion case insensitive behaviour.
4890 int AutoCompGetCaseInsensitiveBehaviour() const;
4893 Enlarge the document to a particular size of text bytes.
4895 void Allocate(int bytes
);
4898 Find the position of a column on a line taking into account tabs and
4899 multi-byte characters. If beyond end of line, return line end position.
4901 int FindColumn(int line
, int column
);
4904 Can the caret preferred x position only be changed by explicit movement commands?
4906 int GetCaretSticky() const;
4909 Stop the caret preferred x position changing when the user types.
4911 void SetCaretSticky(int useCaretStickyBehaviour
);
4914 Switch between sticky and non-sticky: meant to be bound to a key.
4916 void ToggleCaretSticky();
4919 Enable/Disable convert-on-paste for line endings
4921 void SetPasteConvertEndings(bool convert
);
4924 Get convert-on-paste setting
4926 bool GetPasteConvertEndings() const;
4929 Duplicate the selection. If selection empty duplicate the line containing the caret.
4931 void SelectionDuplicate();
4934 Set background alpha of the caret line.
4936 void SetCaretLineBackAlpha(int alpha
);
4939 Get the background alpha of the caret line.
4941 int GetCaretLineBackAlpha() const;
4944 Set the style of the caret to be drawn.
4946 void SetCaretStyle(int caretStyle
);
4949 Returns the current style of the caret.
4951 int GetCaretStyle() const;
4954 Set the indicator used for IndicatorFillRange and IndicatorClearRange
4956 void SetIndicatorCurrent(int indicator
);
4959 Get the current indicator
4961 int GetIndicatorCurrent() const;
4964 Set the value used for IndicatorFillRange
4966 void SetIndicatorValue(int value
);
4969 Get the current indicator value
4971 int GetIndicatorValue() const;
4974 Turn a indicator on over a range.
4976 void IndicatorFillRange(int position
, int fillLength
);
4979 Turn a indicator off over a range.
4981 void IndicatorClearRange(int position
, int clearLength
);
4984 Are any indicators present at position?
4986 int IndicatorAllOnFor(int position
);
4989 What value does a particular indicator have at at a position?
4991 int IndicatorValueAt(int indicator
, int position
);
4994 Where does a particular indicator start?
4996 int IndicatorStart(int indicator
, int position
);
4999 Where does a particular indicator end?
5001 int IndicatorEnd(int indicator
, int position
);
5004 Set number of entries in position cache
5006 void SetPositionCacheSize(int size
);
5009 How many entries are allocated to the position cache?
5011 int GetPositionCacheSize() const;
5014 Copy the selection, if selection empty copy the line with the caret
5016 void CopyAllowLine();
5019 Compact the document buffer and return a read-only pointer to the
5020 characters in the document.
5022 const char* GetCharacterPointer() const;
5025 Return a read-only pointer to a range of characters in the document.
5026 May move the gap so that the range is contiguous, but will only move up
5027 to rangeLength bytes.
5029 const char* GetRangePointer(int position
, int rangeLength
) const;
5032 Return a position which, to avoid performance costs, should not be within
5033 the range of a call to GetRangePointer.
5035 int GetGapPosition() const;
5038 Always interpret keyboard input as Unicode
5040 void SetKeysUnicode(bool keysUnicode
);
5043 Are keys always interpreted as Unicode?
5045 bool GetKeysUnicode() const;
5048 Set the alpha fill colour of the given indicator.
5050 void IndicatorSetAlpha(int indicator
, int alpha
);
5053 Get the alpha fill colour of the given indicator.
5055 int IndicatorGetAlpha(int indicator
) const;
5058 Set the alpha outline colour of the given indicator.
5060 void IndicatorSetOutlineAlpha(int indicator
, int alpha
);
5063 Get the alpha outline colour of the given indicator.
5065 int IndicatorGetOutlineAlpha(int indicator
) const;
5068 Set extra ascent for each line
5070 void SetExtraAscent(int extraAscent
);
5073 Get extra ascent for each line
5075 int GetExtraAscent() const;
5078 Set extra descent for each line
5080 void SetExtraDescent(int extraDescent
);
5083 Get extra descent for each line
5085 int GetExtraDescent() const;
5088 Which symbol was defined for markerNumber with MarkerDefine
5090 int GetMarkerSymbolDefined(int markerNumber
);
5093 Set the text in the text margin for a line
5095 void MarginSetText(int line
, const wxString
& text
);
5098 Get the text in the text margin for a line
5100 wxString
MarginGetText(int line
) const;
5103 Set the style number for the text margin for a line
5105 void MarginSetStyle(int line
, int style
);
5108 Get the style number for the text margin for a line
5110 int MarginGetStyle(int line
) const;
5113 Set the style in the text margin for a line
5115 void MarginSetStyles(int line
, const wxString
& styles
);
5118 Get the styles in the text margin for a line
5120 wxString
MarginGetStyles(int line
) const;
5123 Clear the margin text on all lines
5125 void MarginTextClearAll();
5128 Get the start of the range of style numbers used for margin text
5130 void MarginSetStyleOffset(int style
);
5133 Get the start of the range of style numbers used for margin text
5135 int MarginGetStyleOffset() const;
5138 Set the margin options.
5140 void SetMarginOptions(int marginOptions
);
5143 Get the margin options.
5145 int GetMarginOptions() const;
5148 Set the annotation text for a line
5150 void AnnotationSetText(int line
, const wxString
& text
);
5153 Get the annotation text for a line
5155 wxString
AnnotationGetText(int line
) const;
5158 Set the style number for the annotations for a line
5160 void AnnotationSetStyle(int line
, int style
);
5163 Get the style number for the annotations for a line
5165 int AnnotationGetStyle(int line
) const;
5168 Set the annotation styles for a line
5170 void AnnotationSetStyles(int line
, const wxString
& styles
);
5173 Get the annotation styles for a line
5175 wxString
AnnotationGetStyles(int line
) const;
5178 Get the number of annotation lines for a line
5180 int AnnotationGetLines(int line
) const;
5183 Clear the annotations from all lines
5185 void AnnotationClearAll();
5188 Set the visibility for the annotations for a view
5190 void AnnotationSetVisible(int visible
);
5193 Get the visibility for the annotations for a view
5195 int AnnotationGetVisible() const;
5198 Get the start of the range of style numbers used for annotations
5200 void AnnotationSetStyleOffset(int style
);
5203 Get the start of the range of style numbers used for annotations
5205 int AnnotationGetStyleOffset() const;
5208 Add a container action to the undo stack
5210 void AddUndoAction(int token
, int flags
);
5213 Find the position of a character from a point within the window.
5215 int CharPositionFromPoint(int x
, int y
);
5218 Find the position of a character from a point within the window.
5219 Return INVALID_POSITION if not close to text.
5221 int CharPositionFromPointClose(int x
, int y
);
5224 Set whether multiple selections can be made
5226 void SetMultipleSelection(bool multipleSelection
);
5229 Whether multiple selections can be made
5231 bool GetMultipleSelection() const;
5234 Set whether typing can be performed into multiple selections
5236 void SetAdditionalSelectionTyping(bool additionalSelectionTyping
);
5239 Whether typing can be performed into multiple selections
5241 bool GetAdditionalSelectionTyping() const;
5244 Set whether additional carets will blink
5246 void SetAdditionalCaretsBlink(bool additionalCaretsBlink
);
5249 Whether additional carets will blink
5251 bool GetAdditionalCaretsBlink() const;
5254 Set whether additional carets are visible
5256 void SetAdditionalCaretsVisible(bool additionalCaretsBlink
);
5259 Whether additional carets are visible
5261 bool GetAdditionalCaretsVisible() const;
5264 How many selections are there?
5266 int GetSelections() const;
5269 Clear selections to a single empty stream selection
5271 void ClearSelections();
5276 int AddSelection(int caret
, int anchor
);
5279 Set the main selection
5281 void SetMainSelection(int selection
);
5284 Which selection is the main selection
5286 int GetMainSelection() const;
5287 void SetSelectionNCaret(int selection
, int pos
);
5288 int GetSelectionNCaret(int selection
) const;
5289 void SetSelectionNAnchor(int selection
, int posAnchor
);
5290 int GetSelectionNAnchor(int selection
) const;
5291 void SetSelectionNCaretVirtualSpace(int selection
, int space
);
5292 int GetSelectionNCaretVirtualSpace(int selection
) const;
5293 void SetSelectionNAnchorVirtualSpace(int selection
, int space
);
5294 int GetSelectionNAnchorVirtualSpace(int selection
) const;
5297 Sets the position that starts the selection - this becomes the anchor.
5299 void SetSelectionNStart(int selection
, int pos
);
5302 Returns the position at the start of the selection.
5304 int GetSelectionNStart(int selection
) const;
5307 Sets the position that ends the selection - this becomes the currentPosition.
5309 void SetSelectionNEnd(int selection
, int pos
);
5312 Returns the position at the end of the selection.
5314 int GetSelectionNEnd(int selection
) const;
5315 void SetRectangularSelectionCaret(int pos
);
5316 int GetRectangularSelectionCaret() const;
5317 void SetRectangularSelectionAnchor(int posAnchor
);
5318 int GetRectangularSelectionAnchor() const;
5319 void SetRectangularSelectionCaretVirtualSpace(int space
);
5320 int GetRectangularSelectionCaretVirtualSpace() const;
5321 void SetRectangularSelectionAnchorVirtualSpace(int space
);
5322 int GetRectangularSelectionAnchorVirtualSpace() const;
5323 void SetVirtualSpaceOptions(int virtualSpaceOptions
);
5324 int GetVirtualSpaceOptions() const;
5327 On GTK+, allow selecting the modifier key to use for mouse-based
5328 rectangular selection. Often the window manager requires Alt+Mouse Drag
5330 Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER.
5332 void SetRectangularSelectionModifier(int modifier
);
5335 Get the modifier key used for rectangular selection.
5337 int GetRectangularSelectionModifier() const;
5340 Set the foreground colour of additional selections.
5341 Must have previously called SetSelFore with non-zero first argument for this to have an effect.
5343 void SetAdditionalSelForeground(const wxColour
& fore
);
5346 Set the background colour of additional selections.
5347 Must have previously called SetSelBack with non-zero first argument for this to have an effect.
5349 void SetAdditionalSelBackground(const wxColour
& back
);
5352 Set the alpha of the selection.
5354 void SetAdditionalSelAlpha(int alpha
);
5357 Get the alpha of the selection.
5359 int GetAdditionalSelAlpha() const;
5362 Set the foreground colour of additional carets.
5364 void SetAdditionalCaretForeground(const wxColour
& fore
);
5367 Get the foreground colour of additional carets.
5369 wxColour
GetAdditionalCaretForeground() const;
5372 Set the main selection to the next selection.
5374 void RotateSelection();
5377 Swap that caret and anchor of the main selection.
5379 void SwapMainAnchorCaret();
5382 Indicate that the internal state of a lexer has changed over a range and therefore
5383 there may be a need to redraw.
5385 int ChangeLexerState(int start
, int end
);
5388 Find the next line at or after lineStart that is a contracted fold header line.
5389 Return -1 when no more lines.
5391 int ContractedFoldNext(int lineStart
);
5394 Centre current line in window.
5396 void VerticalCentreCaret();
5399 Move the selected lines up one line, shifting the line above after the selection
5401 void MoveSelectedLinesUp();
5404 Move the selected lines down one line, shifting the line below before the selection
5406 void MoveSelectedLinesDown();
5409 Set the identifier reported as idFrom in notification messages.
5411 void SetIdentifier(int identifier
);
5416 int GetIdentifier() const;
5419 Set the width for future RGBA image data.
5421 void RGBAImageSetWidth(int width
);
5424 Set the height for future RGBA image data.
5426 void RGBAImageSetHeight(int height
);
5429 Define a marker from RGBA data.
5430 It has the width and height from RGBAImageSetWidth/Height
5432 void MarkerDefineRGBAImage(int markerNumber
, const unsigned char* pixels
);
5435 Register an RGBA image for use in autocompletion lists.
5436 It has the width and height from RGBAImageSetWidth/Height
5438 void RegisterRGBAImage(int type
, const unsigned char* pixels
);
5441 Scroll to start of document.
5443 void ScrollToStart();
5446 Scroll to end of document.
5451 Set the technology used.
5453 void SetTechnology(int technology
);
5458 int GetTechnology() const;
5463 void* CreateLoader(int bytes
) const;
5466 Start notifying the container of all key presses and commands.
5471 Stop notifying the container of all key presses and commands.
5476 Set the lexing language of the document.
5478 void SetLexer(int lexer
);
5481 Retrieve the lexing language of the document.
5483 int GetLexer() const;
5486 Colourise a segment of the document using the current lexing language.
5488 void Colourise(int start
, int end
);
5491 Set up a value that may be used by a lexer for some optional feature.
5493 void SetProperty(const wxString
& key
, const wxString
& value
);
5496 Set up the key words used by the lexer.
5498 void SetKeyWords(int keywordSet
, const wxString
& keyWords
);
5501 Set the lexing language of the document based on string name.
5503 void SetLexerLanguage(const wxString
& language
);
5506 Retrieve a 'property' value previously set with SetProperty.
5508 wxString
GetProperty(const wxString
& key
);
5511 Retrieve a 'property' value previously set with SetProperty,
5512 with '$()' variable replacement on returned buffer.
5514 wxString
GetPropertyExpanded(const wxString
& key
);
5517 Retrieve a 'property' value previously set with SetProperty,
5518 interpreted as an int AFTER any '$()' variable replacement.
5520 int GetPropertyInt(const wxString
& key
) const;
5523 Retrieve the number of bits the current lexer needs for styling.
5525 int GetStyleBitsNeeded() const;
5528 For private communication between an application and a known lexer.
5530 void* PrivateLexerCall(int operation
, void* pointer
);
5533 Retrieve a '\n' separated list of properties understood by the current lexer.
5535 wxString
PropertyNames() const;
5538 Retrieve the type of a property.
5540 int PropertyType(const wxString
& name
);
5543 Describe a property.
5545 wxString
DescribeProperty(const wxString
& name
) const;
5548 Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer.
5550 wxString
DescribeKeyWordSets() const;
5556 // **** Manually declared methods
5560 Returns the line number of the line with the caret.
5562 int GetCurrentLine();
5565 Extract style settings from a spec-string which is composed of one or
5566 more of the following comma separated elements:
5569 italic turns on italics
5570 fore:[name or \#RRGGBB] sets the foreground colour
5571 back:[name or \#RRGGBB] sets the background colour
5572 face:[facename] sets the font face name to use
5573 size:[num] sets the font size in points
5574 eol turns on eol filling
5575 underline turns on underlining
5577 void StyleSetSpec(int styleNum
, const wxString
& spec
);
5581 Get the font of a style.
5583 wxFont
StyleGetFont(int style
);
5587 Set style size, face, bold, italic, and underline attributes from
5588 a wxFont's attributes.
5590 void StyleSetFont(int styleNum
, wxFont
& font
);
5595 Set all font style attributes at once.
5597 void StyleSetFontAttr(int styleNum
, int size
,
5598 const wxString
& faceName
,
5599 bool bold
, bool italic
,
5601 wxFontEncoding encoding
=wxFONTENCODING_DEFAULT
);
5605 Set the character set of the font in a style. Converts the Scintilla
5606 character set values to a wxFontEncoding.
5608 void StyleSetCharacterSet(int style
, int characterSet
);
5611 Set the font encoding to be used by a style.
5613 void StyleSetFontEncoding(int style
, wxFontEncoding encoding
);
5617 Perform one of the operations defined by the wxSTC_CMD_* constants.
5619 void CmdKeyExecute(int cmd
);
5623 Set the left and right margin in the edit area, measured in pixels.
5625 void SetMargins(int left
, int right
);
5629 Retrieve the point in the window where a position is displayed.
5631 wxPoint
PointFromPosition(int pos
);
5635 Scroll enough to make the given line visible
5637 void ScrollToLine(int line
);
5641 Scroll enough to make the given column visible
5643 void ScrollToColumn(int column
);
5647 Send a message to Scintilla
5649 wxIntPtr
SendMsg(int msg
, wxUIntPtr wp
=0, wxIntPtr lp
=0) const;
5653 Set the vertical scrollbar to use instead of the ont that's built-in.
5655 void SetVScrollBar(wxScrollBar
* bar
);
5659 Set the horizontal scrollbar to use instead of the ont that's built-in.
5661 void SetHScrollBar(wxScrollBar
* bar
);
5664 Can be used to prevent the EVT_CHAR handler from adding the char
5666 bool GetLastKeydownProcessed();
5667 void SetLastKeydownProcessed(bool val
);
5670 Write the contents of the editor to filename
5672 bool SaveFile(const wxString
& filename
);
5675 Load the contents of filename into the editor
5677 bool LoadFile(const wxString
& filename
);
5680 Allow for simulating a DnD DragOver
5682 wxDragResult
DoDragOver(wxCoord x
, wxCoord y
, wxDragResult defaultRes
);
5685 Allow for simulating a DnD DropText
5687 bool DoDropText(long x
, long y
, const wxString
& data
);
5690 Clear annotations from the given line.
5692 void AnnotationClearLine(int line
);
5696 Add text to the document at current position.
5698 void AddTextRaw(const char* text
, int length
=-1);
5701 Insert string at a position.
5703 void InsertTextRaw(int pos
, const char* text
);
5706 Retrieve the text of the line containing the caret.
5707 Returns the index of the caret on the line.
5709 wxCharBuffer
GetCurLineRaw(int* linePos
=NULL
);
5712 Retrieve the contents of a line.
5714 wxCharBuffer
GetLineRaw(int line
);
5717 Retrieve the selected text.
5719 wxCharBuffer
GetSelectedTextRaw();
5722 Retrieve a range of text.
5724 wxCharBuffer
GetTextRangeRaw(int startPos
, int endPos
);
5727 Replace the contents of the document with the argument text.
5729 void SetTextRaw(const char* text
);
5732 Retrieve all the text in the document.
5734 wxCharBuffer
GetTextRaw();
5737 Append a string to the end of the document without changing the selection.
5739 void AppendTextRaw(const char* text
, int length
=-1);
5742 static wxVersionInfo
GetLibraryVersionInfo();
5746 // wxTextEntryBase pure virtual methods
5747 // ----------------------------------------------
5749 virtual void WriteText(const wxString
& text
);
5750 virtual void Remove(long from
, long to
);
5751 virtual void Replace(long from
, long to
, const wxString
& text
);
5753 virtual void SetInsertionPoint(long pos
);
5754 virtual long GetInsertionPoint() const;
5755 virtual long GetLastPosition() const;
5757 virtual void SetSelection(long from
, long to
);
5758 virtual void SelectNone();
5759 virtual void GetSelection(long *from
, long *to
) const;
5761 virtual bool IsEditable() const;
5762 virtual void SetEditable(bool editable
);
5764 // wxTextAreaBase pure virtual methods
5765 // ---------------------------------------------
5767 virtual int GetLineLength(long n
) const;
5768 virtual wxString
GetLineText(long n
) const;
5769 virtual int GetNumberOfLines() const;
5771 virtual bool IsModified() const;
5772 virtual void MarkDirty();
5773 virtual void DiscardEdits();
5775 virtual bool SetStyle(long start
, long end
, const wxTextAttr
& style
);
5776 virtual bool GetStyle(long position
, wxTextAttr
& style
);
5777 virtual bool SetDefaultStyle(const wxTextAttr
& style
);
5779 virtual long XYToPosition(long x
, long y
) const;
5780 virtual bool PositionToXY(long pos
, long *x
, long *y
) const;
5782 virtual void ShowPosition(long pos
);
5784 virtual wxTextCtrlHitTestResult
HitTest(const wxPoint
& pt
, long *pos
) const;
5785 virtual wxTextCtrlHitTestResult
HitTest(const wxPoint
& pt
,
5787 wxTextCoord
*row
) const;
5790 //----------------------------------------------------------------------
5793 @class wxStyledTextEvent
5795 The type of events sent from wxStyledTextCtrl.
5797 @todo list styled text ctrl events.
5800 @category{events,stc}
5803 class wxStyledTextEvent
: public wxCommandEvent
{
5805 wxStyledTextEvent(wxEventType commandType
=0, int id
=0);
5806 wxStyledTextEvent(const wxStyledTextEvent
& event
);
5807 ~wxStyledTextEvent();
5809 void SetPosition(int pos
);
5811 void SetModifiers(int m
);
5812 void SetModificationType(int t
);
5813 void SetText(const wxString
& t
);
5814 void SetLength(int len
);
5815 void SetLinesAdded(int num
);
5816 void SetLine(int val
);
5817 void SetFoldLevelNow(int val
);
5818 void SetFoldLevelPrev(int val
);
5819 void SetMargin(int val
);
5820 void SetMessage(int val
);
5821 void SetWParam(int val
);
5822 void SetLParam(int val
);
5823 void SetListType(int val
);
5826 void SetToken(int val
);
5827 void SetAnnotationLinesAdded(int val
);
5828 void SetUpdated(int val
);
5829 void SetDragText(const wxString
& val
);
5830 void SetDragFlags(int flags
);
5831 void SetDragResult(wxDragResult val
);
5833 int GetPosition() const;
5835 int GetModifiers() const;
5836 int GetModificationType() const;
5837 wxString
GetText() const;
5838 int GetLength() const;
5839 int GetLinesAdded() const;
5840 int GetLine() const;
5841 int GetFoldLevelNow() const;
5842 int GetFoldLevelPrev() const;
5843 int GetMargin() const;
5844 int GetMessage() const;
5845 int GetWParam() const;
5846 int GetLParam() const;
5847 int GetListType() const;
5850 int GetToken() const;
5851 int GetAnnotationsLinesAdded() const;
5852 int GetUpdated() const;
5854 wxString
GetDragText();
5856 wxDragResult
GetDragResult();
5858 bool GetShift() const;
5859 bool GetControl() const;
5860 bool GetAlt() const;
5865 const wxEventType wxEVT_STC_CHANGE
;
5866 const wxEventType wxEVT_STC_STYLENEEDED
;
5867 const wxEventType wxEVT_STC_CHARADDED
;
5868 const wxEventType wxEVT_STC_SAVEPOINTREACHED
;
5869 const wxEventType wxEVT_STC_SAVEPOINTLEFT
;
5870 const wxEventType wxEVT_STC_ROMODIFYATTEMPT
;
5871 const wxEventType wxEVT_STC_KEY
;
5872 const wxEventType wxEVT_STC_DOUBLECLICK
;
5873 const wxEventType wxEVT_STC_UPDATEUI
;
5874 const wxEventType wxEVT_STC_MODIFIED
;
5875 const wxEventType wxEVT_STC_MACRORECORD
;
5876 const wxEventType wxEVT_STC_MARGINCLICK
;
5877 const wxEventType wxEVT_STC_NEEDSHOWN
;
5878 const wxEventType wxEVT_STC_PAINTED
;
5879 const wxEventType wxEVT_STC_USERLISTSELECTION
;
5880 const wxEventType wxEVT_STC_URIDROPPED
;
5881 const wxEventType wxEVT_STC_DWELLSTART
;
5882 const wxEventType wxEVT_STC_DWELLEND
;
5883 const wxEventType wxEVT_STC_START_DRAG
;
5884 const wxEventType wxEVT_STC_DRAG_OVER
;
5885 const wxEventType wxEVT_STC_DO_DROP
;
5886 const wxEventType wxEVT_STC_ZOOM
;
5887 const wxEventType wxEVT_STC_HOTSPOT_CLICK
;
5888 const wxEventType wxEVT_STC_HOTSPOT_DCLICK
;
5889 const wxEventType wxEVT_STC_CALLTIP_CLICK
;
5890 const wxEventType wxEVT_STC_AUTOCOMP_SELECTION
;
5891 const wxEventType wxEVT_STC_INDICATOR_CLICK
;
5892 const wxEventType wxEVT_STC_INDICATOR_RELEASE
;
5893 const wxEventType wxEVT_STC_AUTOCOMP_CANCELLED
;
5894 const wxEventType wxEVT_STC_AUTOCOMP_CHAR_DELETED
;
5895 const wxEventType wxEVT_STC_HOTSPOT_RELEASE_CLICK
;