1 ////////////////////////////////////////////////////////////////////////////
3 // Purpose: A wxWidgets implementation of Scintilla. This class is the
4 // one meant to be used directly by wx applications. It does not
5 // derive directly from the Scintilla classes, and in fact there
6 // is no mention of Scintilla classes at all in this header.
7 // This class delegates all method calls and events to the
8 // Scintilla objects and so forth. This allows the use of
9 // Scintilla without polluting the namespace with all the
10 // classes and itentifiers from Scintilla.
14 // Created: 13-Jan-2000
16 // Copyright: (c) 2000 by Total Control Software
17 // Licence: wxWindows licence
18 /////////////////////////////////////////////////////////////////////////////
21 IMPORTANT: include/wx/stc/stc.h is generated by src/stc/gen_iface.py from
22 src/stc/stc.h.in, don't edit stc.h file as your changes will be
23 lost after the next regeneration, edit stc.h.in and rerun the
24 gen_iface.py script instead!
26 Parts of this file generated by the script are found in between
27 the special "{{{" and "}}}" markers, the rest of it is copied
28 verbatim from src.h.in.
31 #ifndef _WX_STC_STC_H_
32 #define _WX_STC_STC_H_
38 #include "wx/control.h"
40 #include "wx/stopwatch.h"
41 #include "wx/versioninfo.h"
43 #include "wx/textentry.h"
45 #include "wx/textctrl.h"
46 #endif // wxUSE_TEXTCTRL
48 class WXDLLIMPEXP_FWD_CORE wxScrollBar
;
50 // SWIG can't handle "#if" type of conditionals, only "#ifdef"
54 #if wxUSE_DRAG_AND_DROP
60 //----------------------------------------------------------------------
61 // STC constants generated section {{{
63 #define wxSTC_INVALID_POSITION -1
65 // Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages
66 // as many EM_ messages can be used although that use is deprecated.
67 #define wxSTC_START 2000
68 #define wxSTC_OPTIONAL_START 3000
69 #define wxSTC_LEXER_START 4000
70 #define wxSTC_WS_INVISIBLE 0
71 #define wxSTC_WS_VISIBLEALWAYS 1
72 #define wxSTC_WS_VISIBLEAFTERINDENT 2
73 #define wxSTC_EOL_CRLF 0
74 #define wxSTC_EOL_CR 1
75 #define wxSTC_EOL_LF 2
77 // The SC_CP_UTF8 value can be used to enter Unicode mode.
78 // This is the same value as CP_UTF8 in Windows
79 #define wxSTC_CP_UTF8 65001
80 #define wxSTC_MARKER_MAX 31
81 #define wxSTC_MARK_CIRCLE 0
82 #define wxSTC_MARK_ROUNDRECT 1
83 #define wxSTC_MARK_ARROW 2
84 #define wxSTC_MARK_SMALLRECT 3
85 #define wxSTC_MARK_SHORTARROW 4
86 #define wxSTC_MARK_EMPTY 5
87 #define wxSTC_MARK_ARROWDOWN 6
88 #define wxSTC_MARK_MINUS 7
89 #define wxSTC_MARK_PLUS 8
91 // Shapes used for outlining column.
92 #define wxSTC_MARK_VLINE 9
93 #define wxSTC_MARK_LCORNER 10
94 #define wxSTC_MARK_TCORNER 11
95 #define wxSTC_MARK_BOXPLUS 12
96 #define wxSTC_MARK_BOXPLUSCONNECTED 13
97 #define wxSTC_MARK_BOXMINUS 14
98 #define wxSTC_MARK_BOXMINUSCONNECTED 15
99 #define wxSTC_MARK_LCORNERCURVE 16
100 #define wxSTC_MARK_TCORNERCURVE 17
101 #define wxSTC_MARK_CIRCLEPLUS 18
102 #define wxSTC_MARK_CIRCLEPLUSCONNECTED 19
103 #define wxSTC_MARK_CIRCLEMINUS 20
104 #define wxSTC_MARK_CIRCLEMINUSCONNECTED 21
106 // Invisible mark that only sets the line background colour.
107 #define wxSTC_MARK_BACKGROUND 22
108 #define wxSTC_MARK_DOTDOTDOT 23
109 #define wxSTC_MARK_ARROWS 24
110 #define wxSTC_MARK_PIXMAP 25
111 #define wxSTC_MARK_FULLRECT 26
112 #define wxSTC_MARK_LEFTRECT 27
113 #define wxSTC_MARK_AVAILABLE 28
114 #define wxSTC_MARK_UNDERLINE 29
115 #define wxSTC_MARK_RGBAIMAGE 30
116 #define wxSTC_MARK_CHARACTER 10000
118 // Markers used for outlining column.
119 #define wxSTC_MARKNUM_FOLDEREND 25
120 #define wxSTC_MARKNUM_FOLDEROPENMID 26
121 #define wxSTC_MARKNUM_FOLDERMIDTAIL 27
122 #define wxSTC_MARKNUM_FOLDERTAIL 28
123 #define wxSTC_MARKNUM_FOLDERSUB 29
124 #define wxSTC_MARKNUM_FOLDER 30
125 #define wxSTC_MARKNUM_FOLDEROPEN 31
126 #define wxSTC_MASK_FOLDERS 0xFE000000
127 #define wxSTC_MARGIN_SYMBOL 0
128 #define wxSTC_MARGIN_NUMBER 1
129 #define wxSTC_MARGIN_BACK 2
130 #define wxSTC_MARGIN_FORE 3
131 #define wxSTC_MARGIN_TEXT 4
132 #define wxSTC_MARGIN_RTEXT 5
134 // Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles.
135 // Style 39 is for future use.
136 #define wxSTC_STYLE_DEFAULT 32
137 #define wxSTC_STYLE_LINENUMBER 33
138 #define wxSTC_STYLE_BRACELIGHT 34
139 #define wxSTC_STYLE_BRACEBAD 35
140 #define wxSTC_STYLE_CONTROLCHAR 36
141 #define wxSTC_STYLE_INDENTGUIDE 37
142 #define wxSTC_STYLE_CALLTIP 38
143 #define wxSTC_STYLE_LASTPREDEFINED 39
144 #define wxSTC_STYLE_MAX 255
146 // Character set identifiers are used in StyleSetCharacterSet.
147 // The values are the same as the Windows *_CHARSET values.
148 #define wxSTC_CHARSET_ANSI 0
149 #define wxSTC_CHARSET_DEFAULT 1
150 #define wxSTC_CHARSET_BALTIC 186
151 #define wxSTC_CHARSET_CHINESEBIG5 136
152 #define wxSTC_CHARSET_EASTEUROPE 238
153 #define wxSTC_CHARSET_GB2312 134
154 #define wxSTC_CHARSET_GREEK 161
155 #define wxSTC_CHARSET_HANGUL 129
156 #define wxSTC_CHARSET_MAC 77
157 #define wxSTC_CHARSET_OEM 255
158 #define wxSTC_CHARSET_RUSSIAN 204
159 #define wxSTC_CHARSET_CYRILLIC 1251
160 #define wxSTC_CHARSET_SHIFTJIS 128
161 #define wxSTC_CHARSET_SYMBOL 2
162 #define wxSTC_CHARSET_TURKISH 162
163 #define wxSTC_CHARSET_JOHAB 130
164 #define wxSTC_CHARSET_HEBREW 177
165 #define wxSTC_CHARSET_ARABIC 178
166 #define wxSTC_CHARSET_VIETNAMESE 163
167 #define wxSTC_CHARSET_THAI 222
168 #define wxSTC_CHARSET_8859_15 1000
169 #define wxSTC_CASE_MIXED 0
170 #define wxSTC_CASE_UPPER 1
171 #define wxSTC_CASE_LOWER 2
172 #define wxSTC_FONT_SIZE_MULTIPLIER 100
173 #define wxSTC_WEIGHT_NORMAL 400
174 #define wxSTC_WEIGHT_SEMIBOLD 600
175 #define wxSTC_WEIGHT_BOLD 700
177 // Indicator style enumeration and some constants
178 #define wxSTC_INDIC_PLAIN 0
179 #define wxSTC_INDIC_SQUIGGLE 1
180 #define wxSTC_INDIC_TT 2
181 #define wxSTC_INDIC_DIAGONAL 3
182 #define wxSTC_INDIC_STRIKE 4
183 #define wxSTC_INDIC_HIDDEN 5
184 #define wxSTC_INDIC_BOX 6
185 #define wxSTC_INDIC_ROUNDBOX 7
186 #define wxSTC_INDIC_STRAIGHTBOX 8
187 #define wxSTC_INDIC_DASH 9
188 #define wxSTC_INDIC_DOTS 10
189 #define wxSTC_INDIC_SQUIGGLELOW 11
190 #define wxSTC_INDIC_DOTBOX 12
191 #define wxSTC_INDIC_MAX 31
192 #define wxSTC_INDIC_CONTAINER 8
193 #define wxSTC_INDIC0_MASK 0x20
194 #define wxSTC_INDIC1_MASK 0x40
195 #define wxSTC_INDIC2_MASK 0x80
196 #define wxSTC_INDICS_MASK 0xE0
197 #define wxSTC_IV_NONE 0
198 #define wxSTC_IV_REAL 1
199 #define wxSTC_IV_LOOKFORWARD 2
200 #define wxSTC_IV_LOOKBOTH 3
202 // PrintColourMode - use same colours as screen.
203 #define wxSTC_PRINT_NORMAL 0
205 // PrintColourMode - invert the light value of each style for printing.
206 #define wxSTC_PRINT_INVERTLIGHT 1
208 // PrintColourMode - force black text on white background for printing.
209 #define wxSTC_PRINT_BLACKONWHITE 2
211 // PrintColourMode - text stays coloured, but all background is forced to be white for printing.
212 #define wxSTC_PRINT_COLOURONWHITE 3
214 // PrintColourMode - only the default-background is forced to be white for printing.
215 #define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4
216 #define wxSTC_FIND_WHOLEWORD 2
217 #define wxSTC_FIND_MATCHCASE 4
218 #define wxSTC_FIND_WORDSTART 0x00100000
219 #define wxSTC_FIND_REGEXP 0x00200000
220 #define wxSTC_FIND_POSIX 0x00400000
221 #define wxSTC_FOLDLEVELBASE 0x400
222 #define wxSTC_FOLDLEVELWHITEFLAG 0x1000
223 #define wxSTC_FOLDLEVELHEADERFLAG 0x2000
224 #define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
225 #define wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
226 #define wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
227 #define wxSTC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
228 #define wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010
229 #define wxSTC_FOLDFLAG_LEVELNUMBERS 0x0040
230 #define wxSTC_TIME_FOREVER 10000000
231 #define wxSTC_WRAP_NONE 0
232 #define wxSTC_WRAP_WORD 1
233 #define wxSTC_WRAP_CHAR 2
234 #define wxSTC_WRAPVISUALFLAG_NONE 0x0000
235 #define wxSTC_WRAPVISUALFLAG_END 0x0001
236 #define wxSTC_WRAPVISUALFLAG_START 0x0002
237 #define wxSTC_WRAPVISUALFLAG_MARGIN 0x0004
238 #define wxSTC_WRAPVISUALFLAGLOC_DEFAULT 0x0000
239 #define wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001
240 #define wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002
241 #define wxSTC_WRAPINDENT_FIXED 0
242 #define wxSTC_WRAPINDENT_SAME 1
243 #define wxSTC_WRAPINDENT_INDENT 2
244 #define wxSTC_CACHE_NONE 0
245 #define wxSTC_CACHE_CARET 1
246 #define wxSTC_CACHE_PAGE 2
247 #define wxSTC_CACHE_DOCUMENT 3
249 // Control font anti-aliasing.
250 #define wxSTC_EFF_QUALITY_MASK 0xF
251 #define wxSTC_EFF_QUALITY_DEFAULT 0
252 #define wxSTC_EFF_QUALITY_NON_ANTIALIASED 1
253 #define wxSTC_EFF_QUALITY_ANTIALIASED 2
254 #define wxSTC_EFF_QUALITY_LCD_OPTIMIZED 3
255 #define wxSTC_MULTIPASTE_ONCE 0
256 #define wxSTC_MULTIPASTE_EACH 1
257 #define wxSTC_EDGE_NONE 0
258 #define wxSTC_EDGE_LINE 1
259 #define wxSTC_EDGE_BACKGROUND 2
260 #define wxSTC_STATUS_OK 0
261 #define wxSTC_STATUS_FAILURE 1
262 #define wxSTC_STATUS_BADALLOC 2
263 #define wxSTC_CURSORNORMAL -1
264 #define wxSTC_CURSORARROW 2
265 #define wxSTC_CURSORWAIT 4
266 #define wxSTC_CURSORREVERSEARROW 7
268 // Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
269 #define wxSTC_VISIBLE_SLOP 0x01
270 #define wxSTC_VISIBLE_STRICT 0x04
272 // Caret policy, used by SetXCaretPolicy and SetYCaretPolicy.
273 // If CARET_SLOP is set, we can define a slop value: caretSlop.
274 // This value defines an unwanted zone (UZ) where the caret is... unwanted.
275 // This zone is defined as a number of pixels near the vertical margins,
276 // and as a number of lines near the horizontal margins.
277 // By keeping the caret away from the edges, it is seen within its context,
278 // so it is likely that the identifier that the caret is on can be completely seen,
279 // and that the current line is seen with some of the lines following it which are
280 // often dependent on that line.
281 #define wxSTC_CARET_SLOP 0x01
283 // If CARET_STRICT is set, the policy is enforced... strictly.
284 // The caret is centred on the display if slop is not set,
285 // and cannot go in the UZ if slop is set.
286 #define wxSTC_CARET_STRICT 0x04
288 // If CARET_JUMPS is set, the display is moved more energetically
289 // so the caret can move in the same direction longer before the policy is applied again.
290 #define wxSTC_CARET_JUMPS 0x10
292 // If CARET_EVEN is not set, instead of having symmetrical UZs,
293 // the left and bottom UZs are extended up to right and top UZs respectively.
294 // This way, we favour the displaying of useful information: the begining of lines,
295 // where most code reside, and the lines after the caret, eg. the body of a function.
296 #define wxSTC_CARET_EVEN 0x08
297 #define wxSTC_SEL_STREAM 0
298 #define wxSTC_SEL_RECTANGLE 1
299 #define wxSTC_SEL_LINES 2
300 #define wxSTC_SEL_THIN 3
301 #define wxSTC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE 0
302 #define wxSTC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1
303 #define wxSTC_CARETSTICKY_OFF 0
304 #define wxSTC_CARETSTICKY_ON 1
305 #define wxSTC_CARETSTICKY_WHITESPACE 2
306 #define wxSTC_ALPHA_TRANSPARENT 0
307 #define wxSTC_ALPHA_OPAQUE 255
308 #define wxSTC_ALPHA_NOALPHA 256
309 #define wxSTC_CARETSTYLE_INVISIBLE 0
310 #define wxSTC_CARETSTYLE_LINE 1
311 #define wxSTC_CARETSTYLE_BLOCK 2
312 #define wxSTC_MARGINOPTION_NONE 0
313 #define wxSTC_MARGINOPTION_SUBLINESELECT 1
314 #define wxSTC_ANNOTATION_HIDDEN 0
315 #define wxSTC_ANNOTATION_STANDARD 1
316 #define wxSTC_ANNOTATION_BOXED 2
317 #define wxSTC_UNDO_MAY_COALESCE 1
318 #define wxSTC_SCVS_NONE 0
319 #define wxSTC_SCVS_RECTANGULARSELECTION 1
320 #define wxSTC_SCVS_USERACCESSIBLE 2
321 #define wxSTC_TECHNOLOGY_DEFAULT 0
322 #define wxSTC_TECHNOLOGY_DIRECTWRITE 1
324 // Maximum value of keywordSet parameter of SetKeyWords.
325 #define wxSTC_KEYWORDSET_MAX 8
326 #define wxSTC_TYPE_BOOLEAN 0
327 #define wxSTC_TYPE_INTEGER 1
328 #define wxSTC_TYPE_STRING 2
331 // Type of modification and the action which caused the modification.
332 // These are defined as a bit mask to make it easy to specify which notifications are wanted.
333 // One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
334 #define wxSTC_MOD_INSERTTEXT 0x1
335 #define wxSTC_MOD_DELETETEXT 0x2
336 #define wxSTC_MOD_CHANGESTYLE 0x4
337 #define wxSTC_MOD_CHANGEFOLD 0x8
338 #define wxSTC_PERFORMED_USER 0x10
339 #define wxSTC_PERFORMED_UNDO 0x20
340 #define wxSTC_PERFORMED_REDO 0x40
341 #define wxSTC_MULTISTEPUNDOREDO 0x80
342 #define wxSTC_LASTSTEPINUNDOREDO 0x100
343 #define wxSTC_MOD_CHANGEMARKER 0x200
344 #define wxSTC_MOD_BEFOREINSERT 0x400
345 #define wxSTC_MOD_BEFOREDELETE 0x800
346 #define wxSTC_MULTILINEUNDOREDO 0x1000
347 #define wxSTC_STARTACTION 0x2000
348 #define wxSTC_MOD_CHANGEINDICATOR 0x4000
349 #define wxSTC_MOD_CHANGELINESTATE 0x8000
350 #define wxSTC_MOD_CHANGEMARGIN 0x10000
351 #define wxSTC_MOD_CHANGEANNOTATION 0x20000
352 #define wxSTC_MOD_CONTAINER 0x40000
353 #define wxSTC_MOD_LEXERSTATE 0x80000
354 #define wxSTC_MODEVENTMASKALL 0xFFFFF
355 #define wxSTC_UPDATE_CONTENT 0x1
356 #define wxSTC_UPDATE_SELECTION 0x2
357 #define wxSTC_UPDATE_V_SCROLL 0x4
358 #define wxSTC_UPDATE_H_SCROLL 0x8
360 // Symbolic key codes and modifier flags.
361 // ASCII and other printable characters below 256.
362 // Extended keys above 300.
363 #define wxSTC_KEY_DOWN 300
364 #define wxSTC_KEY_UP 301
365 #define wxSTC_KEY_LEFT 302
366 #define wxSTC_KEY_RIGHT 303
367 #define wxSTC_KEY_HOME 304
368 #define wxSTC_KEY_END 305
369 #define wxSTC_KEY_PRIOR 306
370 #define wxSTC_KEY_NEXT 307
371 #define wxSTC_KEY_DELETE 308
372 #define wxSTC_KEY_INSERT 309
373 #define wxSTC_KEY_ESCAPE 7
374 #define wxSTC_KEY_BACK 8
375 #define wxSTC_KEY_TAB 9
376 #define wxSTC_KEY_RETURN 13
377 #define wxSTC_KEY_ADD 310
378 #define wxSTC_KEY_SUBTRACT 311
379 #define wxSTC_KEY_DIVIDE 312
380 #define wxSTC_KEY_WIN 313
381 #define wxSTC_KEY_RWIN 314
382 #define wxSTC_KEY_MENU 315
383 #define wxSTC_SCMOD_NORM 0
384 #define wxSTC_SCMOD_SHIFT 1
385 #define wxSTC_SCMOD_CTRL 2
386 #define wxSTC_SCMOD_ALT 4
387 #define wxSTC_SCMOD_SUPER 8
388 #define wxSTC_SCMOD_META 16
391 #define wxSTC_LEX_CONTAINER 0
392 #define wxSTC_LEX_NULL 1
393 #define wxSTC_LEX_PYTHON 2
394 #define wxSTC_LEX_CPP 3
395 #define wxSTC_LEX_HTML 4
396 #define wxSTC_LEX_XML 5
397 #define wxSTC_LEX_PERL 6
398 #define wxSTC_LEX_SQL 7
399 #define wxSTC_LEX_VB 8
400 #define wxSTC_LEX_PROPERTIES 9
401 #define wxSTC_LEX_ERRORLIST 10
402 #define wxSTC_LEX_MAKEFILE 11
403 #define wxSTC_LEX_BATCH 12
404 #define wxSTC_LEX_XCODE 13
405 #define wxSTC_LEX_LATEX 14
406 #define wxSTC_LEX_LUA 15
407 #define wxSTC_LEX_DIFF 16
408 #define wxSTC_LEX_CONF 17
409 #define wxSTC_LEX_PASCAL 18
410 #define wxSTC_LEX_AVE 19
411 #define wxSTC_LEX_ADA 20
412 #define wxSTC_LEX_LISP 21
413 #define wxSTC_LEX_RUBY 22
414 #define wxSTC_LEX_EIFFEL 23
415 #define wxSTC_LEX_EIFFELKW 24
416 #define wxSTC_LEX_TCL 25
417 #define wxSTC_LEX_NNCRONTAB 26
418 #define wxSTC_LEX_BULLANT 27
419 #define wxSTC_LEX_VBSCRIPT 28
420 #define wxSTC_LEX_BAAN 31
421 #define wxSTC_LEX_MATLAB 32
422 #define wxSTC_LEX_SCRIPTOL 33
423 #define wxSTC_LEX_ASM 34
424 #define wxSTC_LEX_CPPNOCASE 35
425 #define wxSTC_LEX_FORTRAN 36
426 #define wxSTC_LEX_F77 37
427 #define wxSTC_LEX_CSS 38
428 #define wxSTC_LEX_POV 39
429 #define wxSTC_LEX_LOUT 40
430 #define wxSTC_LEX_ESCRIPT 41
431 #define wxSTC_LEX_PS 42
432 #define wxSTC_LEX_NSIS 43
433 #define wxSTC_LEX_MMIXAL 44
434 #define wxSTC_LEX_CLW 45
435 #define wxSTC_LEX_CLWNOCASE 46
436 #define wxSTC_LEX_LOT 47
437 #define wxSTC_LEX_YAML 48
438 #define wxSTC_LEX_TEX 49
439 #define wxSTC_LEX_METAPOST 50
440 #define wxSTC_LEX_POWERBASIC 51
441 #define wxSTC_LEX_FORTH 52
442 #define wxSTC_LEX_ERLANG 53
443 #define wxSTC_LEX_OCTAVE 54
444 #define wxSTC_LEX_MSSQL 55
445 #define wxSTC_LEX_VERILOG 56
446 #define wxSTC_LEX_KIX 57
447 #define wxSTC_LEX_GUI4CLI 58
448 #define wxSTC_LEX_SPECMAN 59
449 #define wxSTC_LEX_AU3 60
450 #define wxSTC_LEX_APDL 61
451 #define wxSTC_LEX_BASH 62
452 #define wxSTC_LEX_ASN1 63
453 #define wxSTC_LEX_VHDL 64
454 #define wxSTC_LEX_CAML 65
455 #define wxSTC_LEX_BLITZBASIC 66
456 #define wxSTC_LEX_PUREBASIC 67
457 #define wxSTC_LEX_HASKELL 68
458 #define wxSTC_LEX_PHPSCRIPT 69
459 #define wxSTC_LEX_TADS3 70
460 #define wxSTC_LEX_REBOL 71
461 #define wxSTC_LEX_SMALLTALK 72
462 #define wxSTC_LEX_FLAGSHIP 73
463 #define wxSTC_LEX_CSOUND 74
464 #define wxSTC_LEX_FREEBASIC 75
465 #define wxSTC_LEX_INNOSETUP 76
466 #define wxSTC_LEX_OPAL 77
467 #define wxSTC_LEX_SPICE 78
468 #define wxSTC_LEX_D 79
469 #define wxSTC_LEX_CMAKE 80
470 #define wxSTC_LEX_GAP 81
471 #define wxSTC_LEX_PLM 82
472 #define wxSTC_LEX_PROGRESS 83
473 #define wxSTC_LEX_ABAQUS 84
474 #define wxSTC_LEX_ASYMPTOTE 85
475 #define wxSTC_LEX_R 86
476 #define wxSTC_LEX_MAGIK 87
477 #define wxSTC_LEX_POWERSHELL 88
478 #define wxSTC_LEX_MYSQL 89
479 #define wxSTC_LEX_PO 90
480 #define wxSTC_LEX_TAL 91
481 #define wxSTC_LEX_COBOL 92
482 #define wxSTC_LEX_TACL 93
483 #define wxSTC_LEX_SORCUS 94
484 #define wxSTC_LEX_POWERPRO 95
485 #define wxSTC_LEX_NIMROD 96
486 #define wxSTC_LEX_SML 97
487 #define wxSTC_LEX_MARKDOWN 98
488 #define wxSTC_LEX_TXT2TAGS 99
489 #define wxSTC_LEX_A68K 100
490 #define wxSTC_LEX_MODULA 101
491 #define wxSTC_LEX_COFFEESCRIPT 102
492 #define wxSTC_LEX_TCMD 103
493 #define wxSTC_LEX_AVS 104
494 #define wxSTC_LEX_ECL 105
495 #define wxSTC_LEX_OSCRIPT 106
496 #define wxSTC_LEX_VISUALPROLOG 107
498 // When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
499 // value assigned in sequence from SCLEX_AUTOMATIC+1.
500 #define wxSTC_LEX_AUTOMATIC 1000
502 // Lexical states for SCLEX_PYTHON
503 #define wxSTC_P_DEFAULT 0
504 #define wxSTC_P_COMMENTLINE 1
505 #define wxSTC_P_NUMBER 2
506 #define wxSTC_P_STRING 3
507 #define wxSTC_P_CHARACTER 4
508 #define wxSTC_P_WORD 5
509 #define wxSTC_P_TRIPLE 6
510 #define wxSTC_P_TRIPLEDOUBLE 7
511 #define wxSTC_P_CLASSNAME 8
512 #define wxSTC_P_DEFNAME 9
513 #define wxSTC_P_OPERATOR 10
514 #define wxSTC_P_IDENTIFIER 11
515 #define wxSTC_P_COMMENTBLOCK 12
516 #define wxSTC_P_STRINGEOL 13
517 #define wxSTC_P_WORD2 14
518 #define wxSTC_P_DECORATOR 15
520 // Lexical states for SCLEX_CPP
521 #define wxSTC_C_DEFAULT 0
522 #define wxSTC_C_COMMENT 1
523 #define wxSTC_C_COMMENTLINE 2
524 #define wxSTC_C_COMMENTDOC 3
525 #define wxSTC_C_NUMBER 4
526 #define wxSTC_C_WORD 5
527 #define wxSTC_C_STRING 6
528 #define wxSTC_C_CHARACTER 7
529 #define wxSTC_C_UUID 8
530 #define wxSTC_C_PREPROCESSOR 9
531 #define wxSTC_C_OPERATOR 10
532 #define wxSTC_C_IDENTIFIER 11
533 #define wxSTC_C_STRINGEOL 12
534 #define wxSTC_C_VERBATIM 13
535 #define wxSTC_C_REGEX 14
536 #define wxSTC_C_COMMENTLINEDOC 15
537 #define wxSTC_C_WORD2 16
538 #define wxSTC_C_COMMENTDOCKEYWORD 17
539 #define wxSTC_C_COMMENTDOCKEYWORDERROR 18
540 #define wxSTC_C_GLOBALCLASS 19
541 #define wxSTC_C_STRINGRAW 20
542 #define wxSTC_C_TRIPLEVERBATIM 21
543 #define wxSTC_C_HASHQUOTEDSTRING 22
544 #define wxSTC_C_PREPROCESSORCOMMENT 23
546 // Lexical states for SCLEX_D
547 #define wxSTC_D_DEFAULT 0
548 #define wxSTC_D_COMMENT 1
549 #define wxSTC_D_COMMENTLINE 2
550 #define wxSTC_D_COMMENTDOC 3
551 #define wxSTC_D_COMMENTNESTED 4
552 #define wxSTC_D_NUMBER 5
553 #define wxSTC_D_WORD 6
554 #define wxSTC_D_WORD2 7
555 #define wxSTC_D_WORD3 8
556 #define wxSTC_D_TYPEDEF 9
557 #define wxSTC_D_STRING 10
558 #define wxSTC_D_STRINGEOL 11
559 #define wxSTC_D_CHARACTER 12
560 #define wxSTC_D_OPERATOR 13
561 #define wxSTC_D_IDENTIFIER 14
562 #define wxSTC_D_COMMENTLINEDOC 15
563 #define wxSTC_D_COMMENTDOCKEYWORD 16
564 #define wxSTC_D_COMMENTDOCKEYWORDERROR 17
565 #define wxSTC_D_STRINGB 18
566 #define wxSTC_D_STRINGR 19
567 #define wxSTC_D_WORD5 20
568 #define wxSTC_D_WORD6 21
569 #define wxSTC_D_WORD7 22
571 // Lexical states for SCLEX_TCL
572 #define wxSTC_TCL_DEFAULT 0
573 #define wxSTC_TCL_COMMENT 1
574 #define wxSTC_TCL_COMMENTLINE 2
575 #define wxSTC_TCL_NUMBER 3
576 #define wxSTC_TCL_WORD_IN_QUOTE 4
577 #define wxSTC_TCL_IN_QUOTE 5
578 #define wxSTC_TCL_OPERATOR 6
579 #define wxSTC_TCL_IDENTIFIER 7
580 #define wxSTC_TCL_SUBSTITUTION 8
581 #define wxSTC_TCL_SUB_BRACE 9
582 #define wxSTC_TCL_MODIFIER 10
583 #define wxSTC_TCL_EXPAND 11
584 #define wxSTC_TCL_WORD 12
585 #define wxSTC_TCL_WORD2 13
586 #define wxSTC_TCL_WORD3 14
587 #define wxSTC_TCL_WORD4 15
588 #define wxSTC_TCL_WORD5 16
589 #define wxSTC_TCL_WORD6 17
590 #define wxSTC_TCL_WORD7 18
591 #define wxSTC_TCL_WORD8 19
592 #define wxSTC_TCL_COMMENT_BOX 20
593 #define wxSTC_TCL_BLOCK_COMMENT 21
595 // Lexical states for SCLEX_HTML, SCLEX_XML
596 #define wxSTC_H_DEFAULT 0
597 #define wxSTC_H_TAG 1
598 #define wxSTC_H_TAGUNKNOWN 2
599 #define wxSTC_H_ATTRIBUTE 3
600 #define wxSTC_H_ATTRIBUTEUNKNOWN 4
601 #define wxSTC_H_NUMBER 5
602 #define wxSTC_H_DOUBLESTRING 6
603 #define wxSTC_H_SINGLESTRING 7
604 #define wxSTC_H_OTHER 8
605 #define wxSTC_H_COMMENT 9
606 #define wxSTC_H_ENTITY 10
609 #define wxSTC_H_TAGEND 11
610 #define wxSTC_H_XMLSTART 12
611 #define wxSTC_H_XMLEND 13
612 #define wxSTC_H_SCRIPT 14
613 #define wxSTC_H_ASP 15
614 #define wxSTC_H_ASPAT 16
615 #define wxSTC_H_CDATA 17
616 #define wxSTC_H_QUESTION 18
619 #define wxSTC_H_VALUE 19
622 #define wxSTC_H_XCCOMMENT 20
625 #define wxSTC_H_SGML_DEFAULT 21
626 #define wxSTC_H_SGML_COMMAND 22
627 #define wxSTC_H_SGML_1ST_PARAM 23
628 #define wxSTC_H_SGML_DOUBLESTRING 24
629 #define wxSTC_H_SGML_SIMPLESTRING 25
630 #define wxSTC_H_SGML_ERROR 26
631 #define wxSTC_H_SGML_SPECIAL 27
632 #define wxSTC_H_SGML_ENTITY 28
633 #define wxSTC_H_SGML_COMMENT 29
634 #define wxSTC_H_SGML_1ST_PARAM_COMMENT 30
635 #define wxSTC_H_SGML_BLOCK_DEFAULT 31
637 // Embedded Javascript
638 #define wxSTC_HJ_START 40
639 #define wxSTC_HJ_DEFAULT 41
640 #define wxSTC_HJ_COMMENT 42
641 #define wxSTC_HJ_COMMENTLINE 43
642 #define wxSTC_HJ_COMMENTDOC 44
643 #define wxSTC_HJ_NUMBER 45
644 #define wxSTC_HJ_WORD 46
645 #define wxSTC_HJ_KEYWORD 47
646 #define wxSTC_HJ_DOUBLESTRING 48
647 #define wxSTC_HJ_SINGLESTRING 49
648 #define wxSTC_HJ_SYMBOLS 50
649 #define wxSTC_HJ_STRINGEOL 51
650 #define wxSTC_HJ_REGEX 52
653 #define wxSTC_HJA_START 55
654 #define wxSTC_HJA_DEFAULT 56
655 #define wxSTC_HJA_COMMENT 57
656 #define wxSTC_HJA_COMMENTLINE 58
657 #define wxSTC_HJA_COMMENTDOC 59
658 #define wxSTC_HJA_NUMBER 60
659 #define wxSTC_HJA_WORD 61
660 #define wxSTC_HJA_KEYWORD 62
661 #define wxSTC_HJA_DOUBLESTRING 63
662 #define wxSTC_HJA_SINGLESTRING 64
663 #define wxSTC_HJA_SYMBOLS 65
664 #define wxSTC_HJA_STRINGEOL 66
665 #define wxSTC_HJA_REGEX 67
668 #define wxSTC_HB_START 70
669 #define wxSTC_HB_DEFAULT 71
670 #define wxSTC_HB_COMMENTLINE 72
671 #define wxSTC_HB_NUMBER 73
672 #define wxSTC_HB_WORD 74
673 #define wxSTC_HB_STRING 75
674 #define wxSTC_HB_IDENTIFIER 76
675 #define wxSTC_HB_STRINGEOL 77
678 #define wxSTC_HBA_START 80
679 #define wxSTC_HBA_DEFAULT 81
680 #define wxSTC_HBA_COMMENTLINE 82
681 #define wxSTC_HBA_NUMBER 83
682 #define wxSTC_HBA_WORD 84
683 #define wxSTC_HBA_STRING 85
684 #define wxSTC_HBA_IDENTIFIER 86
685 #define wxSTC_HBA_STRINGEOL 87
688 #define wxSTC_HP_START 90
689 #define wxSTC_HP_DEFAULT 91
690 #define wxSTC_HP_COMMENTLINE 92
691 #define wxSTC_HP_NUMBER 93
692 #define wxSTC_HP_STRING 94
693 #define wxSTC_HP_CHARACTER 95
694 #define wxSTC_HP_WORD 96
695 #define wxSTC_HP_TRIPLE 97
696 #define wxSTC_HP_TRIPLEDOUBLE 98
697 #define wxSTC_HP_CLASSNAME 99
698 #define wxSTC_HP_DEFNAME 100
699 #define wxSTC_HP_OPERATOR 101
700 #define wxSTC_HP_IDENTIFIER 102
703 #define wxSTC_HPHP_COMPLEX_VARIABLE 104
706 #define wxSTC_HPA_START 105
707 #define wxSTC_HPA_DEFAULT 106
708 #define wxSTC_HPA_COMMENTLINE 107
709 #define wxSTC_HPA_NUMBER 108
710 #define wxSTC_HPA_STRING 109
711 #define wxSTC_HPA_CHARACTER 110
712 #define wxSTC_HPA_WORD 111
713 #define wxSTC_HPA_TRIPLE 112
714 #define wxSTC_HPA_TRIPLEDOUBLE 113
715 #define wxSTC_HPA_CLASSNAME 114
716 #define wxSTC_HPA_DEFNAME 115
717 #define wxSTC_HPA_OPERATOR 116
718 #define wxSTC_HPA_IDENTIFIER 117
721 #define wxSTC_HPHP_DEFAULT 118
722 #define wxSTC_HPHP_HSTRING 119
723 #define wxSTC_HPHP_SIMPLESTRING 120
724 #define wxSTC_HPHP_WORD 121
725 #define wxSTC_HPHP_NUMBER 122
726 #define wxSTC_HPHP_VARIABLE 123
727 #define wxSTC_HPHP_COMMENT 124
728 #define wxSTC_HPHP_COMMENTLINE 125
729 #define wxSTC_HPHP_HSTRING_VARIABLE 126
730 #define wxSTC_HPHP_OPERATOR 127
732 // Lexical states for SCLEX_PERL
733 #define wxSTC_PL_DEFAULT 0
734 #define wxSTC_PL_ERROR 1
735 #define wxSTC_PL_COMMENTLINE 2
736 #define wxSTC_PL_POD 3
737 #define wxSTC_PL_NUMBER 4
738 #define wxSTC_PL_WORD 5
739 #define wxSTC_PL_STRING 6
740 #define wxSTC_PL_CHARACTER 7
741 #define wxSTC_PL_PUNCTUATION 8
742 #define wxSTC_PL_PREPROCESSOR 9
743 #define wxSTC_PL_OPERATOR 10
744 #define wxSTC_PL_IDENTIFIER 11
745 #define wxSTC_PL_SCALAR 12
746 #define wxSTC_PL_ARRAY 13
747 #define wxSTC_PL_HASH 14
748 #define wxSTC_PL_SYMBOLTABLE 15
749 #define wxSTC_PL_VARIABLE_INDEXER 16
750 #define wxSTC_PL_REGEX 17
751 #define wxSTC_PL_REGSUBST 18
752 #define wxSTC_PL_LONGQUOTE 19
753 #define wxSTC_PL_BACKTICKS 20
754 #define wxSTC_PL_DATASECTION 21
755 #define wxSTC_PL_HERE_DELIM 22
756 #define wxSTC_PL_HERE_Q 23
757 #define wxSTC_PL_HERE_QQ 24
758 #define wxSTC_PL_HERE_QX 25
759 #define wxSTC_PL_STRING_Q 26
760 #define wxSTC_PL_STRING_QQ 27
761 #define wxSTC_PL_STRING_QX 28
762 #define wxSTC_PL_STRING_QR 29
763 #define wxSTC_PL_STRING_QW 30
764 #define wxSTC_PL_POD_VERB 31
765 #define wxSTC_PL_SUB_PROTOTYPE 40
766 #define wxSTC_PL_FORMAT_IDENT 41
767 #define wxSTC_PL_FORMAT 42
768 #define wxSTC_PL_STRING_VAR 43
769 #define wxSTC_PL_XLAT 44
770 #define wxSTC_PL_REGEX_VAR 54
771 #define wxSTC_PL_REGSUBST_VAR 55
772 #define wxSTC_PL_BACKTICKS_VAR 57
773 #define wxSTC_PL_HERE_QQ_VAR 61
774 #define wxSTC_PL_HERE_QX_VAR 62
775 #define wxSTC_PL_STRING_QQ_VAR 64
776 #define wxSTC_PL_STRING_QX_VAR 65
777 #define wxSTC_PL_STRING_QR_VAR 66
779 // Lexical states for SCLEX_RUBY
780 #define wxSTC_RB_DEFAULT 0
781 #define wxSTC_RB_ERROR 1
782 #define wxSTC_RB_COMMENTLINE 2
783 #define wxSTC_RB_POD 3
784 #define wxSTC_RB_NUMBER 4
785 #define wxSTC_RB_WORD 5
786 #define wxSTC_RB_STRING 6
787 #define wxSTC_RB_CHARACTER 7
788 #define wxSTC_RB_CLASSNAME 8
789 #define wxSTC_RB_DEFNAME 9
790 #define wxSTC_RB_OPERATOR 10
791 #define wxSTC_RB_IDENTIFIER 11
792 #define wxSTC_RB_REGEX 12
793 #define wxSTC_RB_GLOBAL 13
794 #define wxSTC_RB_SYMBOL 14
795 #define wxSTC_RB_MODULE_NAME 15
796 #define wxSTC_RB_INSTANCE_VAR 16
797 #define wxSTC_RB_CLASS_VAR 17
798 #define wxSTC_RB_BACKTICKS 18
799 #define wxSTC_RB_DATASECTION 19
800 #define wxSTC_RB_HERE_DELIM 20
801 #define wxSTC_RB_HERE_Q 21
802 #define wxSTC_RB_HERE_QQ 22
803 #define wxSTC_RB_HERE_QX 23
804 #define wxSTC_RB_STRING_Q 24
805 #define wxSTC_RB_STRING_QQ 25
806 #define wxSTC_RB_STRING_QX 26
807 #define wxSTC_RB_STRING_QR 27
808 #define wxSTC_RB_STRING_QW 28
809 #define wxSTC_RB_WORD_DEMOTED 29
810 #define wxSTC_RB_STDIN 30
811 #define wxSTC_RB_STDOUT 31
812 #define wxSTC_RB_STDERR 40
813 #define wxSTC_RB_UPPER_BOUND 41
815 // Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC
816 #define wxSTC_B_DEFAULT 0
817 #define wxSTC_B_COMMENT 1
818 #define wxSTC_B_NUMBER 2
819 #define wxSTC_B_KEYWORD 3
820 #define wxSTC_B_STRING 4
821 #define wxSTC_B_PREPROCESSOR 5
822 #define wxSTC_B_OPERATOR 6
823 #define wxSTC_B_IDENTIFIER 7
824 #define wxSTC_B_DATE 8
825 #define wxSTC_B_STRINGEOL 9
826 #define wxSTC_B_KEYWORD2 10
827 #define wxSTC_B_KEYWORD3 11
828 #define wxSTC_B_KEYWORD4 12
829 #define wxSTC_B_CONSTANT 13
830 #define wxSTC_B_ASM 14
831 #define wxSTC_B_LABEL 15
832 #define wxSTC_B_ERROR 16
833 #define wxSTC_B_HEXNUMBER 17
834 #define wxSTC_B_BINNUMBER 18
836 // Lexical states for SCLEX_PROPERTIES
837 #define wxSTC_PROPS_DEFAULT 0
838 #define wxSTC_PROPS_COMMENT 1
839 #define wxSTC_PROPS_SECTION 2
840 #define wxSTC_PROPS_ASSIGNMENT 3
841 #define wxSTC_PROPS_DEFVAL 4
842 #define wxSTC_PROPS_KEY 5
844 // Lexical states for SCLEX_LATEX
845 #define wxSTC_L_DEFAULT 0
846 #define wxSTC_L_COMMAND 1
847 #define wxSTC_L_TAG 2
848 #define wxSTC_L_MATH 3
849 #define wxSTC_L_COMMENT 4
850 #define wxSTC_L_TAG2 5
851 #define wxSTC_L_MATH2 6
852 #define wxSTC_L_COMMENT2 7
853 #define wxSTC_L_VERBATIM 8
854 #define wxSTC_L_SHORTCMD 9
855 #define wxSTC_L_SPECIAL 10
856 #define wxSTC_L_CMDOPT 11
857 #define wxSTC_L_ERROR 12
859 // Lexical states for SCLEX_LUA
860 #define wxSTC_LUA_DEFAULT 0
861 #define wxSTC_LUA_COMMENT 1
862 #define wxSTC_LUA_COMMENTLINE 2
863 #define wxSTC_LUA_COMMENTDOC 3
864 #define wxSTC_LUA_NUMBER 4
865 #define wxSTC_LUA_WORD 5
866 #define wxSTC_LUA_STRING 6
867 #define wxSTC_LUA_CHARACTER 7
868 #define wxSTC_LUA_LITERALSTRING 8
869 #define wxSTC_LUA_PREPROCESSOR 9
870 #define wxSTC_LUA_OPERATOR 10
871 #define wxSTC_LUA_IDENTIFIER 11
872 #define wxSTC_LUA_STRINGEOL 12
873 #define wxSTC_LUA_WORD2 13
874 #define wxSTC_LUA_WORD3 14
875 #define wxSTC_LUA_WORD4 15
876 #define wxSTC_LUA_WORD5 16
877 #define wxSTC_LUA_WORD6 17
878 #define wxSTC_LUA_WORD7 18
879 #define wxSTC_LUA_WORD8 19
880 #define wxSTC_LUA_LABEL 20
882 // Lexical states for SCLEX_ERRORLIST
883 #define wxSTC_ERR_DEFAULT 0
884 #define wxSTC_ERR_PYTHON 1
885 #define wxSTC_ERR_GCC 2
886 #define wxSTC_ERR_MS 3
887 #define wxSTC_ERR_CMD 4
888 #define wxSTC_ERR_BORLAND 5
889 #define wxSTC_ERR_PERL 6
890 #define wxSTC_ERR_NET 7
891 #define wxSTC_ERR_LUA 8
892 #define wxSTC_ERR_CTAG 9
893 #define wxSTC_ERR_DIFF_CHANGED 10
894 #define wxSTC_ERR_DIFF_ADDITION 11
895 #define wxSTC_ERR_DIFF_DELETION 12
896 #define wxSTC_ERR_DIFF_MESSAGE 13
897 #define wxSTC_ERR_PHP 14
898 #define wxSTC_ERR_ELF 15
899 #define wxSTC_ERR_IFC 16
900 #define wxSTC_ERR_IFORT 17
901 #define wxSTC_ERR_ABSF 18
902 #define wxSTC_ERR_TIDY 19
903 #define wxSTC_ERR_JAVA_STACK 20
904 #define wxSTC_ERR_VALUE 21
906 // Lexical states for SCLEX_BATCH
907 #define wxSTC_BAT_DEFAULT 0
908 #define wxSTC_BAT_COMMENT 1
909 #define wxSTC_BAT_WORD 2
910 #define wxSTC_BAT_LABEL 3
911 #define wxSTC_BAT_HIDE 4
912 #define wxSTC_BAT_COMMAND 5
913 #define wxSTC_BAT_IDENTIFIER 6
914 #define wxSTC_BAT_OPERATOR 7
916 // Lexical states for SCLEX_TCMD
917 #define wxSTC_TCMD_DEFAULT 0
918 #define wxSTC_TCMD_COMMENT 1
919 #define wxSTC_TCMD_WORD 2
920 #define wxSTC_TCMD_LABEL 3
921 #define wxSTC_TCMD_HIDE 4
922 #define wxSTC_TCMD_COMMAND 5
923 #define wxSTC_TCMD_IDENTIFIER 6
924 #define wxSTC_TCMD_OPERATOR 7
925 #define wxSTC_TCMD_ENVIRONMENT 8
926 #define wxSTC_TCMD_EXPANSION 9
927 #define wxSTC_TCMD_CLABEL 10
929 // Lexical states for SCLEX_MAKEFILE
930 #define wxSTC_MAKE_DEFAULT 0
931 #define wxSTC_MAKE_COMMENT 1
932 #define wxSTC_MAKE_PREPROCESSOR 2
933 #define wxSTC_MAKE_IDENTIFIER 3
934 #define wxSTC_MAKE_OPERATOR 4
935 #define wxSTC_MAKE_TARGET 5
936 #define wxSTC_MAKE_IDEOL 9
938 // Lexical states for SCLEX_DIFF
939 #define wxSTC_DIFF_DEFAULT 0
940 #define wxSTC_DIFF_COMMENT 1
941 #define wxSTC_DIFF_COMMAND 2
942 #define wxSTC_DIFF_HEADER 3
943 #define wxSTC_DIFF_POSITION 4
944 #define wxSTC_DIFF_DELETED 5
945 #define wxSTC_DIFF_ADDED 6
946 #define wxSTC_DIFF_CHANGED 7
948 // Lexical states for SCLEX_CONF (Apache Configuration Files Lexer)
949 #define wxSTC_CONF_DEFAULT 0
950 #define wxSTC_CONF_COMMENT 1
951 #define wxSTC_CONF_NUMBER 2
952 #define wxSTC_CONF_IDENTIFIER 3
953 #define wxSTC_CONF_EXTENSION 4
954 #define wxSTC_CONF_PARAMETER 5
955 #define wxSTC_CONF_STRING 6
956 #define wxSTC_CONF_OPERATOR 7
957 #define wxSTC_CONF_IP 8
958 #define wxSTC_CONF_DIRECTIVE 9
960 // Lexical states for SCLEX_AVE, Avenue
961 #define wxSTC_AVE_DEFAULT 0
962 #define wxSTC_AVE_COMMENT 1
963 #define wxSTC_AVE_NUMBER 2
964 #define wxSTC_AVE_WORD 3
965 #define wxSTC_AVE_STRING 6
966 #define wxSTC_AVE_ENUM 7
967 #define wxSTC_AVE_STRINGEOL 8
968 #define wxSTC_AVE_IDENTIFIER 9
969 #define wxSTC_AVE_OPERATOR 10
970 #define wxSTC_AVE_WORD1 11
971 #define wxSTC_AVE_WORD2 12
972 #define wxSTC_AVE_WORD3 13
973 #define wxSTC_AVE_WORD4 14
974 #define wxSTC_AVE_WORD5 15
975 #define wxSTC_AVE_WORD6 16
977 // Lexical states for SCLEX_ADA
978 #define wxSTC_ADA_DEFAULT 0
979 #define wxSTC_ADA_WORD 1
980 #define wxSTC_ADA_IDENTIFIER 2
981 #define wxSTC_ADA_NUMBER 3
982 #define wxSTC_ADA_DELIMITER 4
983 #define wxSTC_ADA_CHARACTER 5
984 #define wxSTC_ADA_CHARACTEREOL 6
985 #define wxSTC_ADA_STRING 7
986 #define wxSTC_ADA_STRINGEOL 8
987 #define wxSTC_ADA_LABEL 9
988 #define wxSTC_ADA_COMMENTLINE 10
989 #define wxSTC_ADA_ILLEGAL 11
991 // Lexical states for SCLEX_BAAN
992 #define wxSTC_BAAN_DEFAULT 0
993 #define wxSTC_BAAN_COMMENT 1
994 #define wxSTC_BAAN_COMMENTDOC 2
995 #define wxSTC_BAAN_NUMBER 3
996 #define wxSTC_BAAN_WORD 4
997 #define wxSTC_BAAN_STRING 5
998 #define wxSTC_BAAN_PREPROCESSOR 6
999 #define wxSTC_BAAN_OPERATOR 7
1000 #define wxSTC_BAAN_IDENTIFIER 8
1001 #define wxSTC_BAAN_STRINGEOL 9
1002 #define wxSTC_BAAN_WORD2 10
1004 // Lexical states for SCLEX_LISP
1005 #define wxSTC_LISP_DEFAULT 0
1006 #define wxSTC_LISP_COMMENT 1
1007 #define wxSTC_LISP_NUMBER 2
1008 #define wxSTC_LISP_KEYWORD 3
1009 #define wxSTC_LISP_KEYWORD_KW 4
1010 #define wxSTC_LISP_SYMBOL 5
1011 #define wxSTC_LISP_STRING 6
1012 #define wxSTC_LISP_STRINGEOL 8
1013 #define wxSTC_LISP_IDENTIFIER 9
1014 #define wxSTC_LISP_OPERATOR 10
1015 #define wxSTC_LISP_SPECIAL 11
1016 #define wxSTC_LISP_MULTI_COMMENT 12
1018 // Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
1019 #define wxSTC_EIFFEL_DEFAULT 0
1020 #define wxSTC_EIFFEL_COMMENTLINE 1
1021 #define wxSTC_EIFFEL_NUMBER 2
1022 #define wxSTC_EIFFEL_WORD 3
1023 #define wxSTC_EIFFEL_STRING 4
1024 #define wxSTC_EIFFEL_CHARACTER 5
1025 #define wxSTC_EIFFEL_OPERATOR 6
1026 #define wxSTC_EIFFEL_IDENTIFIER 7
1027 #define wxSTC_EIFFEL_STRINGEOL 8
1029 // Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer)
1030 #define wxSTC_NNCRONTAB_DEFAULT 0
1031 #define wxSTC_NNCRONTAB_COMMENT 1
1032 #define wxSTC_NNCRONTAB_TASK 2
1033 #define wxSTC_NNCRONTAB_SECTION 3
1034 #define wxSTC_NNCRONTAB_KEYWORD 4
1035 #define wxSTC_NNCRONTAB_MODIFIER 5
1036 #define wxSTC_NNCRONTAB_ASTERISK 6
1037 #define wxSTC_NNCRONTAB_NUMBER 7
1038 #define wxSTC_NNCRONTAB_STRING 8
1039 #define wxSTC_NNCRONTAB_ENVIRONMENT 9
1040 #define wxSTC_NNCRONTAB_IDENTIFIER 10
1042 // Lexical states for SCLEX_FORTH (Forth Lexer)
1043 #define wxSTC_FORTH_DEFAULT 0
1044 #define wxSTC_FORTH_COMMENT 1
1045 #define wxSTC_FORTH_COMMENT_ML 2
1046 #define wxSTC_FORTH_IDENTIFIER 3
1047 #define wxSTC_FORTH_CONTROL 4
1048 #define wxSTC_FORTH_KEYWORD 5
1049 #define wxSTC_FORTH_DEFWORD 6
1050 #define wxSTC_FORTH_PREWORD1 7
1051 #define wxSTC_FORTH_PREWORD2 8
1052 #define wxSTC_FORTH_NUMBER 9
1053 #define wxSTC_FORTH_STRING 10
1054 #define wxSTC_FORTH_LOCALE 11
1056 // Lexical states for SCLEX_MATLAB
1057 #define wxSTC_MATLAB_DEFAULT 0
1058 #define wxSTC_MATLAB_COMMENT 1
1059 #define wxSTC_MATLAB_COMMAND 2
1060 #define wxSTC_MATLAB_NUMBER 3
1061 #define wxSTC_MATLAB_KEYWORD 4
1063 // single quoted string
1064 #define wxSTC_MATLAB_STRING 5
1065 #define wxSTC_MATLAB_OPERATOR 6
1066 #define wxSTC_MATLAB_IDENTIFIER 7
1067 #define wxSTC_MATLAB_DOUBLEQUOTESTRING 8
1069 // Lexical states for SCLEX_SCRIPTOL
1070 #define wxSTC_SCRIPTOL_DEFAULT 0
1071 #define wxSTC_SCRIPTOL_WHITE 1
1072 #define wxSTC_SCRIPTOL_COMMENTLINE 2
1073 #define wxSTC_SCRIPTOL_PERSISTENT 3
1074 #define wxSTC_SCRIPTOL_CSTYLE 4
1075 #define wxSTC_SCRIPTOL_COMMENTBLOCK 5
1076 #define wxSTC_SCRIPTOL_NUMBER 6
1077 #define wxSTC_SCRIPTOL_STRING 7
1078 #define wxSTC_SCRIPTOL_CHARACTER 8
1079 #define wxSTC_SCRIPTOL_STRINGEOL 9
1080 #define wxSTC_SCRIPTOL_KEYWORD 10
1081 #define wxSTC_SCRIPTOL_OPERATOR 11
1082 #define wxSTC_SCRIPTOL_IDENTIFIER 12
1083 #define wxSTC_SCRIPTOL_TRIPLE 13
1084 #define wxSTC_SCRIPTOL_CLASSNAME 14
1085 #define wxSTC_SCRIPTOL_PREPROCESSOR 15
1087 // Lexical states for SCLEX_ASM
1088 #define wxSTC_ASM_DEFAULT 0
1089 #define wxSTC_ASM_COMMENT 1
1090 #define wxSTC_ASM_NUMBER 2
1091 #define wxSTC_ASM_STRING 3
1092 #define wxSTC_ASM_OPERATOR 4
1093 #define wxSTC_ASM_IDENTIFIER 5
1094 #define wxSTC_ASM_CPUINSTRUCTION 6
1095 #define wxSTC_ASM_MATHINSTRUCTION 7
1096 #define wxSTC_ASM_REGISTER 8
1097 #define wxSTC_ASM_DIRECTIVE 9
1098 #define wxSTC_ASM_DIRECTIVEOPERAND 10
1099 #define wxSTC_ASM_COMMENTBLOCK 11
1100 #define wxSTC_ASM_CHARACTER 12
1101 #define wxSTC_ASM_STRINGEOL 13
1102 #define wxSTC_ASM_EXTINSTRUCTION 14
1103 #define wxSTC_ASM_COMMENTDIRECTIVE 15
1105 // Lexical states for SCLEX_FORTRAN
1106 #define wxSTC_F_DEFAULT 0
1107 #define wxSTC_F_COMMENT 1
1108 #define wxSTC_F_NUMBER 2
1109 #define wxSTC_F_STRING1 3
1110 #define wxSTC_F_STRING2 4
1111 #define wxSTC_F_STRINGEOL 5
1112 #define wxSTC_F_OPERATOR 6
1113 #define wxSTC_F_IDENTIFIER 7
1114 #define wxSTC_F_WORD 8
1115 #define wxSTC_F_WORD2 9
1116 #define wxSTC_F_WORD3 10
1117 #define wxSTC_F_PREPROCESSOR 11
1118 #define wxSTC_F_OPERATOR2 12
1119 #define wxSTC_F_LABEL 13
1120 #define wxSTC_F_CONTINUATION 14
1122 // Lexical states for SCLEX_CSS
1123 #define wxSTC_CSS_DEFAULT 0
1124 #define wxSTC_CSS_TAG 1
1125 #define wxSTC_CSS_CLASS 2
1126 #define wxSTC_CSS_PSEUDOCLASS 3
1127 #define wxSTC_CSS_UNKNOWN_PSEUDOCLASS 4
1128 #define wxSTC_CSS_OPERATOR 5
1129 #define wxSTC_CSS_IDENTIFIER 6
1130 #define wxSTC_CSS_UNKNOWN_IDENTIFIER 7
1131 #define wxSTC_CSS_VALUE 8
1132 #define wxSTC_CSS_COMMENT 9
1133 #define wxSTC_CSS_ID 10
1134 #define wxSTC_CSS_IMPORTANT 11
1135 #define wxSTC_CSS_DIRECTIVE 12
1136 #define wxSTC_CSS_DOUBLESTRING 13
1137 #define wxSTC_CSS_SINGLESTRING 14
1138 #define wxSTC_CSS_IDENTIFIER2 15
1139 #define wxSTC_CSS_ATTRIBUTE 16
1140 #define wxSTC_CSS_IDENTIFIER3 17
1141 #define wxSTC_CSS_PSEUDOELEMENT 18
1142 #define wxSTC_CSS_EXTENDED_IDENTIFIER 19
1143 #define wxSTC_CSS_EXTENDED_PSEUDOCLASS 20
1144 #define wxSTC_CSS_EXTENDED_PSEUDOELEMENT 21
1145 #define wxSTC_CSS_MEDIA 22
1146 #define wxSTC_CSS_VARIABLE 23
1148 // Lexical states for SCLEX_POV
1149 #define wxSTC_POV_DEFAULT 0
1150 #define wxSTC_POV_COMMENT 1
1151 #define wxSTC_POV_COMMENTLINE 2
1152 #define wxSTC_POV_NUMBER 3
1153 #define wxSTC_POV_OPERATOR 4
1154 #define wxSTC_POV_IDENTIFIER 5
1155 #define wxSTC_POV_STRING 6
1156 #define wxSTC_POV_STRINGEOL 7
1157 #define wxSTC_POV_DIRECTIVE 8
1158 #define wxSTC_POV_BADDIRECTIVE 9
1159 #define wxSTC_POV_WORD2 10
1160 #define wxSTC_POV_WORD3 11
1161 #define wxSTC_POV_WORD4 12
1162 #define wxSTC_POV_WORD5 13
1163 #define wxSTC_POV_WORD6 14
1164 #define wxSTC_POV_WORD7 15
1165 #define wxSTC_POV_WORD8 16
1167 // Lexical states for SCLEX_LOUT
1168 #define wxSTC_LOUT_DEFAULT 0
1169 #define wxSTC_LOUT_COMMENT 1
1170 #define wxSTC_LOUT_NUMBER 2
1171 #define wxSTC_LOUT_WORD 3
1172 #define wxSTC_LOUT_WORD2 4
1173 #define wxSTC_LOUT_WORD3 5
1174 #define wxSTC_LOUT_WORD4 6
1175 #define wxSTC_LOUT_STRING 7
1176 #define wxSTC_LOUT_OPERATOR 8
1177 #define wxSTC_LOUT_IDENTIFIER 9
1178 #define wxSTC_LOUT_STRINGEOL 10
1180 // Lexical states for SCLEX_ESCRIPT
1181 #define wxSTC_ESCRIPT_DEFAULT 0
1182 #define wxSTC_ESCRIPT_COMMENT 1
1183 #define wxSTC_ESCRIPT_COMMENTLINE 2
1184 #define wxSTC_ESCRIPT_COMMENTDOC 3
1185 #define wxSTC_ESCRIPT_NUMBER 4
1186 #define wxSTC_ESCRIPT_WORD 5
1187 #define wxSTC_ESCRIPT_STRING 6
1188 #define wxSTC_ESCRIPT_OPERATOR 7
1189 #define wxSTC_ESCRIPT_IDENTIFIER 8
1190 #define wxSTC_ESCRIPT_BRACE 9
1191 #define wxSTC_ESCRIPT_WORD2 10
1192 #define wxSTC_ESCRIPT_WORD3 11
1194 // Lexical states for SCLEX_PS
1195 #define wxSTC_PS_DEFAULT 0
1196 #define wxSTC_PS_COMMENT 1
1197 #define wxSTC_PS_DSC_COMMENT 2
1198 #define wxSTC_PS_DSC_VALUE 3
1199 #define wxSTC_PS_NUMBER 4
1200 #define wxSTC_PS_NAME 5
1201 #define wxSTC_PS_KEYWORD 6
1202 #define wxSTC_PS_LITERAL 7
1203 #define wxSTC_PS_IMMEVAL 8
1204 #define wxSTC_PS_PAREN_ARRAY 9
1205 #define wxSTC_PS_PAREN_DICT 10
1206 #define wxSTC_PS_PAREN_PROC 11
1207 #define wxSTC_PS_TEXT 12
1208 #define wxSTC_PS_HEXSTRING 13
1209 #define wxSTC_PS_BASE85STRING 14
1210 #define wxSTC_PS_BADSTRINGCHAR 15
1212 // Lexical states for SCLEX_NSIS
1213 #define wxSTC_NSIS_DEFAULT 0
1214 #define wxSTC_NSIS_COMMENT 1
1215 #define wxSTC_NSIS_STRINGDQ 2
1216 #define wxSTC_NSIS_STRINGLQ 3
1217 #define wxSTC_NSIS_STRINGRQ 4
1218 #define wxSTC_NSIS_FUNCTION 5
1219 #define wxSTC_NSIS_VARIABLE 6
1220 #define wxSTC_NSIS_LABEL 7
1221 #define wxSTC_NSIS_USERDEFINED 8
1222 #define wxSTC_NSIS_SECTIONDEF 9
1223 #define wxSTC_NSIS_SUBSECTIONDEF 10
1224 #define wxSTC_NSIS_IFDEFINEDEF 11
1225 #define wxSTC_NSIS_MACRODEF 12
1226 #define wxSTC_NSIS_STRINGVAR 13
1227 #define wxSTC_NSIS_NUMBER 14
1228 #define wxSTC_NSIS_SECTIONGROUP 15
1229 #define wxSTC_NSIS_PAGEEX 16
1230 #define wxSTC_NSIS_FUNCTIONDEF 17
1231 #define wxSTC_NSIS_COMMENTBOX 18
1233 // Lexical states for SCLEX_MMIXAL
1234 #define wxSTC_MMIXAL_LEADWS 0
1235 #define wxSTC_MMIXAL_COMMENT 1
1236 #define wxSTC_MMIXAL_LABEL 2
1237 #define wxSTC_MMIXAL_OPCODE 3
1238 #define wxSTC_MMIXAL_OPCODE_PRE 4
1239 #define wxSTC_MMIXAL_OPCODE_VALID 5
1240 #define wxSTC_MMIXAL_OPCODE_UNKNOWN 6
1241 #define wxSTC_MMIXAL_OPCODE_POST 7
1242 #define wxSTC_MMIXAL_OPERANDS 8
1243 #define wxSTC_MMIXAL_NUMBER 9
1244 #define wxSTC_MMIXAL_REF 10
1245 #define wxSTC_MMIXAL_CHAR 11
1246 #define wxSTC_MMIXAL_STRING 12
1247 #define wxSTC_MMIXAL_REGISTER 13
1248 #define wxSTC_MMIXAL_HEX 14
1249 #define wxSTC_MMIXAL_OPERATOR 15
1250 #define wxSTC_MMIXAL_SYMBOL 16
1251 #define wxSTC_MMIXAL_INCLUDE 17
1253 // Lexical states for SCLEX_CLW
1254 #define wxSTC_CLW_DEFAULT 0
1255 #define wxSTC_CLW_LABEL 1
1256 #define wxSTC_CLW_COMMENT 2
1257 #define wxSTC_CLW_STRING 3
1258 #define wxSTC_CLW_USER_IDENTIFIER 4
1259 #define wxSTC_CLW_INTEGER_CONSTANT 5
1260 #define wxSTC_CLW_REAL_CONSTANT 6
1261 #define wxSTC_CLW_PICTURE_STRING 7
1262 #define wxSTC_CLW_KEYWORD 8
1263 #define wxSTC_CLW_COMPILER_DIRECTIVE 9
1264 #define wxSTC_CLW_RUNTIME_EXPRESSIONS 10
1265 #define wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION 11
1266 #define wxSTC_CLW_STRUCTURE_DATA_TYPE 12
1267 #define wxSTC_CLW_ATTRIBUTE 13
1268 #define wxSTC_CLW_STANDARD_EQUATE 14
1269 #define wxSTC_CLW_ERROR 15
1270 #define wxSTC_CLW_DEPRECATED 16
1272 // Lexical states for SCLEX_LOT
1273 #define wxSTC_LOT_DEFAULT 0
1274 #define wxSTC_LOT_HEADER 1
1275 #define wxSTC_LOT_BREAK 2
1276 #define wxSTC_LOT_SET 3
1277 #define wxSTC_LOT_PASS 4
1278 #define wxSTC_LOT_FAIL 5
1279 #define wxSTC_LOT_ABORT 6
1281 // Lexical states for SCLEX_YAML
1282 #define wxSTC_YAML_DEFAULT 0
1283 #define wxSTC_YAML_COMMENT 1
1284 #define wxSTC_YAML_IDENTIFIER 2
1285 #define wxSTC_YAML_KEYWORD 3
1286 #define wxSTC_YAML_NUMBER 4
1287 #define wxSTC_YAML_REFERENCE 5
1288 #define wxSTC_YAML_DOCUMENT 6
1289 #define wxSTC_YAML_TEXT 7
1290 #define wxSTC_YAML_ERROR 8
1291 #define wxSTC_YAML_OPERATOR 9
1293 // Lexical states for SCLEX_TEX
1294 #define wxSTC_TEX_DEFAULT 0
1295 #define wxSTC_TEX_SPECIAL 1
1296 #define wxSTC_TEX_GROUP 2
1297 #define wxSTC_TEX_SYMBOL 3
1298 #define wxSTC_TEX_COMMAND 4
1299 #define wxSTC_TEX_TEXT 5
1300 #define wxSTC_METAPOST_DEFAULT 0
1301 #define wxSTC_METAPOST_SPECIAL 1
1302 #define wxSTC_METAPOST_GROUP 2
1303 #define wxSTC_METAPOST_SYMBOL 3
1304 #define wxSTC_METAPOST_COMMAND 4
1305 #define wxSTC_METAPOST_TEXT 5
1306 #define wxSTC_METAPOST_EXTRA 6
1308 // Lexical states for SCLEX_ERLANG
1309 #define wxSTC_ERLANG_DEFAULT 0
1310 #define wxSTC_ERLANG_COMMENT 1
1311 #define wxSTC_ERLANG_VARIABLE 2
1312 #define wxSTC_ERLANG_NUMBER 3
1313 #define wxSTC_ERLANG_KEYWORD 4
1314 #define wxSTC_ERLANG_STRING 5
1315 #define wxSTC_ERLANG_OPERATOR 6
1316 #define wxSTC_ERLANG_ATOM 7
1317 #define wxSTC_ERLANG_FUNCTION_NAME 8
1318 #define wxSTC_ERLANG_CHARACTER 9
1319 #define wxSTC_ERLANG_MACRO 10
1320 #define wxSTC_ERLANG_RECORD 11
1321 #define wxSTC_ERLANG_PREPROC 12
1322 #define wxSTC_ERLANG_NODE_NAME 13
1323 #define wxSTC_ERLANG_COMMENT_FUNCTION 14
1324 #define wxSTC_ERLANG_COMMENT_MODULE 15
1325 #define wxSTC_ERLANG_COMMENT_DOC 16
1326 #define wxSTC_ERLANG_COMMENT_DOC_MACRO 17
1327 #define wxSTC_ERLANG_ATOM_QUOTED 18
1328 #define wxSTC_ERLANG_MACRO_QUOTED 19
1329 #define wxSTC_ERLANG_RECORD_QUOTED 20
1330 #define wxSTC_ERLANG_NODE_NAME_QUOTED 21
1331 #define wxSTC_ERLANG_BIFS 22
1332 #define wxSTC_ERLANG_MODULES 23
1333 #define wxSTC_ERLANG_MODULES_ATT 24
1334 #define wxSTC_ERLANG_UNKNOWN 31
1336 // Lexical states for SCLEX_OCTAVE are identical to MatLab
1337 // Lexical states for SCLEX_MSSQL
1338 #define wxSTC_MSSQL_DEFAULT 0
1339 #define wxSTC_MSSQL_COMMENT 1
1340 #define wxSTC_MSSQL_LINE_COMMENT 2
1341 #define wxSTC_MSSQL_NUMBER 3
1342 #define wxSTC_MSSQL_STRING 4
1343 #define wxSTC_MSSQL_OPERATOR 5
1344 #define wxSTC_MSSQL_IDENTIFIER 6
1345 #define wxSTC_MSSQL_VARIABLE 7
1346 #define wxSTC_MSSQL_COLUMN_NAME 8
1347 #define wxSTC_MSSQL_STATEMENT 9
1348 #define wxSTC_MSSQL_DATATYPE 10
1349 #define wxSTC_MSSQL_SYSTABLE 11
1350 #define wxSTC_MSSQL_GLOBAL_VARIABLE 12
1351 #define wxSTC_MSSQL_FUNCTION 13
1352 #define wxSTC_MSSQL_STORED_PROCEDURE 14
1353 #define wxSTC_MSSQL_DEFAULT_PREF_DATATYPE 15
1354 #define wxSTC_MSSQL_COLUMN_NAME_2 16
1356 // Lexical states for SCLEX_VERILOG
1357 #define wxSTC_V_DEFAULT 0
1358 #define wxSTC_V_COMMENT 1
1359 #define wxSTC_V_COMMENTLINE 2
1360 #define wxSTC_V_COMMENTLINEBANG 3
1361 #define wxSTC_V_NUMBER 4
1362 #define wxSTC_V_WORD 5
1363 #define wxSTC_V_STRING 6
1364 #define wxSTC_V_WORD2 7
1365 #define wxSTC_V_WORD3 8
1366 #define wxSTC_V_PREPROCESSOR 9
1367 #define wxSTC_V_OPERATOR 10
1368 #define wxSTC_V_IDENTIFIER 11
1369 #define wxSTC_V_STRINGEOL 12
1370 #define wxSTC_V_USER 19
1372 // Lexical states for SCLEX_KIX
1373 #define wxSTC_KIX_DEFAULT 0
1374 #define wxSTC_KIX_COMMENT 1
1375 #define wxSTC_KIX_STRING1 2
1376 #define wxSTC_KIX_STRING2 3
1377 #define wxSTC_KIX_NUMBER 4
1378 #define wxSTC_KIX_VAR 5
1379 #define wxSTC_KIX_MACRO 6
1380 #define wxSTC_KIX_KEYWORD 7
1381 #define wxSTC_KIX_FUNCTIONS 8
1382 #define wxSTC_KIX_OPERATOR 9
1383 #define wxSTC_KIX_IDENTIFIER 31
1385 // Lexical states for SCLEX_GUI4CLI
1386 #define wxSTC_GC_DEFAULT 0
1387 #define wxSTC_GC_COMMENTLINE 1
1388 #define wxSTC_GC_COMMENTBLOCK 2
1389 #define wxSTC_GC_GLOBAL 3
1390 #define wxSTC_GC_EVENT 4
1391 #define wxSTC_GC_ATTRIBUTE 5
1392 #define wxSTC_GC_CONTROL 6
1393 #define wxSTC_GC_COMMAND 7
1394 #define wxSTC_GC_STRING 8
1395 #define wxSTC_GC_OPERATOR 9
1397 // Lexical states for SCLEX_SPECMAN
1398 #define wxSTC_SN_DEFAULT 0
1399 #define wxSTC_SN_CODE 1
1400 #define wxSTC_SN_COMMENTLINE 2
1401 #define wxSTC_SN_COMMENTLINEBANG 3
1402 #define wxSTC_SN_NUMBER 4
1403 #define wxSTC_SN_WORD 5
1404 #define wxSTC_SN_STRING 6
1405 #define wxSTC_SN_WORD2 7
1406 #define wxSTC_SN_WORD3 8
1407 #define wxSTC_SN_PREPROCESSOR 9
1408 #define wxSTC_SN_OPERATOR 10
1409 #define wxSTC_SN_IDENTIFIER 11
1410 #define wxSTC_SN_STRINGEOL 12
1411 #define wxSTC_SN_REGEXTAG 13
1412 #define wxSTC_SN_SIGNAL 14
1413 #define wxSTC_SN_USER 19
1415 // Lexical states for SCLEX_AU3
1416 #define wxSTC_AU3_DEFAULT 0
1417 #define wxSTC_AU3_COMMENT 1
1418 #define wxSTC_AU3_COMMENTBLOCK 2
1419 #define wxSTC_AU3_NUMBER 3
1420 #define wxSTC_AU3_FUNCTION 4
1421 #define wxSTC_AU3_KEYWORD 5
1422 #define wxSTC_AU3_MACRO 6
1423 #define wxSTC_AU3_STRING 7
1424 #define wxSTC_AU3_OPERATOR 8
1425 #define wxSTC_AU3_VARIABLE 9
1426 #define wxSTC_AU3_SENT 10
1427 #define wxSTC_AU3_PREPROCESSOR 11
1428 #define wxSTC_AU3_SPECIAL 12
1429 #define wxSTC_AU3_EXPAND 13
1430 #define wxSTC_AU3_COMOBJ 14
1431 #define wxSTC_AU3_UDF 15
1433 // Lexical states for SCLEX_APDL
1434 #define wxSTC_APDL_DEFAULT 0
1435 #define wxSTC_APDL_COMMENT 1
1436 #define wxSTC_APDL_COMMENTBLOCK 2
1437 #define wxSTC_APDL_NUMBER 3
1438 #define wxSTC_APDL_STRING 4
1439 #define wxSTC_APDL_OPERATOR 5
1440 #define wxSTC_APDL_WORD 6
1441 #define wxSTC_APDL_PROCESSOR 7
1442 #define wxSTC_APDL_COMMAND 8
1443 #define wxSTC_APDL_SLASHCOMMAND 9
1444 #define wxSTC_APDL_STARCOMMAND 10
1445 #define wxSTC_APDL_ARGUMENT 11
1446 #define wxSTC_APDL_FUNCTION 12
1448 // Lexical states for SCLEX_BASH
1449 #define wxSTC_SH_DEFAULT 0
1450 #define wxSTC_SH_ERROR 1
1451 #define wxSTC_SH_COMMENTLINE 2
1452 #define wxSTC_SH_NUMBER 3
1453 #define wxSTC_SH_WORD 4
1454 #define wxSTC_SH_STRING 5
1455 #define wxSTC_SH_CHARACTER 6
1456 #define wxSTC_SH_OPERATOR 7
1457 #define wxSTC_SH_IDENTIFIER 8
1458 #define wxSTC_SH_SCALAR 9
1459 #define wxSTC_SH_PARAM 10
1460 #define wxSTC_SH_BACKTICKS 11
1461 #define wxSTC_SH_HERE_DELIM 12
1462 #define wxSTC_SH_HERE_Q 13
1464 // Lexical states for SCLEX_ASN1
1465 #define wxSTC_ASN1_DEFAULT 0
1466 #define wxSTC_ASN1_COMMENT 1
1467 #define wxSTC_ASN1_IDENTIFIER 2
1468 #define wxSTC_ASN1_STRING 3
1469 #define wxSTC_ASN1_OID 4
1470 #define wxSTC_ASN1_SCALAR 5
1471 #define wxSTC_ASN1_KEYWORD 6
1472 #define wxSTC_ASN1_ATTRIBUTE 7
1473 #define wxSTC_ASN1_DESCRIPTOR 8
1474 #define wxSTC_ASN1_TYPE 9
1475 #define wxSTC_ASN1_OPERATOR 10
1477 // Lexical states for SCLEX_VHDL
1478 #define wxSTC_VHDL_DEFAULT 0
1479 #define wxSTC_VHDL_COMMENT 1
1480 #define wxSTC_VHDL_COMMENTLINEBANG 2
1481 #define wxSTC_VHDL_NUMBER 3
1482 #define wxSTC_VHDL_STRING 4
1483 #define wxSTC_VHDL_OPERATOR 5
1484 #define wxSTC_VHDL_IDENTIFIER 6
1485 #define wxSTC_VHDL_STRINGEOL 7
1486 #define wxSTC_VHDL_KEYWORD 8
1487 #define wxSTC_VHDL_STDOPERATOR 9
1488 #define wxSTC_VHDL_ATTRIBUTE 10
1489 #define wxSTC_VHDL_STDFUNCTION 11
1490 #define wxSTC_VHDL_STDPACKAGE 12
1491 #define wxSTC_VHDL_STDTYPE 13
1492 #define wxSTC_VHDL_USERWORD 14
1494 // Lexical states for SCLEX_CAML
1495 #define wxSTC_CAML_DEFAULT 0
1496 #define wxSTC_CAML_IDENTIFIER 1
1497 #define wxSTC_CAML_TAGNAME 2
1498 #define wxSTC_CAML_KEYWORD 3
1499 #define wxSTC_CAML_KEYWORD2 4
1500 #define wxSTC_CAML_KEYWORD3 5
1501 #define wxSTC_CAML_LINENUM 6
1502 #define wxSTC_CAML_OPERATOR 7
1503 #define wxSTC_CAML_NUMBER 8
1504 #define wxSTC_CAML_CHAR 9
1505 #define wxSTC_CAML_WHITE 10
1506 #define wxSTC_CAML_STRING 11
1507 #define wxSTC_CAML_COMMENT 12
1508 #define wxSTC_CAML_COMMENT1 13
1509 #define wxSTC_CAML_COMMENT2 14
1510 #define wxSTC_CAML_COMMENT3 15
1512 // Lexical states for SCLEX_HASKELL
1513 #define wxSTC_HA_DEFAULT 0
1514 #define wxSTC_HA_IDENTIFIER 1
1515 #define wxSTC_HA_KEYWORD 2
1516 #define wxSTC_HA_NUMBER 3
1517 #define wxSTC_HA_STRING 4
1518 #define wxSTC_HA_CHARACTER 5
1519 #define wxSTC_HA_CLASS 6
1520 #define wxSTC_HA_MODULE 7
1521 #define wxSTC_HA_CAPITAL 8
1522 #define wxSTC_HA_DATA 9
1523 #define wxSTC_HA_IMPORT 10
1524 #define wxSTC_HA_OPERATOR 11
1525 #define wxSTC_HA_INSTANCE 12
1526 #define wxSTC_HA_COMMENTLINE 13
1527 #define wxSTC_HA_COMMENTBLOCK 14
1528 #define wxSTC_HA_COMMENTBLOCK2 15
1529 #define wxSTC_HA_COMMENTBLOCK3 16
1531 // Lexical states of SCLEX_TADS3
1532 #define wxSTC_T3_DEFAULT 0
1533 #define wxSTC_T3_X_DEFAULT 1
1534 #define wxSTC_T3_PREPROCESSOR 2
1535 #define wxSTC_T3_BLOCK_COMMENT 3
1536 #define wxSTC_T3_LINE_COMMENT 4
1537 #define wxSTC_T3_OPERATOR 5
1538 #define wxSTC_T3_KEYWORD 6
1539 #define wxSTC_T3_NUMBER 7
1540 #define wxSTC_T3_IDENTIFIER 8
1541 #define wxSTC_T3_S_STRING 9
1542 #define wxSTC_T3_D_STRING 10
1543 #define wxSTC_T3_X_STRING 11
1544 #define wxSTC_T3_LIB_DIRECTIVE 12
1545 #define wxSTC_T3_MSG_PARAM 13
1546 #define wxSTC_T3_HTML_TAG 14
1547 #define wxSTC_T3_HTML_DEFAULT 15
1548 #define wxSTC_T3_HTML_STRING 16
1549 #define wxSTC_T3_USER1 17
1550 #define wxSTC_T3_USER2 18
1551 #define wxSTC_T3_USER3 19
1552 #define wxSTC_T3_BRACE 20
1554 // Lexical states for SCLEX_REBOL
1555 #define wxSTC_REBOL_DEFAULT 0
1556 #define wxSTC_REBOL_COMMENTLINE 1
1557 #define wxSTC_REBOL_COMMENTBLOCK 2
1558 #define wxSTC_REBOL_PREFACE 3
1559 #define wxSTC_REBOL_OPERATOR 4
1560 #define wxSTC_REBOL_CHARACTER 5
1561 #define wxSTC_REBOL_QUOTEDSTRING 6
1562 #define wxSTC_REBOL_BRACEDSTRING 7
1563 #define wxSTC_REBOL_NUMBER 8
1564 #define wxSTC_REBOL_PAIR 9
1565 #define wxSTC_REBOL_TUPLE 10
1566 #define wxSTC_REBOL_BINARY 11
1567 #define wxSTC_REBOL_MONEY 12
1568 #define wxSTC_REBOL_ISSUE 13
1569 #define wxSTC_REBOL_TAG 14
1570 #define wxSTC_REBOL_FILE 15
1571 #define wxSTC_REBOL_EMAIL 16
1572 #define wxSTC_REBOL_URL 17
1573 #define wxSTC_REBOL_DATE 18
1574 #define wxSTC_REBOL_TIME 19
1575 #define wxSTC_REBOL_IDENTIFIER 20
1576 #define wxSTC_REBOL_WORD 21
1577 #define wxSTC_REBOL_WORD2 22
1578 #define wxSTC_REBOL_WORD3 23
1579 #define wxSTC_REBOL_WORD4 24
1580 #define wxSTC_REBOL_WORD5 25
1581 #define wxSTC_REBOL_WORD6 26
1582 #define wxSTC_REBOL_WORD7 27
1583 #define wxSTC_REBOL_WORD8 28
1585 // Lexical states for SCLEX_SQL
1586 #define wxSTC_SQL_DEFAULT 0
1587 #define wxSTC_SQL_COMMENT 1
1588 #define wxSTC_SQL_COMMENTLINE 2
1589 #define wxSTC_SQL_COMMENTDOC 3
1590 #define wxSTC_SQL_NUMBER 4
1591 #define wxSTC_SQL_WORD 5
1592 #define wxSTC_SQL_STRING 6
1593 #define wxSTC_SQL_CHARACTER 7
1594 #define wxSTC_SQL_SQLPLUS 8
1595 #define wxSTC_SQL_SQLPLUS_PROMPT 9
1596 #define wxSTC_SQL_OPERATOR 10
1597 #define wxSTC_SQL_IDENTIFIER 11
1598 #define wxSTC_SQL_SQLPLUS_COMMENT 13
1599 #define wxSTC_SQL_COMMENTLINEDOC 15
1600 #define wxSTC_SQL_WORD2 16
1601 #define wxSTC_SQL_COMMENTDOCKEYWORD 17
1602 #define wxSTC_SQL_COMMENTDOCKEYWORDERROR 18
1603 #define wxSTC_SQL_USER1 19
1604 #define wxSTC_SQL_USER2 20
1605 #define wxSTC_SQL_USER3 21
1606 #define wxSTC_SQL_USER4 22
1607 #define wxSTC_SQL_QUOTEDIDENTIFIER 23
1609 // Lexical states for SCLEX_SMALLTALK
1610 #define wxSTC_ST_DEFAULT 0
1611 #define wxSTC_ST_STRING 1
1612 #define wxSTC_ST_NUMBER 2
1613 #define wxSTC_ST_COMMENT 3
1614 #define wxSTC_ST_SYMBOL 4
1615 #define wxSTC_ST_BINARY 5
1616 #define wxSTC_ST_BOOL 6
1617 #define wxSTC_ST_SELF 7
1618 #define wxSTC_ST_SUPER 8
1619 #define wxSTC_ST_NIL 9
1620 #define wxSTC_ST_GLOBAL 10
1621 #define wxSTC_ST_RETURN 11
1622 #define wxSTC_ST_SPECIAL 12
1623 #define wxSTC_ST_KWSEND 13
1624 #define wxSTC_ST_ASSIGN 14
1625 #define wxSTC_ST_CHARACTER 15
1626 #define wxSTC_ST_SPEC_SEL 16
1628 // Lexical states for SCLEX_FLAGSHIP (clipper)
1629 #define wxSTC_FS_DEFAULT 0
1630 #define wxSTC_FS_COMMENT 1
1631 #define wxSTC_FS_COMMENTLINE 2
1632 #define wxSTC_FS_COMMENTDOC 3
1633 #define wxSTC_FS_COMMENTLINEDOC 4
1634 #define wxSTC_FS_COMMENTDOCKEYWORD 5
1635 #define wxSTC_FS_COMMENTDOCKEYWORDERROR 6
1636 #define wxSTC_FS_KEYWORD 7
1637 #define wxSTC_FS_KEYWORD2 8
1638 #define wxSTC_FS_KEYWORD3 9
1639 #define wxSTC_FS_KEYWORD4 10
1640 #define wxSTC_FS_NUMBER 11
1641 #define wxSTC_FS_STRING 12
1642 #define wxSTC_FS_PREPROCESSOR 13
1643 #define wxSTC_FS_OPERATOR 14
1644 #define wxSTC_FS_IDENTIFIER 15
1645 #define wxSTC_FS_DATE 16
1646 #define wxSTC_FS_STRINGEOL 17
1647 #define wxSTC_FS_CONSTANT 18
1648 #define wxSTC_FS_WORDOPERATOR 19
1649 #define wxSTC_FS_DISABLEDCODE 20
1650 #define wxSTC_FS_DEFAULT_C 21
1651 #define wxSTC_FS_COMMENTDOC_C 22
1652 #define wxSTC_FS_COMMENTLINEDOC_C 23
1653 #define wxSTC_FS_KEYWORD_C 24
1654 #define wxSTC_FS_KEYWORD2_C 25
1655 #define wxSTC_FS_NUMBER_C 26
1656 #define wxSTC_FS_STRING_C 27
1657 #define wxSTC_FS_PREPROCESSOR_C 28
1658 #define wxSTC_FS_OPERATOR_C 29
1659 #define wxSTC_FS_IDENTIFIER_C 30
1660 #define wxSTC_FS_STRINGEOL_C 31
1662 // Lexical states for SCLEX_CSOUND
1663 #define wxSTC_CSOUND_DEFAULT 0
1664 #define wxSTC_CSOUND_COMMENT 1
1665 #define wxSTC_CSOUND_NUMBER 2
1666 #define wxSTC_CSOUND_OPERATOR 3
1667 #define wxSTC_CSOUND_INSTR 4
1668 #define wxSTC_CSOUND_IDENTIFIER 5
1669 #define wxSTC_CSOUND_OPCODE 6
1670 #define wxSTC_CSOUND_HEADERSTMT 7
1671 #define wxSTC_CSOUND_USERKEYWORD 8
1672 #define wxSTC_CSOUND_COMMENTBLOCK 9
1673 #define wxSTC_CSOUND_PARAM 10
1674 #define wxSTC_CSOUND_ARATE_VAR 11
1675 #define wxSTC_CSOUND_KRATE_VAR 12
1676 #define wxSTC_CSOUND_IRATE_VAR 13
1677 #define wxSTC_CSOUND_GLOBAL_VAR 14
1678 #define wxSTC_CSOUND_STRINGEOL 15
1680 // Lexical states for SCLEX_INNOSETUP
1681 #define wxSTC_INNO_DEFAULT 0
1682 #define wxSTC_INNO_COMMENT 1
1683 #define wxSTC_INNO_KEYWORD 2
1684 #define wxSTC_INNO_PARAMETER 3
1685 #define wxSTC_INNO_SECTION 4
1686 #define wxSTC_INNO_PREPROC 5
1687 #define wxSTC_INNO_INLINE_EXPANSION 6
1688 #define wxSTC_INNO_COMMENT_PASCAL 7
1689 #define wxSTC_INNO_KEYWORD_PASCAL 8
1690 #define wxSTC_INNO_KEYWORD_USER 9
1691 #define wxSTC_INNO_STRING_DOUBLE 10
1692 #define wxSTC_INNO_STRING_SINGLE 11
1693 #define wxSTC_INNO_IDENTIFIER 12
1695 // Lexical states for SCLEX_OPAL
1696 #define wxSTC_OPAL_SPACE 0
1697 #define wxSTC_OPAL_COMMENT_BLOCK 1
1698 #define wxSTC_OPAL_COMMENT_LINE 2
1699 #define wxSTC_OPAL_INTEGER 3
1700 #define wxSTC_OPAL_KEYWORD 4
1701 #define wxSTC_OPAL_SORT 5
1702 #define wxSTC_OPAL_STRING 6
1703 #define wxSTC_OPAL_PAR 7
1704 #define wxSTC_OPAL_BOOL_CONST 8
1705 #define wxSTC_OPAL_DEFAULT 32
1707 // Lexical states for SCLEX_SPICE
1708 #define wxSTC_SPICE_DEFAULT 0
1709 #define wxSTC_SPICE_IDENTIFIER 1
1710 #define wxSTC_SPICE_KEYWORD 2
1711 #define wxSTC_SPICE_KEYWORD2 3
1712 #define wxSTC_SPICE_KEYWORD3 4
1713 #define wxSTC_SPICE_NUMBER 5
1714 #define wxSTC_SPICE_DELIMITER 6
1715 #define wxSTC_SPICE_VALUE 7
1716 #define wxSTC_SPICE_COMMENTLINE 8
1718 // Lexical states for SCLEX_CMAKE
1719 #define wxSTC_CMAKE_DEFAULT 0
1720 #define wxSTC_CMAKE_COMMENT 1
1721 #define wxSTC_CMAKE_STRINGDQ 2
1722 #define wxSTC_CMAKE_STRINGLQ 3
1723 #define wxSTC_CMAKE_STRINGRQ 4
1724 #define wxSTC_CMAKE_COMMANDS 5
1725 #define wxSTC_CMAKE_PARAMETERS 6
1726 #define wxSTC_CMAKE_VARIABLE 7
1727 #define wxSTC_CMAKE_USERDEFINED 8
1728 #define wxSTC_CMAKE_WHILEDEF 9
1729 #define wxSTC_CMAKE_FOREACHDEF 10
1730 #define wxSTC_CMAKE_IFDEFINEDEF 11
1731 #define wxSTC_CMAKE_MACRODEF 12
1732 #define wxSTC_CMAKE_STRINGVAR 13
1733 #define wxSTC_CMAKE_NUMBER 14
1735 // Lexical states for SCLEX_GAP
1736 #define wxSTC_GAP_DEFAULT 0
1737 #define wxSTC_GAP_IDENTIFIER 1
1738 #define wxSTC_GAP_KEYWORD 2
1739 #define wxSTC_GAP_KEYWORD2 3
1740 #define wxSTC_GAP_KEYWORD3 4
1741 #define wxSTC_GAP_KEYWORD4 5
1742 #define wxSTC_GAP_STRING 6
1743 #define wxSTC_GAP_CHAR 7
1744 #define wxSTC_GAP_OPERATOR 8
1745 #define wxSTC_GAP_COMMENT 9
1746 #define wxSTC_GAP_NUMBER 10
1747 #define wxSTC_GAP_STRINGEOL 11
1749 // Lexical state for SCLEX_PLM
1750 #define wxSTC_PLM_DEFAULT 0
1751 #define wxSTC_PLM_COMMENT 1
1752 #define wxSTC_PLM_STRING 2
1753 #define wxSTC_PLM_NUMBER 3
1754 #define wxSTC_PLM_IDENTIFIER 4
1755 #define wxSTC_PLM_OPERATOR 5
1756 #define wxSTC_PLM_CONTROL 6
1757 #define wxSTC_PLM_KEYWORD 7
1759 // Lexical state for SCLEX_PROGRESS
1760 #define wxSTC_4GL_DEFAULT 0
1761 #define wxSTC_4GL_NUMBER 1
1762 #define wxSTC_4GL_WORD 2
1763 #define wxSTC_4GL_STRING 3
1764 #define wxSTC_4GL_CHARACTER 4
1765 #define wxSTC_4GL_PREPROCESSOR 5
1766 #define wxSTC_4GL_OPERATOR 6
1767 #define wxSTC_4GL_IDENTIFIER 7
1768 #define wxSTC_4GL_BLOCK 8
1769 #define wxSTC_4GL_END 9
1770 #define wxSTC_4GL_COMMENT1 10
1771 #define wxSTC_4GL_COMMENT2 11
1772 #define wxSTC_4GL_COMMENT3 12
1773 #define wxSTC_4GL_COMMENT4 13
1774 #define wxSTC_4GL_COMMENT5 14
1775 #define wxSTC_4GL_COMMENT6 15
1776 #define wxSTC_4GL_DEFAULT_ 16
1777 #define wxSTC_4GL_NUMBER_ 17
1778 #define wxSTC_4GL_WORD_ 18
1779 #define wxSTC_4GL_STRING_ 19
1780 #define wxSTC_4GL_CHARACTER_ 20
1781 #define wxSTC_4GL_PREPROCESSOR_ 21
1782 #define wxSTC_4GL_OPERATOR_ 22
1783 #define wxSTC_4GL_IDENTIFIER_ 23
1784 #define wxSTC_4GL_BLOCK_ 24
1785 #define wxSTC_4GL_END_ 25
1786 #define wxSTC_4GL_COMMENT1_ 26
1787 #define wxSTC_4GL_COMMENT2_ 27
1788 #define wxSTC_4GL_COMMENT3_ 28
1789 #define wxSTC_4GL_COMMENT4_ 29
1790 #define wxSTC_4GL_COMMENT5_ 30
1791 #define wxSTC_4GL_COMMENT6_ 31
1793 // Lexical states for SCLEX_ABAQUS
1794 #define wxSTC_ABAQUS_DEFAULT 0
1795 #define wxSTC_ABAQUS_COMMENT 1
1796 #define wxSTC_ABAQUS_COMMENTBLOCK 2
1797 #define wxSTC_ABAQUS_NUMBER 3
1798 #define wxSTC_ABAQUS_STRING 4
1799 #define wxSTC_ABAQUS_OPERATOR 5
1800 #define wxSTC_ABAQUS_WORD 6
1801 #define wxSTC_ABAQUS_PROCESSOR 7
1802 #define wxSTC_ABAQUS_COMMAND 8
1803 #define wxSTC_ABAQUS_SLASHCOMMAND 9
1804 #define wxSTC_ABAQUS_STARCOMMAND 10
1805 #define wxSTC_ABAQUS_ARGUMENT 11
1806 #define wxSTC_ABAQUS_FUNCTION 12
1808 // Lexical states for SCLEX_ASYMPTOTE
1809 #define wxSTC_ASY_DEFAULT 0
1810 #define wxSTC_ASY_COMMENT 1
1811 #define wxSTC_ASY_COMMENTLINE 2
1812 #define wxSTC_ASY_NUMBER 3
1813 #define wxSTC_ASY_WORD 4
1814 #define wxSTC_ASY_STRING 5
1815 #define wxSTC_ASY_CHARACTER 6
1816 #define wxSTC_ASY_OPERATOR 7
1817 #define wxSTC_ASY_IDENTIFIER 8
1818 #define wxSTC_ASY_STRINGEOL 9
1819 #define wxSTC_ASY_COMMENTLINEDOC 10
1820 #define wxSTC_ASY_WORD2 11
1822 // Lexical states for SCLEX_R
1823 #define wxSTC_R_DEFAULT 0
1824 #define wxSTC_R_COMMENT 1
1825 #define wxSTC_R_KWORD 2
1826 #define wxSTC_R_BASEKWORD 3
1827 #define wxSTC_R_OTHERKWORD 4
1828 #define wxSTC_R_NUMBER 5
1829 #define wxSTC_R_STRING 6
1830 #define wxSTC_R_STRING2 7
1831 #define wxSTC_R_OPERATOR 8
1832 #define wxSTC_R_IDENTIFIER 9
1833 #define wxSTC_R_INFIX 10
1834 #define wxSTC_R_INFIXEOL 11
1836 // Lexical state for SCLEX_MAGIKSF
1837 #define wxSTC_MAGIK_DEFAULT 0
1838 #define wxSTC_MAGIK_COMMENT 1
1839 #define wxSTC_MAGIK_HYPER_COMMENT 16
1840 #define wxSTC_MAGIK_STRING 2
1841 #define wxSTC_MAGIK_CHARACTER 3
1842 #define wxSTC_MAGIK_NUMBER 4
1843 #define wxSTC_MAGIK_IDENTIFIER 5
1844 #define wxSTC_MAGIK_OPERATOR 6
1845 #define wxSTC_MAGIK_FLOW 7
1846 #define wxSTC_MAGIK_CONTAINER 8
1847 #define wxSTC_MAGIK_BRACKET_BLOCK 9
1848 #define wxSTC_MAGIK_BRACE_BLOCK 10
1849 #define wxSTC_MAGIK_SQBRACKET_BLOCK 11
1850 #define wxSTC_MAGIK_UNKNOWN_KEYWORD 12
1851 #define wxSTC_MAGIK_KEYWORD 13
1852 #define wxSTC_MAGIK_PRAGMA 14
1853 #define wxSTC_MAGIK_SYMBOL 15
1855 // Lexical state for SCLEX_POWERSHELL
1856 #define wxSTC_POWERSHELL_DEFAULT 0
1857 #define wxSTC_POWERSHELL_COMMENT 1
1858 #define wxSTC_POWERSHELL_STRING 2
1859 #define wxSTC_POWERSHELL_CHARACTER 3
1860 #define wxSTC_POWERSHELL_NUMBER 4
1861 #define wxSTC_POWERSHELL_VARIABLE 5
1862 #define wxSTC_POWERSHELL_OPERATOR 6
1863 #define wxSTC_POWERSHELL_IDENTIFIER 7
1864 #define wxSTC_POWERSHELL_KEYWORD 8
1865 #define wxSTC_POWERSHELL_CMDLET 9
1866 #define wxSTC_POWERSHELL_ALIAS 10
1867 #define wxSTC_POWERSHELL_FUNCTION 11
1868 #define wxSTC_POWERSHELL_USER1 12
1869 #define wxSTC_POWERSHELL_COMMENTSTREAM 13
1871 // Lexical state for SCLEX_MYSQL
1872 #define wxSTC_MYSQL_DEFAULT 0
1873 #define wxSTC_MYSQL_COMMENT 1
1874 #define wxSTC_MYSQL_COMMENTLINE 2
1875 #define wxSTC_MYSQL_VARIABLE 3
1876 #define wxSTC_MYSQL_SYSTEMVARIABLE 4
1877 #define wxSTC_MYSQL_KNOWNSYSTEMVARIABLE 5
1878 #define wxSTC_MYSQL_NUMBER 6
1879 #define wxSTC_MYSQL_MAJORKEYWORD 7
1880 #define wxSTC_MYSQL_KEYWORD 8
1881 #define wxSTC_MYSQL_DATABASEOBJECT 9
1882 #define wxSTC_MYSQL_PROCEDUREKEYWORD 10
1883 #define wxSTC_MYSQL_STRING 11
1884 #define wxSTC_MYSQL_SQSTRING 12
1885 #define wxSTC_MYSQL_DQSTRING 13
1886 #define wxSTC_MYSQL_OPERATOR 14
1887 #define wxSTC_MYSQL_FUNCTION 15
1888 #define wxSTC_MYSQL_IDENTIFIER 16
1889 #define wxSTC_MYSQL_QUOTEDIDENTIFIER 17
1890 #define wxSTC_MYSQL_USER1 18
1891 #define wxSTC_MYSQL_USER2 19
1892 #define wxSTC_MYSQL_USER3 20
1893 #define wxSTC_MYSQL_HIDDENCOMMAND 21
1895 // Lexical state for SCLEX_PO
1896 #define wxSTC_PO_DEFAULT 0
1897 #define wxSTC_PO_COMMENT 1
1898 #define wxSTC_PO_MSGID 2
1899 #define wxSTC_PO_MSGID_TEXT 3
1900 #define wxSTC_PO_MSGSTR 4
1901 #define wxSTC_PO_MSGSTR_TEXT 5
1902 #define wxSTC_PO_MSGCTXT 6
1903 #define wxSTC_PO_MSGCTXT_TEXT 7
1904 #define wxSTC_PO_FUZZY 8
1906 // Lexical states for SCLEX_PASCAL
1907 #define wxSTC_PAS_DEFAULT 0
1908 #define wxSTC_PAS_IDENTIFIER 1
1909 #define wxSTC_PAS_COMMENT 2
1910 #define wxSTC_PAS_COMMENT2 3
1911 #define wxSTC_PAS_COMMENTLINE 4
1912 #define wxSTC_PAS_PREPROCESSOR 5
1913 #define wxSTC_PAS_PREPROCESSOR2 6
1914 #define wxSTC_PAS_NUMBER 7
1915 #define wxSTC_PAS_HEXNUMBER 8
1916 #define wxSTC_PAS_WORD 9
1917 #define wxSTC_PAS_STRING 10
1918 #define wxSTC_PAS_STRINGEOL 11
1919 #define wxSTC_PAS_CHARACTER 12
1920 #define wxSTC_PAS_OPERATOR 13
1921 #define wxSTC_PAS_ASM 14
1923 // Lexical state for SCLEX_SORCUS
1924 #define wxSTC_SORCUS_DEFAULT 0
1925 #define wxSTC_SORCUS_COMMAND 1
1926 #define wxSTC_SORCUS_PARAMETER 2
1927 #define wxSTC_SORCUS_COMMENTLINE 3
1928 #define wxSTC_SORCUS_STRING 4
1929 #define wxSTC_SORCUS_STRINGEOL 5
1930 #define wxSTC_SORCUS_IDENTIFIER 6
1931 #define wxSTC_SORCUS_OPERATOR 7
1932 #define wxSTC_SORCUS_NUMBER 8
1933 #define wxSTC_SORCUS_CONSTANT 9
1935 // Lexical state for SCLEX_POWERPRO
1936 #define wxSTC_POWERPRO_DEFAULT 0
1937 #define wxSTC_POWERPRO_COMMENTBLOCK 1
1938 #define wxSTC_POWERPRO_COMMENTLINE 2
1939 #define wxSTC_POWERPRO_NUMBER 3
1940 #define wxSTC_POWERPRO_WORD 4
1941 #define wxSTC_POWERPRO_WORD2 5
1942 #define wxSTC_POWERPRO_WORD3 6
1943 #define wxSTC_POWERPRO_WORD4 7
1944 #define wxSTC_POWERPRO_DOUBLEQUOTEDSTRING 8
1945 #define wxSTC_POWERPRO_SINGLEQUOTEDSTRING 9
1946 #define wxSTC_POWERPRO_LINECONTINUE 10
1947 #define wxSTC_POWERPRO_OPERATOR 11
1948 #define wxSTC_POWERPRO_IDENTIFIER 12
1949 #define wxSTC_POWERPRO_STRINGEOL 13
1950 #define wxSTC_POWERPRO_VERBATIM 14
1951 #define wxSTC_POWERPRO_ALTQUOTE 15
1952 #define wxSTC_POWERPRO_FUNCTION 16
1954 // Lexical states for SCLEX_SML
1955 #define wxSTC_SML_DEFAULT 0
1956 #define wxSTC_SML_IDENTIFIER 1
1957 #define wxSTC_SML_TAGNAME 2
1958 #define wxSTC_SML_KEYWORD 3
1959 #define wxSTC_SML_KEYWORD2 4
1960 #define wxSTC_SML_KEYWORD3 5
1961 #define wxSTC_SML_LINENUM 6
1962 #define wxSTC_SML_OPERATOR 7
1963 #define wxSTC_SML_NUMBER 8
1964 #define wxSTC_SML_CHAR 9
1965 #define wxSTC_SML_STRING 11
1966 #define wxSTC_SML_COMMENT 12
1967 #define wxSTC_SML_COMMENT1 13
1968 #define wxSTC_SML_COMMENT2 14
1969 #define wxSTC_SML_COMMENT3 15
1971 // Lexical state for SCLEX_MARKDOWN
1972 #define wxSTC_MARKDOWN_DEFAULT 0
1973 #define wxSTC_MARKDOWN_LINE_BEGIN 1
1974 #define wxSTC_MARKDOWN_STRONG1 2
1975 #define wxSTC_MARKDOWN_STRONG2 3
1976 #define wxSTC_MARKDOWN_EM1 4
1977 #define wxSTC_MARKDOWN_EM2 5
1978 #define wxSTC_MARKDOWN_HEADER1 6
1979 #define wxSTC_MARKDOWN_HEADER2 7
1980 #define wxSTC_MARKDOWN_HEADER3 8
1981 #define wxSTC_MARKDOWN_HEADER4 9
1982 #define wxSTC_MARKDOWN_HEADER5 10
1983 #define wxSTC_MARKDOWN_HEADER6 11
1984 #define wxSTC_MARKDOWN_PRECHAR 12
1985 #define wxSTC_MARKDOWN_ULIST_ITEM 13
1986 #define wxSTC_MARKDOWN_OLIST_ITEM 14
1987 #define wxSTC_MARKDOWN_BLOCKQUOTE 15
1988 #define wxSTC_MARKDOWN_STRIKEOUT 16
1989 #define wxSTC_MARKDOWN_HRULE 17
1990 #define wxSTC_MARKDOWN_LINK 18
1991 #define wxSTC_MARKDOWN_CODE 19
1992 #define wxSTC_MARKDOWN_CODE2 20
1993 #define wxSTC_MARKDOWN_CODEBK 21
1995 // Lexical state for SCLEX_TXT2TAGS
1996 #define wxSTC_TXT2TAGS_DEFAULT 0
1997 #define wxSTC_TXT2TAGS_LINE_BEGIN 1
1998 #define wxSTC_TXT2TAGS_STRONG1 2
1999 #define wxSTC_TXT2TAGS_STRONG2 3
2000 #define wxSTC_TXT2TAGS_EM1 4
2001 #define wxSTC_TXT2TAGS_EM2 5
2002 #define wxSTC_TXT2TAGS_HEADER1 6
2003 #define wxSTC_TXT2TAGS_HEADER2 7
2004 #define wxSTC_TXT2TAGS_HEADER3 8
2005 #define wxSTC_TXT2TAGS_HEADER4 9
2006 #define wxSTC_TXT2TAGS_HEADER5 10
2007 #define wxSTC_TXT2TAGS_HEADER6 11
2008 #define wxSTC_TXT2TAGS_PRECHAR 12
2009 #define wxSTC_TXT2TAGS_ULIST_ITEM 13
2010 #define wxSTC_TXT2TAGS_OLIST_ITEM 14
2011 #define wxSTC_TXT2TAGS_BLOCKQUOTE 15
2012 #define wxSTC_TXT2TAGS_STRIKEOUT 16
2013 #define wxSTC_TXT2TAGS_HRULE 17
2014 #define wxSTC_TXT2TAGS_LINK 18
2015 #define wxSTC_TXT2TAGS_CODE 19
2016 #define wxSTC_TXT2TAGS_CODE2 20
2017 #define wxSTC_TXT2TAGS_CODEBK 21
2018 #define wxSTC_TXT2TAGS_COMMENT 22
2019 #define wxSTC_TXT2TAGS_OPTION 23
2020 #define wxSTC_TXT2TAGS_PREPROC 24
2021 #define wxSTC_TXT2TAGS_POSTPROC 25
2023 // Lexical states for SCLEX_A68K
2024 #define wxSTC_A68K_DEFAULT 0
2025 #define wxSTC_A68K_COMMENT 1
2026 #define wxSTC_A68K_NUMBER_DEC 2
2027 #define wxSTC_A68K_NUMBER_BIN 3
2028 #define wxSTC_A68K_NUMBER_HEX 4
2029 #define wxSTC_A68K_STRING1 5
2030 #define wxSTC_A68K_OPERATOR 6
2031 #define wxSTC_A68K_CPUINSTRUCTION 7
2032 #define wxSTC_A68K_EXTINSTRUCTION 8
2033 #define wxSTC_A68K_REGISTER 9
2034 #define wxSTC_A68K_DIRECTIVE 10
2035 #define wxSTC_A68K_MACRO_ARG 11
2036 #define wxSTC_A68K_LABEL 12
2037 #define wxSTC_A68K_STRING2 13
2038 #define wxSTC_A68K_IDENTIFIER 14
2039 #define wxSTC_A68K_MACRO_DECLARATION 15
2040 #define wxSTC_A68K_COMMENT_WORD 16
2041 #define wxSTC_A68K_COMMENT_SPECIAL 17
2042 #define wxSTC_A68K_COMMENT_DOXYGEN 18
2044 // Lexical states for SCLEX_MODULA
2045 #define wxSTC_MODULA_DEFAULT 0
2046 #define wxSTC_MODULA_COMMENT 1
2047 #define wxSTC_MODULA_DOXYCOMM 2
2048 #define wxSTC_MODULA_DOXYKEY 3
2049 #define wxSTC_MODULA_KEYWORD 4
2050 #define wxSTC_MODULA_RESERVED 5
2051 #define wxSTC_MODULA_NUMBER 6
2052 #define wxSTC_MODULA_BASENUM 7
2053 #define wxSTC_MODULA_FLOAT 8
2054 #define wxSTC_MODULA_STRING 9
2055 #define wxSTC_MODULA_STRSPEC 10
2056 #define wxSTC_MODULA_CHAR 11
2057 #define wxSTC_MODULA_CHARSPEC 12
2058 #define wxSTC_MODULA_PROC 13
2059 #define wxSTC_MODULA_PRAGMA 14
2060 #define wxSTC_MODULA_PRGKEY 15
2061 #define wxSTC_MODULA_OPERATOR 16
2062 #define wxSTC_MODULA_BADSTR 17
2064 // Lexical states for SCLEX_COFFEESCRIPT
2065 #define wxSTC_COFFEESCRIPT_DEFAULT 0
2066 #define wxSTC_COFFEESCRIPT_COMMENT 1
2067 #define wxSTC_COFFEESCRIPT_COMMENTLINE 2
2068 #define wxSTC_COFFEESCRIPT_COMMENTDOC 3
2069 #define wxSTC_COFFEESCRIPT_NUMBER 4
2070 #define wxSTC_COFFEESCRIPT_WORD 5
2071 #define wxSTC_COFFEESCRIPT_STRING 6
2072 #define wxSTC_COFFEESCRIPT_CHARACTER 7
2073 #define wxSTC_COFFEESCRIPT_UUID 8
2074 #define wxSTC_COFFEESCRIPT_PREPROCESSOR 9
2075 #define wxSTC_COFFEESCRIPT_OPERATOR 10
2076 #define wxSTC_COFFEESCRIPT_IDENTIFIER 11
2077 #define wxSTC_COFFEESCRIPT_STRINGEOL 12
2078 #define wxSTC_COFFEESCRIPT_VERBATIM 13
2079 #define wxSTC_COFFEESCRIPT_REGEX 14
2080 #define wxSTC_COFFEESCRIPT_COMMENTLINEDOC 15
2081 #define wxSTC_COFFEESCRIPT_WORD2 16
2082 #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORD 17
2083 #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORDERROR 18
2084 #define wxSTC_COFFEESCRIPT_GLOBALCLASS 19
2085 #define wxSTC_COFFEESCRIPT_STRINGRAW 20
2086 #define wxSTC_COFFEESCRIPT_TRIPLEVERBATIM 21
2087 #define wxSTC_COFFEESCRIPT_HASHQUOTEDSTRING 22
2088 #define wxSTC_COFFEESCRIPT_COMMENTBLOCK 22
2089 #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX 23
2090 #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX_COMMENT 24
2092 // Lexical states for SCLEX_AVS
2093 #define wxSTC_AVS_DEFAULT 0
2094 #define wxSTC_AVS_COMMENTBLOCK 1
2095 #define wxSTC_AVS_COMMENTBLOCKN 2
2096 #define wxSTC_AVS_COMMENTLINE 3
2097 #define wxSTC_AVS_NUMBER 4
2098 #define wxSTC_AVS_OPERATOR 5
2099 #define wxSTC_AVS_IDENTIFIER 6
2100 #define wxSTC_AVS_STRING 7
2101 #define wxSTC_AVS_TRIPLESTRING 8
2102 #define wxSTC_AVS_KEYWORD 9
2103 #define wxSTC_AVS_FILTER 10
2104 #define wxSTC_AVS_PLUGIN 11
2105 #define wxSTC_AVS_FUNCTION 12
2106 #define wxSTC_AVS_CLIPPROP 13
2107 #define wxSTC_AVS_USERDFN 14
2109 // Lexical states for SCLEX_ECL
2110 #define wxSTC_ECL_DEFAULT 0
2111 #define wxSTC_ECL_COMMENT 1
2112 #define wxSTC_ECL_COMMENTLINE 2
2113 #define wxSTC_ECL_NUMBER 3
2114 #define wxSTC_ECL_STRING 4
2115 #define wxSTC_ECL_WORD0 5
2116 #define wxSTC_ECL_OPERATOR 6
2117 #define wxSTC_ECL_CHARACTER 7
2118 #define wxSTC_ECL_UUID 8
2119 #define wxSTC_ECL_PREPROCESSOR 9
2120 #define wxSTC_ECL_UNKNOWN 10
2121 #define wxSTC_ECL_IDENTIFIER 11
2122 #define wxSTC_ECL_STRINGEOL 12
2123 #define wxSTC_ECL_VERBATIM 13
2124 #define wxSTC_ECL_REGEX 14
2125 #define wxSTC_ECL_COMMENTLINEDOC 15
2126 #define wxSTC_ECL_WORD1 16
2127 #define wxSTC_ECL_COMMENTDOCKEYWORD 17
2128 #define wxSTC_ECL_COMMENTDOCKEYWORDERROR 18
2129 #define wxSTC_ECL_WORD2 19
2130 #define wxSTC_ECL_WORD3 20
2131 #define wxSTC_ECL_WORD4 21
2132 #define wxSTC_ECL_WORD5 22
2133 #define wxSTC_ECL_COMMENTDOC 23
2134 #define wxSTC_ECL_ADDED 24
2135 #define wxSTC_ECL_DELETED 25
2136 #define wxSTC_ECL_CHANGED 26
2137 #define wxSTC_ECL_MOVED 27
2139 // Lexical states for SCLEX_OSCRIPT
2140 #define wxSTC_OSCRIPT_DEFAULT 0
2141 #define wxSTC_OSCRIPT_LINE_COMMENT 1
2142 #define wxSTC_OSCRIPT_BLOCK_COMMENT 2
2143 #define wxSTC_OSCRIPT_DOC_COMMENT 3
2144 #define wxSTC_OSCRIPT_PREPROCESSOR 4
2145 #define wxSTC_OSCRIPT_NUMBER 5
2146 #define wxSTC_OSCRIPT_SINGLEQUOTE_STRING 6
2147 #define wxSTC_OSCRIPT_DOUBLEQUOTE_STRING 7
2148 #define wxSTC_OSCRIPT_CONSTANT 8
2149 #define wxSTC_OSCRIPT_IDENTIFIER 9
2150 #define wxSTC_OSCRIPT_GLOBAL 10
2151 #define wxSTC_OSCRIPT_KEYWORD 11
2152 #define wxSTC_OSCRIPT_OPERATOR 12
2153 #define wxSTC_OSCRIPT_LABEL 13
2154 #define wxSTC_OSCRIPT_TYPE 14
2155 #define wxSTC_OSCRIPT_FUNCTION 15
2156 #define wxSTC_OSCRIPT_OBJECT 16
2157 #define wxSTC_OSCRIPT_PROPERTY 17
2158 #define wxSTC_OSCRIPT_METHOD 18
2160 // Lexical states for SCLEX_VISUALPROLOG
2161 #define wxSTC_VISUALPROLOG_DEFAULT 0
2162 #define wxSTC_VISUALPROLOG_KEY_MAJOR 1
2163 #define wxSTC_VISUALPROLOG_KEY_MINOR 2
2164 #define wxSTC_VISUALPROLOG_KEY_DIRECTIVE 3
2165 #define wxSTC_VISUALPROLOG_COMMENT_BLOCK 4
2166 #define wxSTC_VISUALPROLOG_COMMENT_LINE 5
2167 #define wxSTC_VISUALPROLOG_COMMENT_KEY 6
2168 #define wxSTC_VISUALPROLOG_COMMENT_KEY_ERROR 7
2169 #define wxSTC_VISUALPROLOG_IDENTIFIER 8
2170 #define wxSTC_VISUALPROLOG_VARIABLE 9
2171 #define wxSTC_VISUALPROLOG_ANONYMOUS 10
2172 #define wxSTC_VISUALPROLOG_NUMBER 11
2173 #define wxSTC_VISUALPROLOG_OPERATOR 12
2174 #define wxSTC_VISUALPROLOG_CHARACTER 13
2175 #define wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY 14
2176 #define wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR 15
2177 #define wxSTC_VISUALPROLOG_STRING 16
2178 #define wxSTC_VISUALPROLOG_STRING_ESCAPE 17
2179 #define wxSTC_VISUALPROLOG_STRING_ESCAPE_ERROR 18
2180 #define wxSTC_VISUALPROLOG_STRING_EOL_OPEN 19
2181 #define wxSTC_VISUALPROLOG_STRING_VERBATIM 20
2182 #define wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL 21
2183 #define wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL 22
2186 //----------------------------------------------------------------------
2188 //----------------------------------------------------------------------
2189 // Commands that can be bound to keystrokes section {{{
2192 // Redoes the next action on the undo history.
2193 #define wxSTC_CMD_REDO 2011
2195 // Select all the text in the document.
2196 #define wxSTC_CMD_SELECTALL 2013
2198 // Undo one action in the undo history.
2199 #define wxSTC_CMD_UNDO 2176
2201 // Cut the selection to the clipboard.
2202 #define wxSTC_CMD_CUT 2177
2204 // Copy the selection to the clipboard.
2205 #define wxSTC_CMD_COPY 2178
2207 // Paste the contents of the clipboard into the document replacing the selection.
2208 #define wxSTC_CMD_PASTE 2179
2210 // Clear the selection.
2211 #define wxSTC_CMD_CLEAR 2180
2213 // Move caret down one line.
2214 #define wxSTC_CMD_LINEDOWN 2300
2216 // Move caret down one line extending selection to new caret position.
2217 #define wxSTC_CMD_LINEDOWNEXTEND 2301
2219 // Move caret up one line.
2220 #define wxSTC_CMD_LINEUP 2302
2222 // Move caret up one line extending selection to new caret position.
2223 #define wxSTC_CMD_LINEUPEXTEND 2303
2225 // Move caret left one character.
2226 #define wxSTC_CMD_CHARLEFT 2304
2228 // Move caret left one character extending selection to new caret position.
2229 #define wxSTC_CMD_CHARLEFTEXTEND 2305
2231 // Move caret right one character.
2232 #define wxSTC_CMD_CHARRIGHT 2306
2234 // Move caret right one character extending selection to new caret position.
2235 #define wxSTC_CMD_CHARRIGHTEXTEND 2307
2237 // Move caret left one word.
2238 #define wxSTC_CMD_WORDLEFT 2308
2240 // Move caret left one word extending selection to new caret position.
2241 #define wxSTC_CMD_WORDLEFTEXTEND 2309
2243 // Move caret right one word.
2244 #define wxSTC_CMD_WORDRIGHT 2310
2246 // Move caret right one word extending selection to new caret position.
2247 #define wxSTC_CMD_WORDRIGHTEXTEND 2311
2249 // Move caret to first position on line.
2250 #define wxSTC_CMD_HOME 2312
2252 // Move caret to first position on line extending selection to new caret position.
2253 #define wxSTC_CMD_HOMEEXTEND 2313
2255 // Move caret to last position on line.
2256 #define wxSTC_CMD_LINEEND 2314
2258 // Move caret to last position on line extending selection to new caret position.
2259 #define wxSTC_CMD_LINEENDEXTEND 2315
2261 // Move caret to first position in document.
2262 #define wxSTC_CMD_DOCUMENTSTART 2316
2264 // Move caret to first position in document extending selection to new caret position.
2265 #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
2267 // Move caret to last position in document.
2268 #define wxSTC_CMD_DOCUMENTEND 2318
2270 // Move caret to last position in document extending selection to new caret position.
2271 #define wxSTC_CMD_DOCUMENTENDEXTEND 2319
2273 // Move caret one page up.
2274 #define wxSTC_CMD_PAGEUP 2320
2276 // Move caret one page up extending selection to new caret position.
2277 #define wxSTC_CMD_PAGEUPEXTEND 2321
2279 // Move caret one page down.
2280 #define wxSTC_CMD_PAGEDOWN 2322
2282 // Move caret one page down extending selection to new caret position.
2283 #define wxSTC_CMD_PAGEDOWNEXTEND 2323
2285 // Switch from insert to overtype mode or the reverse.
2286 #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
2288 // Cancel any modes such as call tip or auto-completion list display.
2289 #define wxSTC_CMD_CANCEL 2325
2291 // Delete the selection or if no selection, the character before the caret.
2292 #define wxSTC_CMD_DELETEBACK 2326
2294 // If selection is empty or all on one line replace the selection with a tab character.
2295 // If more than one line selected, indent the lines.
2296 #define wxSTC_CMD_TAB 2327
2298 // Dedent the selected lines.
2299 #define wxSTC_CMD_BACKTAB 2328
2301 // Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
2302 #define wxSTC_CMD_NEWLINE 2329
2304 // Insert a Form Feed character.
2305 #define wxSTC_CMD_FORMFEED 2330
2307 // Move caret to before first visible character on line.
2308 // If already there move to first character on line.
2309 #define wxSTC_CMD_VCHOME 2331
2311 // Like VCHome but extending selection to new caret position.
2312 #define wxSTC_CMD_VCHOMEEXTEND 2332
2314 // Magnify the displayed text by increasing the sizes by 1 point.
2315 #define wxSTC_CMD_ZOOMIN 2333
2317 // Make the displayed text smaller by decreasing the sizes by 1 point.
2318 #define wxSTC_CMD_ZOOMOUT 2334
2320 // Delete the word to the left of the caret.
2321 #define wxSTC_CMD_DELWORDLEFT 2335
2323 // Delete the word to the right of the caret.
2324 #define wxSTC_CMD_DELWORDRIGHT 2336
2326 // Delete the word to the right of the caret, but not the trailing non-word characters.
2327 #define wxSTC_CMD_DELWORDRIGHTEND 2518
2329 // Cut the line containing the caret.
2330 #define wxSTC_CMD_LINECUT 2337
2332 // Delete the line containing the caret.
2333 #define wxSTC_CMD_LINEDELETE 2338
2335 // Switch the current line with the previous.
2336 #define wxSTC_CMD_LINETRANSPOSE 2339
2338 // Duplicate the current line.
2339 #define wxSTC_CMD_LINEDUPLICATE 2404
2341 // Transform the selection to lower case.
2342 #define wxSTC_CMD_LOWERCASE 2340
2344 // Transform the selection to upper case.
2345 #define wxSTC_CMD_UPPERCASE 2341
2347 // Scroll the document down, keeping the caret visible.
2348 #define wxSTC_CMD_LINESCROLLDOWN 2342
2350 // Scroll the document up, keeping the caret visible.
2351 #define wxSTC_CMD_LINESCROLLUP 2343
2353 // Delete the selection or if no selection, the character before the caret.
2354 // Will not delete the character before at the start of a line.
2355 #define wxSTC_CMD_DELETEBACKNOTLINE 2344
2357 // Move caret to first position on display line.
2358 #define wxSTC_CMD_HOMEDISPLAY 2345
2360 // Move caret to first position on display line extending selection to
2361 // new caret position.
2362 #define wxSTC_CMD_HOMEDISPLAYEXTEND 2346
2364 // Move caret to last position on display line.
2365 #define wxSTC_CMD_LINEENDDISPLAY 2347
2367 // Move caret to last position on display line extending selection to new
2369 #define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
2371 // These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
2372 // except they behave differently when word-wrap is enabled:
2373 // They go first to the start / end of the display line, like (Home|LineEnd)Display
2374 // The difference is that, the cursor is already at the point, it goes on to the start
2375 // or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
2376 #define wxSTC_CMD_HOMEWRAP 2349
2377 #define wxSTC_CMD_HOMEWRAPEXTEND 2450
2378 #define wxSTC_CMD_LINEENDWRAP 2451
2379 #define wxSTC_CMD_LINEENDWRAPEXTEND 2452
2380 #define wxSTC_CMD_VCHOMEWRAP 2453
2381 #define wxSTC_CMD_VCHOMEWRAPEXTEND 2454
2383 // Copy the line containing the caret.
2384 #define wxSTC_CMD_LINECOPY 2455
2386 // Move to the previous change in capitalisation.
2387 #define wxSTC_CMD_WORDPARTLEFT 2390
2389 // Move to the previous change in capitalisation extending selection
2390 // to new caret position.
2391 #define wxSTC_CMD_WORDPARTLEFTEXTEND 2391
2393 // Move to the change next in capitalisation.
2394 #define wxSTC_CMD_WORDPARTRIGHT 2392
2396 // Move to the next change in capitalisation extending selection
2397 // to new caret position.
2398 #define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393
2400 // Delete back from the current position to the start of the line.
2401 #define wxSTC_CMD_DELLINELEFT 2395
2403 // Delete forwards from the current position to the end of the line.
2404 #define wxSTC_CMD_DELLINERIGHT 2396
2406 // Move caret between paragraphs (delimited by empty lines).
2407 #define wxSTC_CMD_PARADOWN 2413
2408 #define wxSTC_CMD_PARADOWNEXTEND 2414
2409 #define wxSTC_CMD_PARAUP 2415
2410 #define wxSTC_CMD_PARAUPEXTEND 2416
2412 // Move caret down one line, extending rectangular selection to new caret position.
2413 #define wxSTC_CMD_LINEDOWNRECTEXTEND 2426
2415 // Move caret up one line, extending rectangular selection to new caret position.
2416 #define wxSTC_CMD_LINEUPRECTEXTEND 2427
2418 // Move caret left one character, extending rectangular selection to new caret position.
2419 #define wxSTC_CMD_CHARLEFTRECTEXTEND 2428
2421 // Move caret right one character, extending rectangular selection to new caret position.
2422 #define wxSTC_CMD_CHARRIGHTRECTEXTEND 2429
2424 // Move caret to first position on line, extending rectangular selection to new caret position.
2425 #define wxSTC_CMD_HOMERECTEXTEND 2430
2427 // Move caret to before first visible character on line.
2428 // If already there move to first character on line.
2429 // In either case, extend rectangular selection to new caret position.
2430 #define wxSTC_CMD_VCHOMERECTEXTEND 2431
2432 // Move caret to last position on line, extending rectangular selection to new caret position.
2433 #define wxSTC_CMD_LINEENDRECTEXTEND 2432
2435 // Move caret one page up, extending rectangular selection to new caret position.
2436 #define wxSTC_CMD_PAGEUPRECTEXTEND 2433
2438 // Move caret one page down, extending rectangular selection to new caret position.
2439 #define wxSTC_CMD_PAGEDOWNRECTEXTEND 2434
2441 // Move caret to top of page, or one page up if already at top of page.
2442 #define wxSTC_CMD_STUTTEREDPAGEUP 2435
2444 // Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
2445 #define wxSTC_CMD_STUTTEREDPAGEUPEXTEND 2436
2447 // Move caret to bottom of page, or one page down if already at bottom of page.
2448 #define wxSTC_CMD_STUTTEREDPAGEDOWN 2437
2450 // Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
2451 #define wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND 2438
2453 // Move caret left one word, position cursor at end of word.
2454 #define wxSTC_CMD_WORDLEFTEND 2439
2456 // Move caret left one word, position cursor at end of word, extending selection to new caret position.
2457 #define wxSTC_CMD_WORDLEFTENDEXTEND 2440
2459 // Move caret right one word, position cursor at end of word.
2460 #define wxSTC_CMD_WORDRIGHTEND 2441
2462 // Move caret right one word, position cursor at end of word, extending selection to new caret position.
2463 #define wxSTC_CMD_WORDRIGHTENDEXTEND 2442
2466 //----------------------------------------------------------------------
2468 class ScintillaWX
; // forward declare
2470 struct SCNotification
;
2473 extern WXDLLIMPEXP_DATA_STC(const char) wxSTCNameStr
[];
2474 class WXDLLIMPEXP_FWD_STC wxStyledTextCtrl
;
2475 class WXDLLIMPEXP_FWD_STC wxStyledTextEvent
;
2478 //----------------------------------------------------------------------
2480 class WXDLLIMPEXP_STC wxStyledTextCtrl
: public wxControl
,
2482 public wxTextCtrlIface
2483 #else // !wxUSE_TEXTCTRL
2484 public wxTextEntryBase
2485 #endif // wxUSE_TEXTCTRL/!wxUSE_TEXTCTRL
2490 %pythonAppend wxStyledTextCtrl
"self._setOORInfo(self)"
2491 %pythonAppend
wxStyledTextCtrl() ""
2493 wxStyledTextCtrl(wxWindow
*parent
, wxWindowID id
=wxID_ANY
,
2494 const wxPoint
& pos
= wxDefaultPosition
,
2495 const wxSize
& size
= wxDefaultSize
, long style
= 0,
2496 const wxString
& name
= wxPySTCNameStr
);
2497 %RenameCtor
(PreStyledTextCtrl
, wxStyledTextCtrl());
2500 wxStyledTextCtrl(wxWindow
*parent
, wxWindowID id
=wxID_ANY
,
2501 const wxPoint
& pos
= wxDefaultPosition
,
2502 const wxSize
& size
= wxDefaultSize
, long style
= 0,
2503 const wxString
& name
= wxSTCNameStr
);
2504 wxStyledTextCtrl() { m_swx
= NULL
; }
2505 ~wxStyledTextCtrl();
2509 bool Create(wxWindow
*parent
, wxWindowID id
=wxID_ANY
,
2510 const wxPoint
& pos
= wxDefaultPosition
,
2511 const wxSize
& size
= wxDefaultSize
, long style
= 0,
2512 const wxString
& name
= wxSTCNameStr
);
2515 //----------------------------------------------------------------------
2516 // Generated method declaration section {{{
2519 // Add text to the document at current position.
2520 void AddText(const wxString
& text
);
2522 // Add array of cells to document.
2523 void AddStyledText(const wxMemoryBuffer
& data
);
2525 // Insert string at a position.
2526 void InsertText(int pos
, const wxString
& text
);
2528 // Delete all text in the document.
2531 // Delete a range of text in the document.
2532 void DeleteRange(int pos
, int deleteLength
);
2534 // Set all style bytes to 0, remove all folding information.
2535 void ClearDocumentStyle();
2537 // Returns the number of bytes in the document.
2538 int GetLength() const;
2540 // Returns the character byte at the position.
2541 int GetCharAt(int pos
) const;
2543 // Returns the position of the caret.
2544 int GetCurrentPos() const;
2546 // Returns the position of the opposite end of the selection to the caret.
2547 int GetAnchor() const;
2549 // Returns the style byte at the position.
2550 int GetStyleAt(int pos
) const;
2552 // Redoes the next action on the undo history.
2555 // Choose between collecting actions into the undo
2556 // history and discarding them.
2557 void SetUndoCollection(bool collectUndo
);
2559 // Select all the text in the document.
2562 // Remember the current position in the undo history as the position
2563 // at which the document was saved.
2564 void SetSavePoint();
2566 // Retrieve a buffer of cells.
2567 wxMemoryBuffer
GetStyledText(int startPos
, int endPos
);
2569 // Are there any redoable actions in the undo history?
2570 bool CanRedo() const;
2572 // Retrieve the line number at which a particular marker is located.
2573 int MarkerLineFromHandle(int handle
);
2576 void MarkerDeleteHandle(int handle
);
2578 // Is undo history being collected?
2579 bool GetUndoCollection() const;
2581 // Are white space characters currently visible?
2582 // Returns one of SCWS_* constants.
2583 int GetViewWhiteSpace() const;
2585 // Make white space characters invisible, always visible or visible outside indentation.
2586 void SetViewWhiteSpace(int viewWS
);
2588 // Find the position from a point within the window.
2589 int PositionFromPoint(wxPoint pt
) const;
2591 // Find the position from a point within the window but return
2592 // INVALID_POSITION if not close to text.
2593 int PositionFromPointClose(int x
, int y
);
2595 // Set caret to start of a line and ensure it is visible.
2596 void GotoLine(int line
);
2598 // Set caret to a position and ensure it is visible.
2599 void GotoPos(int pos
);
2601 // Set the selection anchor to a position. The anchor is the opposite
2602 // end of the selection from the caret.
2603 void SetAnchor(int posAnchor
);
2605 // Retrieve the text of the line containing the caret.
2606 // Returns the index of the caret on the line.
2608 wxString
GetCurLine(int* OUTPUT
);
2610 wxString
GetCurLine(int* linePos
=NULL
);
2613 // Retrieve the position of the last correctly styled character.
2614 int GetEndStyled() const;
2616 // Convert all line endings in the document to one mode.
2617 void ConvertEOLs(int eolMode
);
2619 // Retrieve the current end of line mode - one of CRLF, CR, or LF.
2620 int GetEOLMode() const;
2622 // Set the current end of line mode.
2623 void SetEOLMode(int eolMode
);
2625 // Set the current styling position to pos and the styling mask to mask.
2626 // The styling mask can be used to protect some bits in each styling byte from modification.
2627 void StartStyling(int pos
, int mask
);
2629 // Change style from current styling position for length characters to a style
2630 // and move the current styling position to after this newly styled segment.
2631 void SetStyling(int length
, int style
);
2633 // Is drawing done first into a buffer or direct to the screen?
2634 bool GetBufferedDraw() const;
2636 // If drawing is buffered then each line of text is drawn into a bitmap buffer
2637 // before drawing it to the screen to avoid flicker.
2638 void SetBufferedDraw(bool buffered
);
2640 // Change the visible size of a tab to be a multiple of the width of a space character.
2641 void SetTabWidth(int tabWidth
);
2643 // Retrieve the visible size of a tab.
2644 int GetTabWidth() const;
2646 // Set the code page used to interpret the bytes of the document as characters.
2647 void SetCodePage(int codePage
);
2649 // Set the symbol used for a particular marker number,
2650 // and optionally the fore and background colours.
2651 void MarkerDefine(int markerNumber
, int markerSymbol
,
2652 const wxColour
& foreground
= wxNullColour
,
2653 const wxColour
& background
= wxNullColour
);
2655 // Set the foreground colour used for a particular marker number.
2656 void MarkerSetForeground(int markerNumber
, const wxColour
& fore
);
2658 // Set the background colour used for a particular marker number.
2659 void MarkerSetBackground(int markerNumber
, const wxColour
& back
);
2661 // Set the background colour used for a particular marker number when its folding block is selected.
2662 void MarkerSetBackSelected(int markerNumber
, const wxColour
& back
);
2664 // Enable/disable highlight for current folding bloc (smallest one that contains the caret)
2665 void MarkerEnableHighlight(bool enabled
);
2667 // Add a marker to a line, returning an ID which can be used to find or delete the marker.
2668 int MarkerAdd(int line
, int markerNumber
);
2670 // Delete a marker from a line.
2671 void MarkerDelete(int line
, int markerNumber
);
2673 // Delete all markers with a particular number from all lines.
2674 void MarkerDeleteAll(int markerNumber
);
2676 // Get a bit mask of all the markers set on a line.
2677 int MarkerGet(int line
);
2679 // Find the next line at or after lineStart that includes a marker in mask.
2680 // Return -1 when no more lines.
2681 int MarkerNext(int lineStart
, int markerMask
);
2683 // Find the previous line before lineStart that includes a marker in mask.
2684 int MarkerPrevious(int lineStart
, int markerMask
);
2686 // Define a marker from a bitmap
2687 void MarkerDefineBitmap(int markerNumber
, const wxBitmap
& bmp
);
2689 // Add a set of markers to a line.
2690 void MarkerAddSet(int line
, int set
);
2692 // Set the alpha used for a marker that is drawn in the text area, not the margin.
2693 void MarkerSetAlpha(int markerNumber
, int alpha
);
2695 // Set a margin to be either numeric or symbolic.
2696 void SetMarginType(int margin
, int marginType
);
2698 // Retrieve the type of a margin.
2699 int GetMarginType(int margin
) const;
2701 // Set the width of a margin to a width expressed in pixels.
2702 void SetMarginWidth(int margin
, int pixelWidth
);
2704 // Retrieve the width of a margin in pixels.
2705 int GetMarginWidth(int margin
) const;
2707 // Set a mask that determines which markers are displayed in a margin.
2708 void SetMarginMask(int margin
, int mask
);
2710 // Retrieve the marker mask of a margin.
2711 int GetMarginMask(int margin
) const;
2713 // Make a margin sensitive or insensitive to mouse clicks.
2714 void SetMarginSensitive(int margin
, bool sensitive
);
2716 // Retrieve the mouse click sensitivity of a margin.
2717 bool GetMarginSensitive(int margin
) const;
2719 // Set the cursor shown when the mouse is inside a margin.
2720 void SetMarginCursorN(int margin
, int cursor
);
2722 // Retrieve the cursor shown in a margin.
2723 int GetMarginCursorN(int margin
) const;
2725 // Clear all the styles and make equivalent to the global default style.
2726 void StyleClearAll();
2728 // Set the foreground colour of a style.
2729 void StyleSetForeground(int style
, const wxColour
& fore
);
2731 // Set the background colour of a style.
2732 void StyleSetBackground(int style
, const wxColour
& back
);
2734 // Set a style to be bold or not.
2735 void StyleSetBold(int style
, bool bold
);
2737 // Set a style to be italic or not.
2738 void StyleSetItalic(int style
, bool italic
);
2740 // Set the size of characters of a style.
2741 void StyleSetSize(int style
, int sizePoints
);
2743 // Set the font of a style.
2744 void StyleSetFaceName(int style
, const wxString
& fontName
);
2746 // Set a style to have its end of line filled or not.
2747 void StyleSetEOLFilled(int style
, bool filled
);
2749 // Reset the default style to its state at startup
2750 void StyleResetDefault();
2752 // Set a style to be underlined or not.
2753 void StyleSetUnderline(int style
, bool underline
);
2755 // Get the foreground colour of a style.
2756 wxColour
StyleGetForeground(int style
) const;
2758 // Get the background colour of a style.
2759 wxColour
StyleGetBackground(int style
) const;
2761 // Get is a style bold or not.
2762 bool StyleGetBold(int style
) const;
2764 // Get is a style italic or not.
2765 bool StyleGetItalic(int style
) const;
2767 // Get the size of characters of a style.
2768 int StyleGetSize(int style
) const;
2770 // Get the font facename of a style
2771 wxString
StyleGetFaceName(int style
);
2773 // Get is a style to have its end of line filled or not.
2774 bool StyleGetEOLFilled(int style
) const;
2776 // Get is a style underlined or not.
2777 bool StyleGetUnderline(int style
) const;
2779 // Get is a style mixed case, or to force upper or lower case.
2780 int StyleGetCase(int style
) const;
2782 // Get the character set of the font in a style.
2783 int StyleGetCharacterSet(int style
) const;
2785 // Get is a style visible or not.
2786 bool StyleGetVisible(int style
) const;
2788 // Get is a style changeable or not (read only).
2789 // Experimental feature, currently buggy.
2790 bool StyleGetChangeable(int style
) const;
2792 // Get is a style a hotspot or not.
2793 bool StyleGetHotSpot(int style
) const;
2795 // Set a style to be mixed case, or to force upper or lower case.
2796 void StyleSetCase(int style
, int caseForce
);
2798 // Set the size of characters of a style. Size is in points multiplied by 100.
2799 void StyleSetSizeFractional(int style
, int caseForce
);
2801 // Get the size of characters of a style in points multiplied by 100
2802 int StyleGetSizeFractional(int style
) const;
2804 // Set the weight of characters of a style.
2805 void StyleSetWeight(int style
, int weight
);
2807 // Get the weight of characters of a style.
2808 int StyleGetWeight(int style
) const;
2810 // Set a style to be a hotspot or not.
2811 void StyleSetHotSpot(int style
, bool hotspot
);
2813 // Set the foreground colour of the main and additional selections and whether to use this setting.
2814 void SetSelForeground(bool useSetting
, const wxColour
& fore
);
2816 // Set the background colour of the main and additional selections and whether to use this setting.
2817 void SetSelBackground(bool useSetting
, const wxColour
& back
);
2819 // Get the alpha of the selection.
2820 int GetSelAlpha() const;
2822 // Set the alpha of the selection.
2823 void SetSelAlpha(int alpha
);
2825 // Is the selection end of line filled?
2826 bool GetSelEOLFilled() const;
2828 // Set the selection to have its end of line filled or not.
2829 void SetSelEOLFilled(bool filled
);
2831 // Set the foreground colour of the caret.
2832 void SetCaretForeground(const wxColour
& fore
);
2834 // When key+modifier combination km is pressed perform msg.
2835 void CmdKeyAssign(int key
, int modifiers
, int cmd
);
2837 // When key+modifier combination km is pressed do nothing.
2838 void CmdKeyClear(int key
, int modifiers
);
2840 // Drop all key mappings.
2841 void CmdKeyClearAll();
2843 // Set the styles for a segment of the document.
2844 void SetStyleBytes(int length
, char* styleBytes
);
2846 // Set a style to be visible or not.
2847 void StyleSetVisible(int style
, bool visible
);
2849 // Get the time in milliseconds that the caret is on and off.
2850 int GetCaretPeriod() const;
2852 // Get the time in milliseconds that the caret is on and off. 0 = steady on.
2853 void SetCaretPeriod(int periodMilliseconds
);
2855 // Set the set of characters making up words for when moving or selecting by word.
2856 // First sets defaults like SetCharsDefault.
2857 void SetWordChars(const wxString
& characters
);
2859 // Get the set of characters making up words for when moving or selecting by word.
2860 wxString
GetWordChars() const;
2862 // Start a sequence of actions that is undone and redone as a unit.
2864 void BeginUndoAction();
2866 // End a sequence of actions that is undone and redone as a unit.
2867 void EndUndoAction();
2869 // Set an indicator to plain, squiggle or TT.
2870 void IndicatorSetStyle(int indic
, int style
);
2872 // Retrieve the style of an indicator.
2873 int IndicatorGetStyle(int indic
) const;
2875 // Set the foreground colour of an indicator.
2876 void IndicatorSetForeground(int indic
, const wxColour
& fore
);
2878 // Retrieve the foreground colour of an indicator.
2879 wxColour
IndicatorGetForeground(int indic
) const;
2881 // Set an indicator to draw under text or over(default).
2882 void IndicatorSetUnder(int indic
, bool under
);
2884 // Retrieve whether indicator drawn under or over text.
2885 bool IndicatorGetUnder(int indic
) const;
2887 // Set the foreground colour of all whitespace and whether to use this setting.
2888 void SetWhitespaceForeground(bool useSetting
, const wxColour
& fore
);
2890 // Set the background colour of all whitespace and whether to use this setting.
2891 void SetWhitespaceBackground(bool useSetting
, const wxColour
& back
);
2893 // Set the size of the dots used to mark space characters.
2894 void SetWhitespaceSize(int size
);
2896 // Get the size of the dots used to mark space characters.
2897 int GetWhitespaceSize() const;
2899 // Divide each styling byte into lexical class bits (default: 5) and indicator
2900 // bits (default: 3). If a lexer requires more than 32 lexical states, then this
2901 // is used to expand the possible states.
2902 void SetStyleBits(int bits
);
2904 // Retrieve number of bits in style bytes used to hold the lexical state.
2905 int GetStyleBits() const;
2907 // Used to hold extra styling information for each line.
2908 void SetLineState(int line
, int state
);
2910 // Retrieve the extra styling information for a line.
2911 int GetLineState(int line
) const;
2913 // Retrieve the last line number that has line state.
2914 int GetMaxLineState() const;
2916 // Is the background of the line containing the caret in a different colour?
2917 bool GetCaretLineVisible() const;
2919 // Display the background of the line containing the caret in a different colour.
2920 void SetCaretLineVisible(bool show
);
2922 // Get the colour of the background of the line containing the caret.
2923 wxColour
GetCaretLineBackground() const;
2925 // Set the colour of the background of the line containing the caret.
2926 void SetCaretLineBackground(const wxColour
& back
);
2928 // Set a style to be changeable or not (read only).
2929 // Experimental feature, currently buggy.
2930 void StyleSetChangeable(int style
, bool changeable
);
2932 // Display a auto-completion list.
2933 // The lenEntered parameter indicates how many characters before
2934 // the caret should be used to provide context.
2935 void AutoCompShow(int lenEntered
, const wxString
& itemList
);
2937 // Remove the auto-completion list from the screen.
2938 void AutoCompCancel();
2940 // Is there an auto-completion list visible?
2941 bool AutoCompActive();
2943 // Retrieve the position of the caret when the auto-completion list was displayed.
2944 int AutoCompPosStart();
2946 // User has selected an item so remove the list and insert the selection.
2947 void AutoCompComplete();
2949 // Define a set of character that when typed cancel the auto-completion list.
2950 void AutoCompStops(const wxString
& characterSet
);
2952 // Change the separator character in the string setting up an auto-completion list.
2953 // Default is space but can be changed if items contain space.
2954 void AutoCompSetSeparator(int separatorCharacter
);
2956 // Retrieve the auto-completion list separator character.
2957 int AutoCompGetSeparator() const;
2959 // Select the item in the auto-completion list that starts with a string.
2960 void AutoCompSelect(const wxString
& text
);
2962 // Should the auto-completion list be cancelled if the user backspaces to a
2963 // position before where the box was created.
2964 void AutoCompSetCancelAtStart(bool cancel
);
2966 // Retrieve whether auto-completion cancelled by backspacing before start.
2967 bool AutoCompGetCancelAtStart() const;
2969 // Define a set of characters that when typed will cause the autocompletion to
2970 // choose the selected item.
2971 void AutoCompSetFillUps(const wxString
& characterSet
);
2973 // Should a single item auto-completion list automatically choose the item.
2974 void AutoCompSetChooseSingle(bool chooseSingle
);
2976 // Retrieve whether a single item auto-completion list automatically choose the item.
2977 bool AutoCompGetChooseSingle() const;
2979 // Set whether case is significant when performing auto-completion searches.
2980 void AutoCompSetIgnoreCase(bool ignoreCase
);
2982 // Retrieve state of ignore case flag.
2983 bool AutoCompGetIgnoreCase() const;
2985 // Display a list of strings and send notification when user chooses one.
2986 void UserListShow(int listType
, const wxString
& itemList
);
2988 // Set whether or not autocompletion is hidden automatically when nothing matches.
2989 void AutoCompSetAutoHide(bool autoHide
);
2991 // Retrieve whether or not autocompletion is hidden automatically when nothing matches.
2992 bool AutoCompGetAutoHide() const;
2994 // Set whether or not autocompletion deletes any word characters
2995 // after the inserted text upon completion.
2996 void AutoCompSetDropRestOfWord(bool dropRestOfWord
);
2998 // Retrieve whether or not autocompletion deletes any word characters
2999 // after the inserted text upon completion.
3000 bool AutoCompGetDropRestOfWord() const;
3002 // Register an image for use in autocompletion lists.
3003 void RegisterImage(int type
, const wxBitmap
& bmp
);
3005 // Clear all the registered images.
3006 void ClearRegisteredImages();
3008 // Retrieve the auto-completion list type-separator character.
3009 int AutoCompGetTypeSeparator() const;
3011 // Change the type-separator character in the string setting up an auto-completion list.
3012 // Default is '?' but can be changed if items contain '?'.
3013 void AutoCompSetTypeSeparator(int separatorCharacter
);
3015 // Set the maximum width, in characters, of auto-completion and user lists.
3016 // Set to 0 to autosize to fit longest item, which is the default.
3017 void AutoCompSetMaxWidth(int characterCount
);
3019 // Get the maximum width, in characters, of auto-completion and user lists.
3020 int AutoCompGetMaxWidth() const;
3022 // Set the maximum height, in rows, of auto-completion and user lists.
3023 // The default is 5 rows.
3024 void AutoCompSetMaxHeight(int rowCount
);
3026 // Set the maximum height, in rows, of auto-completion and user lists.
3027 int AutoCompGetMaxHeight() const;
3029 // Set the number of spaces used for one level of indentation.
3030 void SetIndent(int indentSize
);
3032 // Retrieve indentation size.
3033 int GetIndent() const;
3035 // Indentation will only use space characters if useTabs is false, otherwise
3036 // it will use a combination of tabs and spaces.
3037 void SetUseTabs(bool useTabs
);
3039 // Retrieve whether tabs will be used in indentation.
3040 bool GetUseTabs() const;
3042 // Change the indentation of a line to a number of columns.
3043 void SetLineIndentation(int line
, int indentSize
);
3045 // Retrieve the number of columns that a line is indented.
3046 int GetLineIndentation(int line
) const;
3048 // Retrieve the position before the first non indentation character on a line.
3049 int GetLineIndentPosition(int line
) const;
3051 // Retrieve the column number of a position, taking tab width into account.
3052 int GetColumn(int pos
) const;
3054 // Count characters between two positions.
3055 int CountCharacters(int startPos
, int endPos
);
3057 // Show or hide the horizontal scroll bar.
3058 void SetUseHorizontalScrollBar(bool show
);
3060 // Is the horizontal scroll bar visible?
3061 bool GetUseHorizontalScrollBar() const;
3063 // Show or hide indentation guides.
3064 void SetIndentationGuides(int indentView
);
3066 // Are the indentation guides visible?
3067 int GetIndentationGuides() const;
3069 // Set the highlighted indentation guide column.
3070 // 0 = no highlighted guide.
3071 void SetHighlightGuide(int column
);
3073 // Get the highlighted indentation guide column.
3074 int GetHighlightGuide() const;
3076 // Get the position after the last visible characters on a line.
3077 int GetLineEndPosition(int line
) const;
3079 // Get the code page used to interpret the bytes of the document as characters.
3080 int GetCodePage() const;
3082 // Get the foreground colour of the caret.
3083 wxColour
GetCaretForeground() const;
3085 // In read-only mode?
3086 bool GetReadOnly() const;
3088 // Sets the position of the caret.
3089 void SetCurrentPos(int pos
);
3091 // Sets the position that starts the selection - this becomes the anchor.
3092 void SetSelectionStart(int pos
);
3094 // Returns the position at the start of the selection.
3095 int GetSelectionStart() const;
3097 // Sets the position that ends the selection - this becomes the currentPosition.
3098 void SetSelectionEnd(int pos
);
3100 // Returns the position at the end of the selection.
3101 int GetSelectionEnd() const;
3103 // Set caret to a position, while removing any existing selection.
3104 void SetEmptySelection(int pos
);
3106 // Sets the print magnification added to the point size of each style for printing.
3107 void SetPrintMagnification(int magnification
);
3109 // Returns the print magnification.
3110 int GetPrintMagnification() const;
3112 // Modify colours when printing for clearer printed text.
3113 void SetPrintColourMode(int mode
);
3115 // Returns the print colour mode.
3116 int GetPrintColourMode() const;
3118 // Find some text in the document.
3119 int FindText(int minPos
, int maxPos
, const wxString
& text
, int flags
=0);
3121 // On Windows, will draw the document into a display context such as a printer.
3122 int FormatRange(bool doDraw
,
3130 // Retrieve the display line at the top of the display.
3131 int GetFirstVisibleLine() const;
3133 // Retrieve the contents of a line.
3134 wxString
GetLine(int line
) const;
3136 // Returns the number of lines in the document. There is always at least one.
3137 int GetLineCount() const;
3139 // Sets the size in pixels of the left margin.
3140 void SetMarginLeft(int pixelWidth
);
3142 // Returns the size in pixels of the left margin.
3143 int GetMarginLeft() const;
3145 // Sets the size in pixels of the right margin.
3146 void SetMarginRight(int pixelWidth
);
3148 // Returns the size in pixels of the right margin.
3149 int GetMarginRight() const;
3151 // Is the document different from when it was last saved?
3152 bool GetModify() const;
3154 // Retrieve the selected text.
3155 wxString
GetSelectedText();
3157 // Retrieve a range of text.
3158 wxString
GetTextRange(int startPos
, int endPos
);
3160 // Draw the selection in normal style or with selection highlighted.
3161 void HideSelection(bool normal
);
3163 // Retrieve the line containing a position.
3164 int LineFromPosition(int pos
) const;
3166 // Retrieve the position at the start of a line.
3167 int PositionFromLine(int line
) const;
3169 // Scroll horizontally and vertically.
3170 void LineScroll(int columns
, int lines
);
3172 // Ensure the caret is visible.
3173 void EnsureCaretVisible();
3175 // Replace the selected text with the argument text.
3176 void ReplaceSelection(const wxString
& text
);
3178 // Set to read only or read write.
3179 void SetReadOnly(bool readOnly
);
3181 // Will a paste succeed?
3182 bool CanPaste() const;
3184 // Are there any undoable actions in the undo history?
3185 bool CanUndo() const;
3187 // Delete the undo history.
3188 void EmptyUndoBuffer();
3190 // Undo one action in the undo history.
3193 // Cut the selection to the clipboard.
3196 // Copy the selection to the clipboard.
3199 // Paste the contents of the clipboard into the document replacing the selection.
3202 // Clear the selection.
3205 // Replace the contents of the document with the argument text.
3206 void SetText(const wxString
& text
);
3208 // Retrieve all the text in the document.
3209 wxString
GetText() const;
3211 // Retrieve the number of characters in the document.
3212 int GetTextLength() const;
3214 // Set to overtype (true) or insert mode.
3215 void SetOvertype(bool overtype
);
3217 // Returns true if overtype mode is active otherwise false is returned.
3218 bool GetOvertype() const;
3220 // Set the width of the insert mode caret.
3221 void SetCaretWidth(int pixelWidth
);
3223 // Returns the width of the insert mode caret.
3224 int GetCaretWidth() const;
3226 // Sets the position that starts the target which is used for updating the
3227 // document without affecting the scroll position.
3228 void SetTargetStart(int pos
);
3230 // Get the position that starts the target.
3231 int GetTargetStart() const;
3233 // Sets the position that ends the target which is used for updating the
3234 // document without affecting the scroll position.
3235 void SetTargetEnd(int pos
);
3237 // Get the position that ends the target.
3238 int GetTargetEnd() const;
3240 // Replace the target text with the argument text.
3241 // Text is counted so it can contain NULs.
3242 // Returns the length of the replacement text.
3243 int ReplaceTarget(const wxString
& text
);
3245 // Replace the target text with the argument text after \d processing.
3246 // Text is counted so it can contain NULs.
3247 // Looks for \d where d is between 1 and 9 and replaces these with the strings
3248 // matched in the last search operation which were surrounded by \( and \).
3249 // Returns the length of the replacement text including any change
3250 // caused by processing the \d patterns.
3251 int ReplaceTargetRE(const wxString
& text
);
3253 // Search for a counted string in the target and set the target to the found
3254 // range. Text is counted so it can contain NULs.
3255 // Returns length of range or -1 for failure in which case target is not moved.
3256 int SearchInTarget(const wxString
& text
);
3258 // Set the search flags used by SearchInTarget.
3259 void SetSearchFlags(int flags
);
3261 // Get the search flags used by SearchInTarget.
3262 int GetSearchFlags() const;
3264 // Show a call tip containing a definition near position pos.
3265 void CallTipShow(int pos
, const wxString
& definition
);
3267 // Remove the call tip from the screen.
3268 void CallTipCancel();
3270 // Is there an active call tip?
3271 bool CallTipActive();
3273 // Retrieve the position where the caret was before displaying the call tip.
3274 int CallTipPosAtStart();
3276 // Highlight a segment of the definition.
3277 void CallTipSetHighlight(int start
, int end
);
3279 // Set the background colour for the call tip.
3280 void CallTipSetBackground(const wxColour
& back
);
3282 // Set the foreground colour for the call tip.
3283 void CallTipSetForeground(const wxColour
& fore
);
3285 // Set the foreground colour for the highlighted part of the call tip.
3286 void CallTipSetForegroundHighlight(const wxColour
& fore
);
3288 // Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
3289 void CallTipUseStyle(int tabSize
);
3291 // Set position of calltip, above or below text.
3292 void CallTipSetPosition(bool above
);
3294 // Find the display line of a document line taking hidden lines into account.
3295 int VisibleFromDocLine(int line
);
3297 // Find the document line of a display line taking hidden lines into account.
3298 int DocLineFromVisible(int lineDisplay
);
3300 // The number of display lines needed to wrap a document line
3301 int WrapCount(int line
);
3303 // Set the fold level of a line.
3304 // This encodes an integer level along with flags indicating whether the
3305 // line is a header and whether it is effectively white space.
3306 void SetFoldLevel(int line
, int level
);
3308 // Retrieve the fold level of a line.
3309 int GetFoldLevel(int line
) const;
3311 // Find the last child line of a header line.
3312 int GetLastChild(int line
, int level
) const;
3314 // Find the parent line of a child line.
3315 int GetFoldParent(int line
) const;
3317 // Make a range of lines visible.
3318 void ShowLines(int lineStart
, int lineEnd
);
3320 // Make a range of lines invisible.
3321 void HideLines(int lineStart
, int lineEnd
);
3323 // Is a line visible?
3324 bool GetLineVisible(int line
) const;
3326 // Are all lines visible?
3327 bool GetAllLinesVisible() const;
3329 // Show the children of a header line.
3330 void SetFoldExpanded(int line
, bool expanded
);
3332 // Is a header line expanded?
3333 bool GetFoldExpanded(int line
) const;
3335 // Switch a header line between expanded and contracted.
3336 void ToggleFold(int line
);
3338 // Ensure a particular line is visible by expanding any header line hiding it.
3339 void EnsureVisible(int line
);
3341 // Set some style options for folding.
3342 void SetFoldFlags(int flags
);
3344 // Ensure a particular line is visible by expanding any header line hiding it.
3345 // Use the currently set visibility policy to determine which range to display.
3346 void EnsureVisibleEnforcePolicy(int line
);
3348 // Sets whether a tab pressed when caret is within indentation indents.
3349 void SetTabIndents(bool tabIndents
);
3351 // Does a tab pressed when caret is within indentation indent?
3352 bool GetTabIndents() const;
3354 // Sets whether a backspace pressed when caret is within indentation unindents.
3355 void SetBackSpaceUnIndents(bool bsUnIndents
);
3357 // Does a backspace pressed when caret is within indentation unindent?
3358 bool GetBackSpaceUnIndents() const;
3360 // Sets the time the mouse must sit still to generate a mouse dwell event.
3361 void SetMouseDwellTime(int periodMilliseconds
);
3363 // Retrieve the time the mouse must sit still to generate a mouse dwell event.
3364 int GetMouseDwellTime() const;
3366 // Get position of start of word.
3367 int WordStartPosition(int pos
, bool onlyWordCharacters
);
3369 // Get position of end of word.
3370 int WordEndPosition(int pos
, bool onlyWordCharacters
);
3372 // Sets whether text is word wrapped.
3373 void SetWrapMode(int mode
);
3375 // Retrieve whether text is word wrapped.
3376 int GetWrapMode() const;
3378 // Set the display mode of visual flags for wrapped lines.
3379 void SetWrapVisualFlags(int wrapVisualFlags
);
3381 // Retrive the display mode of visual flags for wrapped lines.
3382 int GetWrapVisualFlags() const;
3384 // Set the location of visual flags for wrapped lines.
3385 void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation
);
3387 // Retrive the location of visual flags for wrapped lines.
3388 int GetWrapVisualFlagsLocation() const;
3390 // Set the start indent for wrapped lines.
3391 void SetWrapStartIndent(int indent
);
3393 // Retrive the start indent for wrapped lines.
3394 int GetWrapStartIndent() const;
3396 // Sets how wrapped sublines are placed. Default is fixed.
3397 void SetWrapIndentMode(int mode
);
3399 // Retrieve how wrapped sublines are placed. Default is fixed.
3400 int GetWrapIndentMode() const;
3402 // Sets the degree of caching of layout information.
3403 void SetLayoutCache(int mode
);
3405 // Retrieve the degree of caching of layout information.
3406 int GetLayoutCache() const;
3408 // Sets the document width assumed for scrolling.
3409 void SetScrollWidth(int pixelWidth
);
3411 // Retrieve the document width assumed for scrolling.
3412 int GetScrollWidth() const;
3414 // Sets whether the maximum width line displayed is used to set scroll width.
3415 void SetScrollWidthTracking(bool tracking
);
3417 // Retrieve whether the scroll width tracks wide lines.
3418 bool GetScrollWidthTracking() const;
3420 // Measure the pixel width of some text in a particular style.
3421 // NUL terminated text argument.
3422 // Does not handle tab or control characters.
3423 int TextWidth(int style
, const wxString
& text
);
3425 // Sets the scroll range so that maximum scroll position has
3426 // the last line at the bottom of the view (default).
3427 // Setting this to false allows scrolling one page below the last line.
3428 void SetEndAtLastLine(bool endAtLastLine
);
3430 // Retrieve whether the maximum scroll position has the last
3431 // line at the bottom of the view.
3432 bool GetEndAtLastLine() const;
3434 // Retrieve the height of a particular line of text in pixels.
3435 int TextHeight(int line
);
3437 // Show or hide the vertical scroll bar.
3438 void SetUseVerticalScrollBar(bool show
);
3440 // Is the vertical scroll bar visible?
3441 bool GetUseVerticalScrollBar() const;
3443 // Append a string to the end of the document without changing the selection.
3444 void AppendText(const wxString
& text
);
3446 // Is drawing done in two phases with backgrounds drawn before foregrounds?
3447 bool GetTwoPhaseDraw() const;
3449 // In twoPhaseDraw mode, drawing is performed in two phases, first the background
3450 // and then the foreground. This avoids chopping off characters that overlap the next run.
3451 void SetTwoPhaseDraw(bool twoPhase
);
3453 // Scroll so that a display line is at the top of the display.
3454 void SetFirstVisibleLine(int lineDisplay
);
3456 // Change the effect of pasting when there are multiple selections.
3457 void SetMultiPaste(int multiPaste
);
3459 // Retrieve the effect of pasting when there are multiple selections..
3460 int GetMultiPaste() const;
3462 // Retrieve the value of a tag from a regular expression search.
3463 wxString
GetTag(int tagNumber
) const;
3465 // Make the target range start and end be the same as the selection range start and end.
3466 void TargetFromSelection();
3468 // Join the lines in the target.
3471 // Split the lines in the target into lines that are less wide than pixelWidth
3473 void LinesSplit(int pixelWidth
);
3475 // Set the colours used as a chequerboard pattern in the fold margin
3476 void SetFoldMarginColour(bool useSetting
, const wxColour
& back
);
3477 void SetFoldMarginHiColour(bool useSetting
, const wxColour
& fore
);
3479 // Move caret down one line.
3482 // Move caret down one line extending selection to new caret position.
3483 void LineDownExtend();
3485 // Move caret up one line.
3488 // Move caret up one line extending selection to new caret position.
3489 void LineUpExtend();
3491 // Move caret left one character.
3494 // Move caret left one character extending selection to new caret position.
3495 void CharLeftExtend();
3497 // Move caret right one character.
3500 // Move caret right one character extending selection to new caret position.
3501 void CharRightExtend();
3503 // Move caret left one word.
3506 // Move caret left one word extending selection to new caret position.
3507 void WordLeftExtend();
3509 // Move caret right one word.
3512 // Move caret right one word extending selection to new caret position.
3513 void WordRightExtend();
3515 // Move caret to first position on line.
3518 // Move caret to first position on line extending selection to new caret position.
3521 // Move caret to last position on line.
3524 // Move caret to last position on line extending selection to new caret position.
3525 void LineEndExtend();
3527 // Move caret to first position in document.
3528 void DocumentStart();
3530 // Move caret to first position in document extending selection to new caret position.
3531 void DocumentStartExtend();
3533 // Move caret to last position in document.
3536 // Move caret to last position in document extending selection to new caret position.
3537 void DocumentEndExtend();
3539 // Move caret one page up.
3542 // Move caret one page up extending selection to new caret position.
3543 void PageUpExtend();
3545 // Move caret one page down.
3548 // Move caret one page down extending selection to new caret position.
3549 void PageDownExtend();
3551 // Switch from insert to overtype mode or the reverse.
3552 void EditToggleOvertype();
3554 // Cancel any modes such as call tip or auto-completion list display.
3557 // Delete the selection or if no selection, the character before the caret.
3560 // If selection is empty or all on one line replace the selection with a tab character.
3561 // If more than one line selected, indent the lines.
3564 // Dedent the selected lines.
3567 // Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
3570 // Insert a Form Feed character.
3573 // Move caret to before first visible character on line.
3574 // If already there move to first character on line.
3577 // Like VCHome but extending selection to new caret position.
3578 void VCHomeExtend();
3580 // Magnify the displayed text by increasing the sizes by 1 point.
3583 // Make the displayed text smaller by decreasing the sizes by 1 point.
3586 // Delete the word to the left of the caret.
3589 // Delete the word to the right of the caret.
3590 void DelWordRight();
3592 // Delete the word to the right of the caret, but not the trailing non-word characters.
3593 void DelWordRightEnd();
3595 // Cut the line containing the caret.
3598 // Delete the line containing the caret.
3601 // Switch the current line with the previous.
3602 void LineTranspose();
3604 // Duplicate the current line.
3605 void LineDuplicate();
3607 // Transform the selection to lower case.
3610 // Transform the selection to upper case.
3613 // Scroll the document down, keeping the caret visible.
3614 void LineScrollDown();
3616 // Scroll the document up, keeping the caret visible.
3617 void LineScrollUp();
3619 // Delete the selection or if no selection, the character before the caret.
3620 // Will not delete the character before at the start of a line.
3621 void DeleteBackNotLine();
3623 // Move caret to first position on display line.
3626 // Move caret to first position on display line extending selection to
3627 // new caret position.
3628 void HomeDisplayExtend();
3630 // Move caret to last position on display line.
3631 void LineEndDisplay();
3633 // Move caret to last position on display line extending selection to new
3635 void LineEndDisplayExtend();
3637 // These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
3638 // except they behave differently when word-wrap is enabled:
3639 // They go first to the start / end of the display line, like (Home|LineEnd)Display
3640 // The difference is that, the cursor is already at the point, it goes on to the start
3641 // or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
3643 void HomeWrapExtend();
3645 void LineEndWrapExtend();
3647 void VCHomeWrapExtend();
3649 // Copy the line containing the caret.
3652 // Move the caret inside current view if it's not there already.
3653 void MoveCaretInsideView();
3655 // How many characters are on a line, including end of line characters?
3656 int LineLength(int line
) const;
3658 // Highlight the characters at two positions.
3659 void BraceHighlight(int pos1
, int pos2
);
3661 // Use specified indicator to highlight matching braces instead of changing their style.
3662 void BraceHighlightIndicator(bool useBraceHighlightIndicator
, int indicator
);
3664 // Highlight the character at a position indicating there is no matching brace.
3665 void BraceBadLight(int pos
);
3667 // Use specified indicator to highlight non matching brace instead of changing its style.
3668 void BraceBadLightIndicator(bool useBraceBadLightIndicator
, int indicator
);
3670 // Find the position of a matching brace or INVALID_POSITION if no match.
3671 int BraceMatch(int pos
);
3673 // Are the end of line characters visible?
3674 bool GetViewEOL() const;
3676 // Make the end of line characters visible or invisible.
3677 void SetViewEOL(bool visible
);
3679 // Retrieve a pointer to the document object.
3680 void* GetDocPointer();
3682 // Change the document object used.
3683 void SetDocPointer(void* docPointer
);
3685 // Set which document modification events are sent to the container.
3686 void SetModEventMask(int mask
);
3688 // Retrieve the column number which text should be kept within.
3689 int GetEdgeColumn() const;
3691 // Set the column number of the edge.
3692 // If text goes past the edge then it is highlighted.
3693 void SetEdgeColumn(int column
);
3695 // Retrieve the edge highlight mode.
3696 int GetEdgeMode() const;
3698 // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
3699 // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
3700 void SetEdgeMode(int mode
);
3702 // Retrieve the colour used in edge indication.
3703 wxColour
GetEdgeColour() const;
3705 // Change the colour used in edge indication.
3706 void SetEdgeColour(const wxColour
& edgeColour
);
3708 // Sets the current caret position to be the search anchor.
3709 void SearchAnchor();
3711 // Find some text starting at the search anchor.
3712 // Does not ensure the selection is visible.
3713 int SearchNext(int flags
, const wxString
& text
);
3715 // Find some text starting at the search anchor and moving backwards.
3716 // Does not ensure the selection is visible.
3717 int SearchPrev(int flags
, const wxString
& text
);
3719 // Retrieves the number of lines completely visible.
3720 int LinesOnScreen() const;
3722 // Set whether a pop up menu is displayed automatically when the user presses
3723 // the wrong mouse button.
3724 void UsePopUp(bool allowPopUp
);
3726 // Is the selection rectangular? The alternative is the more common stream selection.
3727 bool SelectionIsRectangle() const;
3729 // Set the zoom level. This number of points is added to the size of all fonts.
3730 // It may be positive to magnify or negative to reduce.
3731 void SetZoom(int zoom
);
3733 // Retrieve the zoom level.
3734 int GetZoom() const;
3736 // Create a new document object.
3737 // Starts with reference count of 1 and not selected into editor.
3738 void* CreateDocument();
3740 // Extend life of document.
3741 void AddRefDocument(void* docPointer
);
3743 // Release a reference to the document, deleting document if it fades to black.
3744 void ReleaseDocument(void* docPointer
);
3746 // Get which document modification events are sent to the container.
3747 int GetModEventMask() const;
3749 // Change internal focus flag.
3750 void SetSTCFocus(bool focus
);
3752 // Get internal focus flag.
3753 bool GetSTCFocus() const;
3755 // Change error status - 0 = OK.
3756 void SetStatus(int statusCode
);
3758 // Get error status.
3759 int GetStatus() const;
3761 // Set whether the mouse is captured when its button is pressed.
3762 void SetMouseDownCaptures(bool captures
);
3764 // Get whether mouse gets captured.
3765 bool GetMouseDownCaptures() const;
3767 // Sets the cursor to one of the SC_CURSOR* values.
3768 void SetSTCCursor(int cursorType
);
3771 int GetSTCCursor() const;
3773 // Change the way control characters are displayed:
3774 // If symbol is < 32, keep the drawn way, else, use the given character.
3775 void SetControlCharSymbol(int symbol
);
3777 // Get the way control characters are displayed.
3778 int GetControlCharSymbol() const;
3780 // Move to the previous change in capitalisation.
3781 void WordPartLeft();
3783 // Move to the previous change in capitalisation extending selection
3784 // to new caret position.
3785 void WordPartLeftExtend();
3787 // Move to the change next in capitalisation.
3788 void WordPartRight();
3790 // Move to the next change in capitalisation extending selection
3791 // to new caret position.
3792 void WordPartRightExtend();
3794 // Set the way the display area is determined when a particular line
3795 // is to be moved to by Find, FindNext, GotoLine, etc.
3796 void SetVisiblePolicy(int visiblePolicy
, int visibleSlop
);
3798 // Delete back from the current position to the start of the line.
3801 // Delete forwards from the current position to the end of the line.
3802 void DelLineRight();
3804 // Get and Set the xOffset (ie, horizontal scroll position).
3805 void SetXOffset(int newOffset
);
3806 int GetXOffset() const;
3808 // Set the last x chosen value to be the caret x position.
3809 void ChooseCaretX();
3811 // Set the way the caret is kept visible when going sideways.
3812 // The exclusion zone is given in pixels.
3813 void SetXCaretPolicy(int caretPolicy
, int caretSlop
);
3815 // Set the way the line the caret is on is kept visible.
3816 // The exclusion zone is given in lines.
3817 void SetYCaretPolicy(int caretPolicy
, int caretSlop
);
3819 // Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
3820 void SetPrintWrapMode(int mode
);
3822 // Is printing line wrapped?
3823 int GetPrintWrapMode() const;
3825 // Set a fore colour for active hotspots.
3826 void SetHotspotActiveForeground(bool useSetting
, const wxColour
& fore
);
3828 // Get the fore colour for active hotspots.
3829 wxColour
GetHotspotActiveForeground() const;
3831 // Set a back colour for active hotspots.
3832 void SetHotspotActiveBackground(bool useSetting
, const wxColour
& back
);
3834 // Get the back colour for active hotspots.
3835 wxColour
GetHotspotActiveBackground() const;
3837 // Enable / Disable underlining active hotspots.
3838 void SetHotspotActiveUnderline(bool underline
);
3840 // Get whether underlining for active hotspots.
3841 bool GetHotspotActiveUnderline() const;
3843 // Limit hotspots to single line so hotspots on two lines don't merge.
3844 void SetHotspotSingleLine(bool singleLine
);
3846 // Get the HotspotSingleLine property
3847 bool GetHotspotSingleLine() const;
3849 // Move caret between paragraphs (delimited by empty lines).
3851 void ParaDownExtend();
3853 void ParaUpExtend();
3855 // Given a valid document position, return the previous position taking code
3856 // page into account. Returns 0 if passed 0.
3857 int PositionBefore(int pos
);
3859 // Given a valid document position, return the next position taking code
3860 // page into account. Maximum value returned is the last position in the document.
3861 int PositionAfter(int pos
);
3863 // Copy a range of text to the clipboard. Positions are clipped into the document.
3864 void CopyRange(int start
, int end
);
3866 // Copy argument text to the clipboard.
3867 void CopyText(int length
, const wxString
& text
);
3869 // Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or
3870 // by lines (SC_SEL_LINES).
3871 void SetSelectionMode(int mode
);
3873 // Get the mode of the current selection.
3874 int GetSelectionMode() const;
3876 // Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
3877 int GetLineSelStartPosition(int line
);
3879 // Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
3880 int GetLineSelEndPosition(int line
);
3882 // Move caret down one line, extending rectangular selection to new caret position.
3883 void LineDownRectExtend();
3885 // Move caret up one line, extending rectangular selection to new caret position.
3886 void LineUpRectExtend();
3888 // Move caret left one character, extending rectangular selection to new caret position.
3889 void CharLeftRectExtend();
3891 // Move caret right one character, extending rectangular selection to new caret position.
3892 void CharRightRectExtend();
3894 // Move caret to first position on line, extending rectangular selection to new caret position.
3895 void HomeRectExtend();
3897 // Move caret to before first visible character on line.
3898 // If already there move to first character on line.
3899 // In either case, extend rectangular selection to new caret position.
3900 void VCHomeRectExtend();
3902 // Move caret to last position on line, extending rectangular selection to new caret position.
3903 void LineEndRectExtend();
3905 // Move caret one page up, extending rectangular selection to new caret position.
3906 void PageUpRectExtend();
3908 // Move caret one page down, extending rectangular selection to new caret position.
3909 void PageDownRectExtend();
3911 // Move caret to top of page, or one page up if already at top of page.
3912 void StutteredPageUp();
3914 // Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
3915 void StutteredPageUpExtend();
3917 // Move caret to bottom of page, or one page down if already at bottom of page.
3918 void StutteredPageDown();
3920 // Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
3921 void StutteredPageDownExtend();
3923 // Move caret left one word, position cursor at end of word.
3926 // Move caret left one word, position cursor at end of word, extending selection to new caret position.
3927 void WordLeftEndExtend();
3929 // Move caret right one word, position cursor at end of word.
3930 void WordRightEnd();
3932 // Move caret right one word, position cursor at end of word, extending selection to new caret position.
3933 void WordRightEndExtend();
3935 // Set the set of characters making up whitespace for when moving or selecting by word.
3936 // Should be called after SetWordChars.
3937 void SetWhitespaceChars(const wxString
& characters
);
3939 // Get the set of characters making up whitespace for when moving or selecting by word.
3940 wxString
GetWhitespaceChars() const;
3942 // Set the set of characters making up punctuation characters
3943 // Should be called after SetWordChars.
3944 void SetPunctuationChars(const wxString
& characters
);
3946 // Get the set of characters making up punctuation characters
3947 wxString
GetPunctuationChars() const;
3949 // Reset the set of characters for whitespace and word characters to the defaults.
3950 void SetCharsDefault();
3952 // Get currently selected item position in the auto-completion list
3953 int AutoCompGetCurrent() const;
3955 // Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.
3956 void AutoCSetCaseInsensitiveBehaviour(int behaviour
);
3958 // Get auto-completion case insensitive behaviour.
3959 int AutoCGetCaseInsensitiveBehaviour() const;
3961 // Enlarge the document to a particular size of text bytes.
3962 void Allocate(int bytes
);
3964 // Find the position of a column on a line taking into account tabs and
3965 // multi-byte characters. If beyond end of line, return line end position.
3966 int FindColumn(int line
, int column
);
3968 // Can the caret preferred x position only be changed by explicit movement commands?
3969 int GetCaretSticky() const;
3971 // Stop the caret preferred x position changing when the user types.
3972 void SetCaretSticky(int useCaretStickyBehaviour
);
3974 // Switch between sticky and non-sticky: meant to be bound to a key.
3975 void ToggleCaretSticky();
3977 // Enable/Disable convert-on-paste for line endings
3978 void SetPasteConvertEndings(bool convert
);
3980 // Get convert-on-paste setting
3981 bool GetPasteConvertEndings() const;
3983 // Duplicate the selection. If selection empty duplicate the line containing the caret.
3984 void SelectionDuplicate();
3986 // Set background alpha of the caret line.
3987 void SetCaretLineBackAlpha(int alpha
);
3989 // Get the background alpha of the caret line.
3990 int GetCaretLineBackAlpha() const;
3992 // Set the style of the caret to be drawn.
3993 void SetCaretStyle(int caretStyle
);
3995 // Returns the current style of the caret.
3996 int GetCaretStyle() const;
3998 // Set the indicator used for IndicatorFillRange and IndicatorClearRange
3999 void SetIndicatorCurrent(int indicator
);
4001 // Get the current indicator
4002 int GetIndicatorCurrent() const;
4004 // Set the value used for IndicatorFillRange
4005 void SetIndicatorValue(int value
);
4007 // Get the current indicator value
4008 int GetIndicatorValue() const;
4010 // Turn a indicator on over a range.
4011 void IndicatorFillRange(int position
, int fillLength
);
4013 // Turn a indicator off over a range.
4014 void IndicatorClearRange(int position
, int clearLength
);
4016 // Are any indicators present at position?
4017 int IndicatorAllOnFor(int position
);
4019 // What value does a particular indicator have at at a position?
4020 int IndicatorValueAt(int indicator
, int position
);
4022 // Where does a particular indicator start?
4023 int IndicatorStart(int indicator
, int position
);
4025 // Where does a particular indicator end?
4026 int IndicatorEnd(int indicator
, int position
);
4028 // Set number of entries in position cache
4029 void SetPositionCacheSize(int size
);
4031 // How many entries are allocated to the position cache?
4032 int GetPositionCacheSize() const;
4034 // Copy the selection, if selection empty copy the line with the caret
4035 void CopyAllowLine();
4037 // Compact the document buffer and return a read-only pointer to the
4038 // characters in the document.
4039 const char* GetCharacterPointer();
4041 // Return a read-only pointer to a range of characters in the document.
4042 // May move the gap so that the range is contiguous, but will only move up
4043 // to rangeLength bytes.
4044 int GetRangePointer(int position
, int rangeLength
) const;
4046 // Return a position which, to avoid performance costs, should not be within
4047 // the range of a call to GetRangePointer.
4048 int GetGapPosition() const;
4050 // Always interpret keyboard input as Unicode
4051 void SetKeysUnicode(bool keysUnicode
);
4053 // Are keys always interpreted as Unicode?
4054 bool GetKeysUnicode() const;
4056 // Set the alpha fill colour of the given indicator.
4057 void IndicatorSetAlpha(int indicator
, int alpha
);
4059 // Get the alpha fill colour of the given indicator.
4060 int IndicatorGetAlpha(int indicator
) const;
4062 // Set the alpha outline colour of the given indicator.
4063 void IndicSetOutlineAlpha(int indicator
, int alpha
);
4065 // Get the alpha outline colour of the given indicator.
4066 int IndicGetOutlineAlpha(int indicator
) const;
4068 // Set extra ascent for each line
4069 void SetExtraAscent(int extraAscent
);
4071 // Get extra ascent for each line
4072 int GetExtraAscent() const;
4074 // Set extra descent for each line
4075 void SetExtraDescent(int extraDescent
);
4077 // Get extra descent for each line
4078 int GetExtraDescent() const;
4080 // Which symbol was defined for markerNumber with MarkerDefine
4081 int GetMarkerSymbolDefined(int markerNumber
);
4083 // Set the text in the text margin for a line
4084 void MarginSetText(int line
, const wxString
& text
);
4086 // Get the text in the text margin for a line
4087 wxString
MarginGetText(int line
) const;
4089 // Set the style number for the text margin for a line
4090 void MarginSetStyle(int line
, int style
);
4092 // Get the style number for the text margin for a line
4093 int MarginGetStyle(int line
) const;
4095 // Set the style in the text margin for a line
4096 void MarginSetStyles(int line
, const wxString
& styles
);
4098 // Get the styles in the text margin for a line
4099 wxString
MarginGetStyles(int line
) const;
4101 // Clear the margin text on all lines
4102 void MarginTextClearAll();
4104 // Get the start of the range of style numbers used for margin text
4105 void MarginSetStyleOffset(int style
);
4107 // Get the start of the range of style numbers used for margin text
4108 int MarginGetStyleOffset() const;
4110 // Set the margin options.
4111 void SetMarginOptions(int marginOptions
);
4113 // Get the margin options.
4114 int GetMarginOptions() const;
4116 // Set the annotation text for a line
4117 void AnnotationSetText(int line
, const wxString
& text
);
4119 // Get the annotation text for a line
4120 wxString
AnnotationGetText(int line
) const;
4122 // Set the style number for the annotations for a line
4123 void AnnotationSetStyle(int line
, int style
);
4125 // Get the style number for the annotations for a line
4126 int AnnotationGetStyle(int line
) const;
4128 // Set the annotation styles for a line
4129 void AnnotationSetStyles(int line
, const wxString
& styles
);
4131 // Get the annotation styles for a line
4132 wxString
AnnotationGetStyles(int line
) const;
4134 // Get the number of annotation lines for a line
4135 int AnnotationGetLines(int line
) const;
4137 // Clear the annotations from all lines
4138 void AnnotationClearAll();
4140 // Set the visibility for the annotations for a view
4141 void AnnotationSetVisible(int visible
);
4143 // Get the visibility for the annotations for a view
4144 int AnnotationGetVisible() const;
4146 // Get the start of the range of style numbers used for annotations
4147 void AnnotationSetStyleOffset(int style
);
4149 // Get the start of the range of style numbers used for annotations
4150 int AnnotationGetStyleOffset() const;
4152 // Add a container action to the undo stack
4153 void AddUndoAction(int token
, int flags
);
4155 // Find the position of a character from a point within the window.
4156 int CharPositionFromPoint(int x
, int y
);
4158 // Find the position of a character from a point within the window.
4159 // Return INVALID_POSITION if not close to text.
4160 int CharPositionFromPointClose(int x
, int y
);
4162 // Set whether multiple selections can be made
4163 void SetMultipleSelection(bool multipleSelection
);
4165 // Whether multiple selections can be made
4166 bool GetMultipleSelection() const;
4168 // Set whether typing can be performed into multiple selections
4169 void SetAdditionalSelectionTyping(bool additionalSelectionTyping
);
4171 // Whether typing can be performed into multiple selections
4172 bool GetAdditionalSelectionTyping() const;
4174 // Set whether additional carets will blink
4175 void SetAdditionalCaretsBlink(bool additionalCaretsBlink
);
4177 // Whether additional carets will blink
4178 bool GetAdditionalCaretsBlink() const;
4180 // Set whether additional carets are visible
4181 void SetAdditionalCaretsVisible(bool additionalCaretsBlink
);
4183 // Whether additional carets are visible
4184 bool GetAdditionalCaretsVisible() const;
4186 // How many selections are there?
4187 int GetSelections() const;
4189 // Clear selections to a single empty stream selection
4190 void ClearSelections();
4193 int AddSelection(int caret
, int anchor
);
4195 // Set the main selection
4196 void SetMainSelection(int selection
);
4198 // Which selection is the main selection
4199 int GetMainSelection() const;
4200 void SetSelectionNCaret(int selection
, int pos
);
4201 int GetSelectionNCaret(int selection
) const;
4202 void SetSelectionNAnchor(int selection
, int posAnchor
);
4203 int GetSelectionNAnchor(int selection
) const;
4204 void SetSelectionNCaretVirtualSpace(int selection
, int space
);
4205 int GetSelectionNCaretVirtualSpace(int selection
) const;
4206 void SetSelectionNAnchorVirtualSpace(int selection
, int space
);
4207 int GetSelectionNAnchorVirtualSpace(int selection
) const;
4209 // Sets the position that starts the selection - this becomes the anchor.
4210 void SetSelectionNStart(int selection
, int pos
);
4212 // Returns the position at the start of the selection.
4213 int GetSelectionNStart(int selection
) const;
4215 // Sets the position that ends the selection - this becomes the currentPosition.
4216 void SetSelectionNEnd(int selection
, int pos
);
4218 // Returns the position at the end of the selection.
4219 int GetSelectionNEnd(int selection
) const;
4220 void SetRectangularSelectionCaret(int pos
);
4221 int GetRectangularSelectionCaret() const;
4222 void SetRectangularSelectionAnchor(int posAnchor
);
4223 int GetRectangularSelectionAnchor() const;
4224 void SetRectangularSelectionCaretVirtualSpace(int space
);
4225 int GetRectangularSelectionCaretVirtualSpace() const;
4226 void SetRectangularSelectionAnchorVirtualSpace(int space
);
4227 int GetRectangularSelectionAnchorVirtualSpace() const;
4228 void SetVirtualSpaceOptions(int virtualSpaceOptions
);
4229 int GetVirtualSpaceOptions() const;
4231 // On GTK+, allow selecting the modifier key to use for mouse-based
4232 // rectangular selection. Often the window manager requires Alt+Mouse Drag
4233 // for moving windows.
4234 // Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER.
4235 void SetRectangularSelectionModifier(int modifier
);
4237 // Get the modifier key used for rectangular selection.
4238 int GetRectangularSelectionModifier() const;
4240 // Set the foreground colour of additional selections.
4241 // Must have previously called SetSelFore with non-zero first argument for this to have an effect.
4242 void SetAdditionalSelForeground(const wxColour
& fore
);
4244 // Set the background colour of additional selections.
4245 // Must have previously called SetSelBack with non-zero first argument for this to have an effect.
4246 void SetAdditionalSelBackground(const wxColour
& back
);
4248 // Set the alpha of the selection.
4249 void SetAdditionalSelAlpha(int alpha
);
4251 // Get the alpha of the selection.
4252 int GetAdditionalSelAlpha() const;
4254 // Set the foreground colour of additional carets.
4255 void SetAdditionalCaretForeground(const wxColour
& fore
);
4257 // Get the foreground colour of additional carets.
4258 wxColour
GetAdditionalCaretForeground() const;
4260 // Set the main selection to the next selection.
4261 void RotateSelection();
4263 // Swap that caret and anchor of the main selection.
4264 void SwapMainAnchorCaret();
4266 // Indicate that the internal state of a lexer has changed over a range and therefore
4267 // there may be a need to redraw.
4268 int ChangeLexerState(int start
, int end
);
4270 // Find the next line at or after lineStart that is a contracted fold header line.
4271 // Return -1 when no more lines.
4272 int ContractedFoldNext(int lineStart
);
4274 // Centre current line in window.
4275 void VerticalCentreCaret();
4277 // Move the selected lines up one line, shifting the line above after the selection
4278 void MoveSelectedLinesUp();
4280 // Move the selected lines down one line, shifting the line below before the selection
4281 void MoveSelectedLinesDown();
4283 // Set the identifier reported as idFrom in notification messages.
4284 void SetIdentifier(int identifier
);
4286 // Get the identifier.
4287 int GetIdentifier() const;
4289 // Set the width for future RGBA image data.
4290 void RGBAImageSetWidth(int width
);
4292 // Set the height for future RGBA image data.
4293 void RGBAImageSetHeight(int height
);
4295 // Define a marker from RGBA data.
4296 // It has the width and height from RGBAImageSetWidth/Height
4297 void MarkerDefineRGBAImage(int markerNumber
, const wxString
& pixels
);
4299 // Register an RGBA image for use in autocompletion lists.
4300 // It has the width and height from RGBAImageSetWidth/Height
4301 void RegisterRGBAImage(int type
, const wxString
& pixels
);
4303 // Scroll to start of document.
4304 void ScrollToStart();
4306 // Scroll to end of document.
4309 // Set the technology used.
4310 void SetTechnology(int technology
);
4313 int GetTechnology() const;
4315 // Create an ILoader*.
4316 int CreateLoader(int bytes
);
4318 // On OS X, show a find indicator.
4319 void FindIndicatorShow(int start
, int end
);
4321 // On OS X, flash a find indicator, then fade out.
4322 void FindIndicatorFlash(int start
, int end
);
4324 // On OS X, hide the find indicator.
4325 void FindIndicatorHide();
4327 // Start notifying the container of all key presses and commands.
4330 // Stop notifying the container of all key presses and commands.
4333 // Set the lexing language of the document.
4334 void SetLexer(int lexer
);
4336 // Retrieve the lexing language of the document.
4337 int GetLexer() const;
4339 // Colourise a segment of the document using the current lexing language.
4340 void Colourise(int start
, int end
);
4342 // Set up a value that may be used by a lexer for some optional feature.
4343 void SetProperty(const wxString
& key
, const wxString
& value
);
4345 // Set up the key words used by the lexer.
4346 void SetKeyWords(int keywordSet
, const wxString
& keyWords
);
4348 // Set the lexing language of the document based on string name.
4349 void SetLexerLanguage(const wxString
& language
);
4351 // Retrieve a 'property' value previously set with SetProperty.
4352 wxString
GetProperty(const wxString
& key
);
4354 // Retrieve a 'property' value previously set with SetProperty,
4355 // with '$()' variable replacement on returned buffer.
4356 wxString
GetPropertyExpanded(const wxString
& key
);
4358 // Retrieve a 'property' value previously set with SetProperty,
4359 // interpreted as an int AFTER any '$()' variable replacement.
4360 int GetPropertyInt(const wxString
& key
) const;
4362 // Retrieve the number of bits the current lexer needs for styling.
4363 int GetStyleBitsNeeded() const;
4365 // For private communication between an application and a known lexer.
4366 int PrivateLexerCall(int operation
, int pointer
);
4368 // Retrieve a '\n' separated list of properties understood by the current lexer.
4369 wxString
PropertyNames() const;
4371 // Retrieve the type of a property.
4372 int PropertyType(const wxString
& name
);
4374 // Describe a property.
4375 wxString
DescribeProperty(const wxString
& name
) const;
4377 // Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer.
4378 wxString
DescribeKeyWordSets() const;
4381 //----------------------------------------------------------------------
4383 // Manually declared methods
4385 // Returns the line number of the line with the caret.
4386 int GetCurrentLine();
4388 // Extract style settings from a spec-string which is composed of one or
4389 // more of the following comma separated elements:
4391 // bold turns on bold
4392 // italic turns on italics
4393 // fore:[name or #RRGGBB] sets the foreground colour
4394 // back:[name or #RRGGBB] sets the background colour
4395 // face:[facename] sets the font face name to use
4396 // size:[num] sets the font size in points
4397 // eol turns on eol filling
4398 // underline turns on underlining
4400 void StyleSetSpec(int styleNum
, const wxString
& spec
);
4403 // Get the font of a style.
4404 wxFont
StyleGetFont(int style
);
4407 // Set style size, face, bold, italic, and underline attributes from
4408 // a wxFont's attributes.
4409 void StyleSetFont(int styleNum
, wxFont
& font
);
4413 // Set all font style attributes at once.
4414 void StyleSetFontAttr(int styleNum
, int size
,
4415 const wxString
& faceName
,
4416 bool bold
, bool italic
,
4418 wxFontEncoding encoding
=wxFONTENCODING_DEFAULT
);
4421 // Set the character set of the font in a style. Converts the Scintilla
4422 // character set values to a wxFontEncoding.
4423 void StyleSetCharacterSet(int style
, int characterSet
);
4425 // Set the font encoding to be used by a style.
4426 void StyleSetFontEncoding(int style
, wxFontEncoding encoding
);
4429 // Perform one of the operations defined by the wxSTC_CMD_* constants.
4430 void CmdKeyExecute(int cmd
);
4433 // Set the left and right margin in the edit area, measured in pixels.
4434 void SetMargins(int left
, int right
);
4437 // Retrieve the point in the window where a position is displayed.
4438 wxPoint
PointFromPosition(int pos
);
4441 // Scroll enough to make the given line visible
4442 void ScrollToLine(int line
);
4445 // Scroll enough to make the given column visible
4446 void ScrollToColumn(int column
);
4449 // Send a message to Scintilla
4451 // NB: this method is not really const as it can modify the control but it
4452 // has to be declared as such as it's called from both const and
4453 // non-const methods and we can't distinguish between the two
4454 wxIntPtr
SendMsg(int msg
, wxUIntPtr wp
=0, wxIntPtr lp
=0) const;
4457 // Set the vertical scrollbar to use instead of the ont that's built-in.
4458 void SetVScrollBar(wxScrollBar
* bar
);
4461 // Set the horizontal scrollbar to use instead of the ont that's built-in.
4462 void SetHScrollBar(wxScrollBar
* bar
);
4464 // Can be used to prevent the EVT_CHAR handler from adding the char
4465 bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed
; }
4466 void SetLastKeydownProcessed(bool val
) { m_lastKeyDownConsumed
= val
; }
4468 // if we derive from wxTextAreaBase it already provides these methods
4470 // Write the contents of the editor to filename
4471 bool SaveFile(const wxString
& filename
);
4473 // Load the contents of filename into the editor
4474 bool LoadFile(const wxString
& filename
);
4475 #endif // !wxUSE_TEXTCTRL
4478 // Allow for simulating a DnD DragOver
4479 wxDragResult
DoDragOver(wxCoord x
, wxCoord y
, wxDragResult def
);
4481 // Allow for simulating a DnD DropText
4482 bool DoDropText(long x
, long y
, const wxString
& data
);
4485 // Specify whether anti-aliased fonts should be used. Will have no effect
4486 // on some platforms, but on some (wxMac for example) can greatly improve
4488 void SetUseAntiAliasing(bool useAA
);
4490 // Returns the current UseAntiAliasing setting.
4491 bool GetUseAntiAliasing();
4495 // The following methods are nearly equivalent to their similarly named
4496 // cousins above. The difference is that these methods bypass wxString
4497 // and always use a char* even if used in a unicode build of wxWidgets.
4498 // In that case the character data will be utf-8 encoded since that is
4499 // what is used internally by Scintilla in unicode builds.
4501 // Add text to the document at current position.
4502 void AddTextRaw(const char* text
, int length
=-1);
4504 // Insert string at a position.
4505 void InsertTextRaw(int pos
, const char* text
);
4507 // Retrieve the text of the line containing the caret.
4508 // Returns the index of the caret on the line.
4510 wxCharBuffer
GetCurLineRaw(int* OUTPUT
);
4512 wxCharBuffer
GetCurLineRaw(int* linePos
=NULL
);
4515 // Retrieve the contents of a line.
4516 wxCharBuffer
GetLineRaw(int line
);
4518 // Retrieve the selected text.
4519 wxCharBuffer
GetSelectedTextRaw();
4521 // Retrieve a range of text.
4522 wxCharBuffer
GetTextRangeRaw(int startPos
, int endPos
);
4524 // Replace the contents of the document with the argument text.
4525 void SetTextRaw(const char* text
);
4527 // Retrieve all the text in the document.
4528 wxCharBuffer
GetTextRaw();
4530 // Append a string to the end of the document without changing the selection.
4531 void AppendTextRaw(const char* text
, int length
=-1);
4534 %pythoncode
"_stc_utf8_methods.py"
4538 // implement wxTextEntryBase pure virtual methods
4539 // ----------------------------------------------
4541 virtual void WriteText(const wxString
& text
) { AddText(text
); }
4542 virtual void Remove(long from
, long to
)
4544 Replace(from
, to
, "");
4546 virtual void Replace(long from
, long to
, const wxString
& text
)
4548 SetTargetStart(from
);
4550 ReplaceTarget(text
);
4554 These functions are already declared in the generated section.
4556 virtual void Copy();
4558 virtual void Paste();
4560 virtual void Undo();
4561 virtual void Redo();
4563 virtual bool CanUndo() const;
4564 virtual bool CanRedo() const;
4568 virtual void SetInsertionPoint(long pos
) { SetCurrentPos(pos
); }
4569 virtual long GetInsertionPoint() const { return GetCurrentPos(); }
4570 virtual long GetLastPosition() const { return GetTextLength(); }
4572 virtual void SetSelection(long from
, long to
)
4574 if ( from
== -1 && to
== -1 )
4580 SetSelectionStart(from
);
4581 SetSelectionEnd(to
);
4586 void GetSelection(long* OUTPUT
, long* OUTPUT
) const;
4588 virtual void GetSelection(long *from
, long *to
) const
4591 *from
= GetSelectionStart();
4593 *to
= GetSelectionEnd();
4596 // kept for compatibility only
4597 void GetSelection(int *from
, int *to
)
4600 GetSelection(&f
, &t
);
4608 virtual bool IsEditable() const { return !GetReadOnly(); }
4609 virtual void SetEditable(bool editable
) { SetReadOnly(!editable
); }
4611 // implement wxTextAreaBase pure virtual methods
4612 // ---------------------------------------------
4614 virtual int GetLineLength(long n
) const { return GetLine(n
).length(); }
4615 virtual wxString
GetLineText(long n
) const { return GetLine(n
); }
4616 virtual int GetNumberOfLines() const { return GetLineCount(); }
4618 virtual bool IsModified() const { return GetModify(); }
4619 virtual void MarkDirty() { wxFAIL_MSG("not implemented"); }
4620 virtual void DiscardEdits() { SetSavePoint(); }
4622 virtual bool SetStyle(long WXUNUSED(start
), long WXUNUSED(end
),
4623 const wxTextAttr
& WXUNUSED(style
))
4625 wxFAIL_MSG("not implemented");
4630 virtual bool GetStyle(long WXUNUSED(position
), wxTextAttr
& WXUNUSED(style
))
4632 wxFAIL_MSG("not implemented");
4637 virtual bool SetDefaultStyle(const wxTextAttr
& WXUNUSED(style
))
4639 wxFAIL_MSG("not implemented");
4644 virtual long XYToPosition(long x
, long y
) const
4646 long pos
= PositionFromLine(y
);
4651 virtual bool PositionToXY(long pos
, long *x
, long *y
) const
4653 long l
= LineFromPosition(pos
);
4658 *x
= pos
- PositionFromLine(l
);
4666 virtual void ShowPosition(long pos
) { GotoPos(pos
); }
4668 // FIXME-VC6: can't use wxWindow here because of "error C2603: illegal
4669 // access declaration: 'wxWindow' is not a direct base of
4670 // 'wxStyledTextCtrl'" with VC6
4671 using wxControl::HitTest
;
4673 virtual wxTextCtrlHitTestResult
HitTest(const wxPoint
& pt
, long *pos
) const
4675 const long l
= PositionFromPoint(pt
);
4677 return wxTE_HT_BELOW
; // we don't really know where it was
4682 return wxTE_HT_ON_TEXT
;
4686 virtual wxTextCtrlHitTestResult
HitTest(const wxPoint
& pt
,
4688 wxTextCoord
*row
) const
4690 return wxTextAreaBase::HitTest(pt
, col
, row
);
4693 static wxVersionInfo
GetLibraryVersionInfo();
4696 virtual wxString
DoGetValue() const { return GetText(); }
4697 virtual wxWindow
*GetEditableWindow() { return this; }
4700 virtual bool DoLoadFile(const wxString
& file
, int fileType
);
4701 virtual bool DoSaveFile(const wxString
& file
, int fileType
);
4704 void OnPaint(wxPaintEvent
& evt
);
4705 void OnScrollWin(wxScrollWinEvent
& evt
);
4706 void OnScroll(wxScrollEvent
& evt
);
4707 void OnSize(wxSizeEvent
& evt
);
4708 void OnMouseLeftDown(wxMouseEvent
& evt
);
4709 void OnMouseMove(wxMouseEvent
& evt
);
4710 void OnMouseLeftUp(wxMouseEvent
& evt
);
4711 void OnMouseRightUp(wxMouseEvent
& evt
);
4712 void OnMouseMiddleUp(wxMouseEvent
& evt
);
4713 void OnContextMenu(wxContextMenuEvent
& evt
);
4714 void OnMouseWheel(wxMouseEvent
& evt
);
4715 void OnChar(wxKeyEvent
& evt
);
4716 void OnKeyDown(wxKeyEvent
& evt
);
4717 void OnLoseFocus(wxFocusEvent
& evt
);
4718 void OnGainFocus(wxFocusEvent
& evt
);
4719 void OnSysColourChanged(wxSysColourChangedEvent
& evt
);
4720 void OnEraseBackground(wxEraseEvent
& evt
);
4721 void OnMenu(wxCommandEvent
& evt
);
4722 void OnListBox(wxCommandEvent
& evt
);
4723 void OnIdle(wxIdleEvent
& evt
);
4725 virtual wxSize
DoGetBestSize() const;
4727 // Turn notifications from Scintilla into events
4728 void NotifyChange();
4729 void NotifyParent(SCNotification
* scn
);
4732 DECLARE_EVENT_TABLE()
4733 DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl
)
4738 wxStopWatch m_stopWatch
;
4739 wxScrollBar
* m_vScrollBar
;
4740 wxScrollBar
* m_hScrollBar
;
4742 bool m_lastKeyDownConsumed
;
4744 friend class ScintillaWX
;
4745 friend class Platform
;
4749 //----------------------------------------------------------------------
4751 class WXDLLIMPEXP_STC wxStyledTextEvent
: public wxCommandEvent
{
4753 wxStyledTextEvent(wxEventType commandType
=0, int id
=0);
4755 wxStyledTextEvent(const wxStyledTextEvent
& event
);
4757 ~wxStyledTextEvent() {}
4759 void SetPosition(int pos
) { m_position
= pos
; }
4760 void SetKey(int k
) { m_key
= k
; }
4761 void SetModifiers(int m
) { m_modifiers
= m
; }
4762 void SetModificationType(int t
) { m_modificationType
= t
; }
4763 void SetText(const wxString
& t
) { m_text
= t
; }
4764 void SetLength(int len
) { m_length
= len
; }
4765 void SetLinesAdded(int num
) { m_linesAdded
= num
; }
4766 void SetLine(int val
) { m_line
= val
; }
4767 void SetFoldLevelNow(int val
) { m_foldLevelNow
= val
; }
4768 void SetFoldLevelPrev(int val
) { m_foldLevelPrev
= val
; }
4769 void SetMargin(int val
) { m_margin
= val
; }
4770 void SetMessage(int val
) { m_message
= val
; }
4771 void SetWParam(int val
) { m_wParam
= val
; }
4772 void SetLParam(int val
) { m_lParam
= val
; }
4773 void SetListType(int val
) { m_listType
= val
; }
4774 void SetX(int val
) { m_x
= val
; }
4775 void SetY(int val
) { m_y
= val
; }
4777 void SetDragText(const wxString
& val
) { m_dragText
= val
; }
4778 void SetDragFlags(int flags
) { m_dragFlags
= flags
; }
4779 void SetDragResult(wxDragResult val
) { m_dragResult
= val
; }
4781 // This method is kept mainly for backwards compatibility, use
4782 // SetDragFlags() in the new code.
4783 void SetDragAllowMove(bool allow
)
4786 m_dragFlags
|= wxDrag_AllowMove
;
4788 m_dragFlags
&= ~(wxDrag_AllowMove
| wxDrag_DefaultMove
);
4792 int GetPosition() const { return m_position
; }
4793 int GetKey() const { return m_key
; }
4794 int GetModifiers() const { return m_modifiers
; }
4795 int GetModificationType() const { return m_modificationType
; }
4796 wxString
GetText() const { return m_text
; }
4797 int GetLength() const { return m_length
; }
4798 int GetLinesAdded() const { return m_linesAdded
; }
4799 int GetLine() const { return m_line
; }
4800 int GetFoldLevelNow() const { return m_foldLevelNow
; }
4801 int GetFoldLevelPrev() const { return m_foldLevelPrev
; }
4802 int GetMargin() const { return m_margin
; }
4803 int GetMessage() const { return m_message
; }
4804 int GetWParam() const { return m_wParam
; }
4805 int GetLParam() const { return m_lParam
; }
4806 int GetListType() const { return m_listType
; }
4807 int GetX() const { return m_x
; }
4808 int GetY() const { return m_y
; }
4810 wxString
GetDragText() { return m_dragText
; }
4811 int GetDragFlags() { return m_dragFlags
; }
4812 wxDragResult
GetDragResult() { return m_dragResult
; }
4814 bool GetDragAllowMove() { return (GetDragFlags() & wxDrag_AllowMove
) != 0; }
4817 bool GetShift() const;
4818 bool GetControl() const;
4819 bool GetAlt() const;
4821 virtual wxEvent
* Clone() const { return new wxStyledTextEvent(*this); }
4825 DECLARE_DYNAMIC_CLASS(wxStyledTextEvent
)
4831 int m_modificationType
; // wxEVT_STC_MODIFIED
4837 int m_foldLevelPrev
;
4839 int m_margin
; // wxEVT_STC_MARGINCLICK
4841 int m_message
; // wxEVT_STC_MACRORECORD
4849 #if wxUSE_DRAG_AND_DROP
4850 wxString m_dragText
; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP
4851 int m_dragFlags
; // wxEVT_STC_START_DRAG
4852 wxDragResult m_dragResult
; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP
4860 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_CHANGE
, wxStyledTextEvent
);
4861 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_STYLENEEDED
, wxStyledTextEvent
);
4862 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_CHARADDED
, wxStyledTextEvent
);
4863 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_SAVEPOINTREACHED
, wxStyledTextEvent
);
4864 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_SAVEPOINTLEFT
, wxStyledTextEvent
);
4865 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_ROMODIFYATTEMPT
, wxStyledTextEvent
);
4866 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_KEY
, wxStyledTextEvent
);
4867 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_DOUBLECLICK
, wxStyledTextEvent
);
4868 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_UPDATEUI
, wxStyledTextEvent
);
4869 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_MODIFIED
, wxStyledTextEvent
);
4870 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_MACRORECORD
, wxStyledTextEvent
);
4871 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_MARGINCLICK
, wxStyledTextEvent
);
4872 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_NEEDSHOWN
, wxStyledTextEvent
);
4873 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_PAINTED
, wxStyledTextEvent
);
4874 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_USERLISTSELECTION
, wxStyledTextEvent
);
4875 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_URIDROPPED
, wxStyledTextEvent
);
4876 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_DWELLSTART
, wxStyledTextEvent
);
4877 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_DWELLEND
, wxStyledTextEvent
);
4878 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_START_DRAG
, wxStyledTextEvent
);
4879 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_DRAG_OVER
, wxStyledTextEvent
);
4880 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_DO_DROP
, wxStyledTextEvent
);
4881 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_ZOOM
, wxStyledTextEvent
);
4882 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_HOTSPOT_CLICK
, wxStyledTextEvent
);
4883 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_HOTSPOT_DCLICK
, wxStyledTextEvent
);
4884 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_CALLTIP_CLICK
, wxStyledTextEvent
);
4885 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_AUTOCOMP_SELECTION
, wxStyledTextEvent
);
4886 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_INDICATOR_CLICK
, wxStyledTextEvent
);
4887 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_INDICATOR_RELEASE
, wxStyledTextEvent
);
4888 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_AUTOCOMP_CANCELLED
, wxStyledTextEvent
);
4889 wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC
, wxEVT_STC_AUTOCOMP_CHAR_DELETED
, wxStyledTextEvent
);
4893 wxEVT_STC_STYLENEEDED
,
4894 wxEVT_STC_CHARADDED
,
4895 wxEVT_STC_SAVEPOINTREACHED
,
4896 wxEVT_STC_SAVEPOINTLEFT
,
4897 wxEVT_STC_ROMODIFYATTEMPT
,
4899 wxEVT_STC_DOUBLECLICK
,
4902 wxEVT_STC_MACRORECORD
,
4903 wxEVT_STC_MARGINCLICK
,
4904 wxEVT_STC_NEEDSHOWN
,
4906 wxEVT_STC_USERLISTSELECTION
,
4907 wxEVT_STC_URIDROPPED
,
4908 wxEVT_STC_DWELLSTART
,
4910 wxEVT_STC_START_DRAG
,
4911 wxEVT_STC_DRAG_OVER
,
4914 wxEVT_STC_HOTSPOT_CLICK
,
4915 wxEVT_STC_HOTSPOT_DCLICK
,
4916 wxEVT_STC_CALLTIP_CLICK
,
4917 wxEVT_STC_AUTOCOMP_SELECTION
,
4918 wxEVT_STC_INDICATOR_CLICK
,
4919 wxEVT_STC_INDICATOR_RELEASE
,
4920 wxEVT_STC_AUTOCOMP_CANCELLED
,
4921 wxEVT_STC_AUTOCOMP_CHAR_DELETED
4928 typedef void (wxEvtHandler::*wxStyledTextEventFunction
)(wxStyledTextEvent
&);
4930 #define wxStyledTextEventHandler( func ) \
4931 wxEVENT_HANDLER_CAST( wxStyledTextEventFunction, func )
4933 #define EVT_STC_CHANGE(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4934 #define EVT_STC_STYLENEEDED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4935 #define EVT_STC_CHARADDED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4936 #define EVT_STC_SAVEPOINTREACHED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4937 #define EVT_STC_SAVEPOINTLEFT(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4938 #define EVT_STC_ROMODIFYATTEMPT(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4939 #define EVT_STC_KEY(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4940 #define EVT_STC_DOUBLECLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4941 #define EVT_STC_UPDATEUI(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4942 #define EVT_STC_MODIFIED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4943 #define EVT_STC_MACRORECORD(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4944 #define EVT_STC_MARGINCLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4945 #define EVT_STC_NEEDSHOWN(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4946 #define EVT_STC_PAINTED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4947 #define EVT_STC_USERLISTSELECTION(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4948 #define EVT_STC_URIDROPPED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4949 #define EVT_STC_DWELLSTART(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4950 #define EVT_STC_DWELLEND(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4951 #define EVT_STC_START_DRAG(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4952 #define EVT_STC_DRAG_OVER(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4953 #define EVT_STC_DO_DROP(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4954 #define EVT_STC_ZOOM(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4955 #define EVT_STC_HOTSPOT_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4956 #define EVT_STC_HOTSPOT_DCLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4957 #define EVT_STC_CALLTIP_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4958 #define EVT_STC_AUTOCOMP_SELECTION(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_SELECTION, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4959 #define EVT_STC_INDICATOR_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4960 #define EVT_STC_INDICATOR_RELEASE(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_RELEASE, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4961 #define EVT_STC_AUTOCOMP_CANCELLED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_CANCELLED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4962 #define EVT_STC_AUTOCOMP_CHAR_DELETED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_CHAR_DELETED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
4968 #endif // _WX_STC_STC_H_