]> git.saurik.com Git - wxWidgets.git/blob - src/stc/scintilla/include/Scintilla.iface
Compile fix for MinGW32
[wxWidgets.git] / src / stc / scintilla / include / Scintilla.iface
1 ## First line may be used for shbang
2
3 ## This file defines the interface to Scintilla
4
5 ## Copyright 2000-2002 by Neil Hodgson <neilh@scintilla.org>
6 ## The License.txt file describes the conditions under which this software may be distributed.
7
8 ## A line starting with ## is a pure comment and should be stripped by readers.
9 ## A line starting with #! is for future shbang use
10 ## A line starting with # followed by a space is a documentation comment and refers
11 ## to the next feature definition.
12
13 ## Each feature is defined by a line starting with fun, get, set, val or evt.
14 ## cat -> start a category
15 ## fun -> a function
16 ## get -> a property get function
17 ## set -> a property set function
18 ## val -> definition of a constant
19 ## evt -> an event
20 ## All other feature names should be ignored. They may be defined in the future.
21 ## A property may have a set function, a get function or both. Each will have
22 ## "Get" or "Set" in their names and the corresponding name will have the obvious switch.
23 ## A property may be subscripted, in which case the first parameter is the subscript.
24 ## fun, get, and set features have a strict syntax:
25 ## <featureType><ws><returnType><ws><name>[=<number](<param>,<param>)
26 ## param is <paramType><ws><paramName>[=<value>]
27 ## Additional white space is allowed between elements.
28 ## The syntax for evt is <featureType><ws><returnType><ws><name>[=<number]([<param>[,<param>]*])
29 ## Feature names that contain an underscore are defined by Windows, so in these
30 ## cases, using the Windows definition is preferred where available.
31 ## The feature numbers are stable so features will not be renumbered.
32 ## Features may be removed but they will go through a period of deprecation
33 ## before removal which is signalled by moving them into the Deprecated category.
34
35 ## Types:
36 ## void
37 ## int
38 ## bool -> integer, 1=true, 0=false
39 ## position -> integer position in a document
40 ## colour -> colour integer containing red, green and blue bytes.
41 ## string -> pointer to const character
42 ## stringresult -> pointer to character
43 ## cells -> pointer to array of cells, each cell containing a style byte and character byte
44 ## textrange -> range of a min and a max position with an output string
45 ## findtext -> searchrange, text -> foundposition
46 ## keymod -> integer containing key in low half and modifiers in high half
47 ## formatrange
48 ## Types no longer used:
49 ## findtextex -> searchrange
50 ## charrange -> range of a min and a max position
51 ## charrangeresult -> like charrange, but output param
52 ## countedstring
53 ## point -> x,y
54 ## pointresult -> like point, but output param
55 ## rectangle -> left,top,right,bottom
56 ## Client code should ignore definitions containing types it does not understand, except
57 ## for possibly #defining the constants
58
59 ## String arguments may contain NUL ('\0') characters where the calls provide a length
60 ## argument and retrieve NUL characters. All retrieved strings except for those retrieved
61 ## by GetLine also have a NUL appended but client code should calculate the size that
62 ## will be returned rather than relying upon the NUL whenever possible. Allow for the
63 ## extra NUL character when allocating buffers.
64
65 cat Basics
66
67 ################################################
68 ## For Scintilla.h
69 val INVALID_POSITION=-1
70 # Define start of Scintilla messages to be greater than all edit (EM_*) messages
71 # as many EM_ messages can be used although that use is deprecated.
72 val SCI_START=2000
73 val SCI_OPTIONAL_START=3000
74 val SCI_LEXER_START=4000
75
76 # Add text to the document
77 fun void AddText=2001(int length, string text)
78
79 # Add array of cells to document
80 fun void AddStyledText=2002(int length, cells c)
81
82 # Insert string at a position
83 fun void InsertText=2003(position pos, string text)
84
85 # Delete all text in the document
86 fun void ClearAll=2004(,)
87
88 # Set all style bytes to 0, remove all folding information
89 fun void ClearDocumentStyle=2005(,)
90
91 # The number of characters in the document
92 get int GetLength=2006(,)
93
94 # Returns the character byte at the position
95 get int GetCharAt=2007(position pos,)
96
97 # Returns the position of the caret
98 get position GetCurrentPos=2008(,)
99
100 # Returns the position of the opposite end of the selection to the caret
101 get position GetAnchor=2009(,)
102
103 # Returns the style byte at the position
104 get int GetStyleAt=2010(position pos,)
105
106 # Redoes the next action on the undo history
107 fun void Redo=2011(,)
108
109 # Choose between collecting actions into the undo
110 # history and discarding them.
111 set void SetUndoCollection=2012(bool collectUndo,)
112
113 # Select all the text in the document.
114 fun void SelectAll=2013(,)
115
116 # Remember the current position in the undo history as the position
117 # at which the document was saved.
118 fun void SetSavePoint=2014(,)
119
120 # Retrieve a buffer of cells.
121 # Returns the number of bytes in the buffer not including terminating nulls.
122 fun int GetStyledText=2015(, textrange tr)
123
124 # Are there any redoable actions in the undo history.
125 fun bool CanRedo=2016(,)
126
127 # Retrieve the line number at which a particular marker is located
128 fun int MarkerLineFromHandle=2017(int handle,)
129
130 # Delete a marker.
131 fun void MarkerDeleteHandle=2018(int handle,)
132
133 # Is undo history being collected?
134 get bool GetUndoCollection=2019(,)
135
136 val SCWS_INVISIBLE=0
137 val SCWS_VISIBLEALWAYS=1
138 val SCWS_VISIBLEAFTERINDENT=2
139
140 # Are white space characters currently visible?
141 # Returns one of SCWS_* constants.
142 get int GetViewWS=2020(,)
143
144 # Make white space characters invisible, always visible or visible outside indentation.
145 set void SetViewWS=2021(int viewWS,)
146
147 # Find the position from a point within the window.
148 fun int PositionFromPoint=2022(int x, int y)
149
150 # Find the position from a point within the window but return
151 # INVALID_POSITION if not close to text.
152 fun int PositionFromPointClose=2023(int x, int y)
153
154 # Set caret to start of a line and ensure it is visible.
155 fun void GotoLine=2024(int line,)
156
157 # Set caret to a position and ensure it is visible.
158 fun void GotoPos=2025(position pos,)
159
160 # Set the selection anchor to a position. The anchor is the opposite
161 # end of the selection from the caret.
162 set void SetAnchor=2026(position posAnchor,)
163
164 # Retrieve the text of the line containing the caret.
165 # Returns the index of the caret on the line.
166 fun int GetCurLine=2027(int length, stringresult text)
167
168 # Retrieve the position of the last correctly styled character.
169 get position GetEndStyled=2028(,)
170
171 val SC_EOL_CRLF=0
172 val SC_EOL_CR=1
173 val SC_EOL_LF=2
174
175 # Convert all line endings in the document to one mode.
176 fun void ConvertEOLs=2029(int eolMode,)
177
178 # Retrieve the current end of line mode - one of CRLF, CR, or LF.
179 get int GetEOLMode=2030(,)
180
181 # Set the current end of line mode.
182 set void SetEOLMode=2031(int eolMode,)
183
184 # Set the current styling position to pos and the styling mask to mask.
185 # The styling mask can be used to protect some bits in each styling byte from
186 # modification.
187 fun void StartStyling=2032(position pos, int mask)
188
189 # Change style from current styling position for length characters to a style
190 # and move the current styling position to after this newly styled segment.
191 fun void SetStyling=2033(int length, int style)
192
193 # Is drawing done first into a buffer or direct to the screen.
194 get bool GetBufferedDraw=2034(,)
195
196 # If drawing is buffered then each line of text is drawn into a bitmap buffer
197 # before drawing it to the screen to avoid flicker.
198 set void SetBufferedDraw=2035(bool buffered,)
199
200 # Change the visible size of a tab to be a multiple of the width of a space
201 # character.
202 set void SetTabWidth=2036(int tabWidth,)
203
204 # Retrieve the visible size of a tab.
205 get int GetTabWidth=2121(,)
206
207 # The SC_CP_UTF8 value can be used to enter Unicode mode.
208 # This is the same value as CP_UTF8 in Windows
209 val SC_CP_UTF8=65001
210
211 # Set the code page used to interpret the bytes of the document as characters.
212 # The SC_CP_UTF8 value can be used to enter Unicode mode.
213 set void SetCodePage=2037(int codePage,)
214
215 # In palette mode, Scintilla uses the environments palette calls to display
216 # more colours. This may lead to ugly displays.
217 set void SetUsePalette=2039(bool usePalette,)
218
219 val MARKER_MAX=31
220 val SC_MARK_CIRCLE=0
221 val SC_MARK_ROUNDRECT=1
222 val SC_MARK_ARROW=2
223 val SC_MARK_SMALLRECT=3
224 val SC_MARK_SHORTARROW=4
225 val SC_MARK_EMPTY=5
226 val SC_MARK_ARROWDOWN=6
227 val SC_MARK_MINUS=7
228 val SC_MARK_PLUS=8
229
230 # Shapes used for outlining column
231 val SC_MARK_VLINE=9
232 val SC_MARK_LCORNER=10
233 val SC_MARK_TCORNER=11
234 val SC_MARK_BOXPLUS=12
235 val SC_MARK_BOXPLUSCONNECTED=13
236 val SC_MARK_BOXMINUS=14
237 val SC_MARK_BOXMINUSCONNECTED=15
238 val SC_MARK_LCORNERCURVE=16
239 val SC_MARK_TCORNERCURVE=17
240 val SC_MARK_CIRCLEPLUS=18
241 val SC_MARK_CIRCLEPLUSCONNECTED=19
242 val SC_MARK_CIRCLEMINUS=20
243 val SC_MARK_CIRCLEMINUSCONNECTED=21
244
245 # Invisible mark that only sets the line background color
246 val SC_MARK_BACKGROUND=22
247
248 val SC_MARK_CHARACTER=10000
249
250 # Markers used for outlining column
251 val SC_MARKNUM_FOLDEREND=25
252 val SC_MARKNUM_FOLDEROPENMID=26
253 val SC_MARKNUM_FOLDERMIDTAIL=27
254 val SC_MARKNUM_FOLDERTAIL=28
255 val SC_MARKNUM_FOLDERSUB=29
256 val SC_MARKNUM_FOLDER=30
257 val SC_MARKNUM_FOLDEROPEN=31
258
259 val SC_MASK_FOLDERS=0xFE000000
260
261 # Set the symbol used for a particular marker number.
262 fun void MarkerDefine=2040(int markerNumber, int markerSymbol)
263
264 # Set the foreground colour used for a particular marker number.
265 fun void MarkerSetFore=2041(int markerNumber, colour fore)
266
267 # Set the background colour used for a particular marker number.
268 fun void MarkerSetBack=2042(int markerNumber, colour back)
269
270 # Add a marker to a line, returning an ID which can be used to find or delete the marker.
271 fun int MarkerAdd=2043(int line, int markerNumber)
272
273 # Delete a marker from a line
274 fun void MarkerDelete=2044(int line, int markerNumber)
275
276 # Delete all markers with a particular number from all lines
277 fun void MarkerDeleteAll=2045(int markerNumber,)
278
279 # Get a bit mask of all the markers set on a line.
280 fun int MarkerGet=2046(int line,)
281
282 # Find the next line after lineStart that includes a marker in mask.
283 fun int MarkerNext=2047(int lineStart, int markerMask)
284
285 # Find the previous line before lineStart that includes a marker in mask.
286 fun int MarkerPrevious=2048(int lineStart, int markerMask)
287
288 val SC_MARGIN_SYMBOL=0
289 val SC_MARGIN_NUMBER=1
290
291 # Set a margin to be either numeric or symbolic.
292 set void SetMarginTypeN=2240(int margin, int marginType)
293
294 # Retrieve the type of a margin.
295 get int GetMarginTypeN=2241(int margin,)
296
297 # Set the width of a margin to a width expressed in pixels.
298 set void SetMarginWidthN=2242(int margin, int pixelWidth)
299
300 # Retrieve the width of a margin in pixels.
301 get int GetMarginWidthN=2243(int margin,)
302
303 # Set a mask that determines which markers are displayed in a margin.
304 set void SetMarginMaskN=2244(int margin, int mask)
305
306 # Retrieve the marker mask of a margin.
307 get int GetMarginMaskN=2245(int margin,)
308
309 # Make a margin sensitive or insensitive to mouse clicks.
310 set void SetMarginSensitiveN=2246(int margin, bool sensitive)
311
312 # Retrieve the mouse click sensitivity of a margin.
313 get bool GetMarginSensitiveN=2247(int margin,)
314
315 # Styles in range 32..37 are predefined for parts of the UI and are not used as normal styles.
316 # Styles 38 and 39 are for future use.
317 val STYLE_DEFAULT=32
318 val STYLE_LINENUMBER=33
319 val STYLE_BRACELIGHT=34
320 val STYLE_BRACEBAD=35
321 val STYLE_CONTROLCHAR=36
322 val STYLE_INDENTGUIDE=37
323 val STYLE_LASTPREDEFINED=39
324 val STYLE_MAX=127
325
326 # Character set identifiers are used in StyleSetCharacterSet.
327 # The values are the same as the Windows *_CHARSET values.
328 val SC_CHARSET_ANSI=0
329 val SC_CHARSET_DEFAULT=1
330 val SC_CHARSET_BALTIC=186
331 val SC_CHARSET_CHINESEBIG5=136
332 val SC_CHARSET_EASTEUROPE=238
333 val SC_CHARSET_GB2312=134
334 val SC_CHARSET_GREEK=161
335 val SC_CHARSET_HANGUL=129
336 val SC_CHARSET_MAC=77
337 val SC_CHARSET_OEM=255
338 val SC_CHARSET_RUSSIAN=204
339 val SC_CHARSET_SHIFTJIS=128
340 val SC_CHARSET_SYMBOL=2
341 val SC_CHARSET_TURKISH=162
342 val SC_CHARSET_JOHAB=130
343 val SC_CHARSET_HEBREW=177
344 val SC_CHARSET_ARABIC=178
345 val SC_CHARSET_VIETNAMESE=163
346 val SC_CHARSET_THAI=222
347
348 # Clear all the styles and make equivalent to the global default style.
349 set void StyleClearAll=2050(,)
350
351 # Set the foreground colour of a style.
352 set void StyleSetFore=2051(int style, colour fore)
353
354 # Set the background colour of a style.
355 set void StyleSetBack=2052(int style, colour back)
356
357 # Set a style to be bold or not.
358 set void StyleSetBold=2053(int style, bool bold)
359
360 # Set a style to be italic or not.
361 set void StyleSetItalic=2054(int style, bool italic)
362
363 # Set the size of characters of a style.
364 set void StyleSetSize=2055(int style, int sizePoints)
365
366 # Set the font of a style.
367 set void StyleSetFont=2056(int style, string fontName)
368
369 # Set a style to have its end of line filled or not.
370 set void StyleSetEOLFilled=2057(int style, bool filled)
371
372 # Reset the default style to its state at startup
373 fun void StyleResetDefault=2058(,)
374
375 # Set a style to be underlined or not.
376 set void StyleSetUnderline=2059(int style, bool underline)
377
378 val SC_CASE_MIXED=0
379 val SC_CASE_UPPER=1
380 val SC_CASE_LOWER=2
381 # Set a style to be mixed case, or to force upper or lower case.
382 set void StyleSetCase=2060(int style, int caseForce)
383
384 # Set the character set of the font in a style.
385 set void StyleSetCharacterSet=2066(int style, int characterSet)
386
387 # Set the foreground colour of the selection and whether to use this setting.
388 fun void SetSelFore=2067(bool useSetting, colour fore)
389
390 # Set the background colour of the selection and whether to use this setting.
391 fun void SetSelBack=2068(bool useSetting, colour back)
392
393 # Set the foreground colour of the caret.
394 set void SetCaretFore=2069(colour fore,)
395
396 # When key+modifier combination km is pressed perform msg.
397 fun void AssignCmdKey=2070(keymod km, int msg)
398
399 # When key+modifier combination km do nothing.
400 fun void ClearCmdKey=2071(keymod km,)
401
402 # Drop all key mappings.
403 fun void ClearAllCmdKeys=2072(,)
404
405 # Set the styles for a segment of the document.
406 fun void SetStylingEx=2073(int length, string styles)
407
408 # Set a style to be visible or not.
409 set void StyleSetVisible=2074(int style, bool visible)
410
411 # Get the time in milliseconds that the caret is on and off.
412 get int GetCaretPeriod=2075(,)
413
414 # Get the time in milliseconds that the caret is on and off. 0 = steady on.
415 set void SetCaretPeriod=2076(int periodMilliseconds,)
416
417 # Set the set of characters making up words for when moving or selecting
418 # by word.
419 set void SetWordChars=2077(, string characters)
420
421 # Start a sequence of actions that is undone and redone as a unit.
422 # May be nested.
423 fun void BeginUndoAction=2078(,)
424
425 # End a sequence of actions that is undone and redone as a unit.
426 fun void EndUndoAction=2079(,)
427
428 val INDIC_MAX=7
429 val INDIC_PLAIN=0
430 val INDIC_SQUIGGLE=1
431 val INDIC_TT=2
432 val INDIC_DIAGONAL=3
433 val INDIC_STRIKE=4
434 val INDIC0_MASK=0x20
435 val INDIC1_MASK=0x40
436 val INDIC2_MASK=0x80
437 val INDICS_MASK=0xE0
438
439 # Set an indicator to plain, squiggle or TT.
440 set void IndicSetStyle=2080(int indic, int style)
441
442 # Retrieve the style of an indicator.
443 get int IndicGetStyle=2081(int indic,)
444
445 # Set the foreground colour of an indicator.
446 set void IndicSetFore=2082(int indic, colour fore)
447
448 # Retrieve the foreground colour of an indicator.
449 get colour IndicGetFore=2083(int indic,)
450
451 # Divide each styling byte into lexical class bits (default:5) and indicator
452 # bits (default:3). If a lexer requires more than 32 lexical states, then this
453 # is used to expand the possible states.
454 set void SetStyleBits=2090(int bits,)
455
456 # Retrieve number of bits in style bytes used to hold the lexical state.
457 get int GetStyleBits=2091(,)
458
459 # Used to hold extra styling information for each line.
460 set void SetLineState=2092(int line, int state)
461
462 # Retrieve the extra styling information for a line.
463 get int GetLineState=2093(int line,)
464
465 # Retrieve the last line number that has line state.
466 get int GetMaxLineState=2094(,)
467
468 # Is the background of the line containing the caret in a different colour?
469 get bool GetCaretLineVisible=2095(,)
470
471 # Dsplay the background of the line containing the caret in a different colour.
472 set void SetCaretLineVisible=2096(bool show,)
473
474 # Get the colour of the background of the line containing the caret.
475 get colour GetCaretLineBack=2097(,)
476
477 # Set the colour of the background of the line containing the caret.
478 set void SetCaretLineBack=2098(colour back,)
479
480 # Set a style to be changeable or not (read only).
481 # Experimental feature, currently buggy.
482 set void StyleSetChangeable=2099(int style, bool changeable)
483
484 # Display a auto-completion list.
485 # The lenEntered parameter indicates how many characters before
486 # the caret should be used to provide context.
487 fun void AutoCShow=2100(int lenEntered, string itemList)
488
489 # Remove the auto-completion list from the screen.
490 fun void AutoCCancel=2101(,)
491
492 # Is there an auto-completion list visible?
493 fun bool AutoCActive=2102(,)
494
495 # Retrieve the position of the caret when the auto-completion list was
496 # displayed.
497 fun position AutoCPosStart=2103(,)
498
499 # User has selected an item so remove the list and insert the selection.
500 fun void AutoCComplete=2104(,)
501
502 # Define a set of character that when typed cancel the auto-completion list.
503 fun void AutoCStops=2105(, string characterSet)
504
505 # Change the separator character in the string setting up an auto-completion
506 # list. Default is space but can be changed if items contain space.
507 set void AutoCSetSeparator=2106(int separatorCharacter,)
508
509 # Retrieve the auto-completion list separator character.
510 get int AutoCGetSeparator=2107(,)
511
512 # Select the item in the auto-completion list that starts with a string.
513 fun void AutoCSelect=2108(, string text)
514
515 # Should the auto-completion list be cancelled if the user backspaces to a
516 # position before where the box was created.
517 set void AutoCSetCancelAtStart=2110(bool cancel,)
518
519 # Retrieve whether auto-completion cancelled by backspacing before start.
520 get bool AutoCGetCancelAtStart=2111(,)
521
522 # Define a set of characters that when typed will cause the autocompletion to
523 # choose the selected item.
524 set void AutoCSetFillUps=2112(, string characterSet)
525
526 # Should a single item auto-completion list automatically choose the item.
527 set void AutoCSetChooseSingle=2113(bool chooseSingle,)
528
529 # Retrieve whether a single item auto-completion list automatically choose the item.
530 get bool AutoCGetChooseSingle=2114(,)
531
532 # Set whether case is significant when performing auto-completion searches.
533 set void AutoCSetIgnoreCase=2115(bool ignoreCase,)
534
535 # Retrieve state of ignore case flag.
536 get bool AutoCGetIgnoreCase=2116(,)
537
538 # Display a list of strings and send notification when user chooses one.
539 fun void UserListShow=2117(int listType, string itemList)
540
541 # Set whether or not autocompletion is hidden automatically when nothing matches
542 set void AutoCSetAutoHide=2118(bool autoHide,)
543
544 # Retrieve whether or not autocompletion is hidden automatically when nothing matches
545 get bool AutoCGetAutoHide=2119(,)
546
547 # Set whether or not autocompletion deletes any word characters after the inserted text upon completion
548 set void AutoCSetDropRestOfWord=2270(bool dropRestOfWord,)
549
550 # Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion
551 get bool AutoCGetDropRestOfWord=2271(,)
552
553 # Set the number of spaces used for one level of indentation.
554 set void SetIndent=2122(int indentSize,)
555
556 # Retrieve indentation size.
557 get int GetIndent=2123(,)
558
559 # Indentation will only use space characters if useTabs is false, otherwise
560 # it will use a combination of tabs and spaces.
561 set void SetUseTabs=2124(bool useTabs,)
562
563 # Retrieve whether tabs will be used in indentation.
564 get bool GetUseTabs=2125(,)
565
566 # Change the indentation of a line to a number of columns.
567 set void SetLineIndentation=2126(int line, int indentSize)
568
569 # Retrieve the number of columns that a line is indented.
570 get int GetLineIndentation=2127(int line,)
571
572 # Retrieve the position before the first non indentation character on a line.
573 get position GetLineIndentPosition=2128(int line,)
574
575 # Retrieve the column number of a position, taking tab width into account.
576 get int GetColumn=2129(position pos,)
577
578 # Show or hide the horizontal scroll bar.
579 set void SetHScrollBar=2130(bool show,)
580
581 # Is the horizontal scroll bar visible?
582 get bool GetHScrollBar=2131(,)
583
584 # Show or hide indentation guides.
585 set void SetIndentationGuides=2132(bool show,)
586
587 # Are the indentation guides visible?
588 get bool GetIndentationGuides=2133(,)
589
590 # Set the highlighted indentation guide column.
591 # 0 = no highlighted guide.
592 set void SetHighlightGuide=2134(int column,)
593
594 # Get the highlighted indentation guide column.
595 get int GetHighlightGuide=2135(,)
596
597 # Get the position after the last visible characters on a line.
598 get int GetLineEndPosition=2136(int line,)
599
600 # Get the code page used to interpret the bytes of the document as characters.
601 get int GetCodePage=2137(,)
602
603 # Get the foreground colour of the caret.
604 get colour GetCaretFore=2138(,)
605
606 # In palette mode?
607 get bool GetUsePalette=2139(,)
608
609 # In read-only mode?
610 get bool GetReadOnly=2140(,)
611
612 # Sets the position of the caret.
613 set void SetCurrentPos=2141(position pos,)
614
615 # Sets the position that starts the selection - this becomes the anchor.
616 set void SetSelectionStart=2142(position pos,)
617
618 # Returns the position at the start of the selection.
619 get position GetSelectionStart=2143(,)
620
621 # Sets the position that ends the selection - this becomes the currentPosition.
622 set void SetSelectionEnd=2144(position pos,)
623
624 # Returns the position at the end of the selection.
625 get position GetSelectionEnd=2145(,)
626
627 # Sets the print magnification added to the point size of each style for printing.
628 set void SetPrintMagnification=2146(int magnification,)
629
630 # Returns the print magnification.
631 get int GetPrintMagnification=2147(,)
632
633 # PrintColourMode - use same colours as screen.
634 val SC_PRINT_NORMAL=0
635 # PrintColourMode - invert the light value of each style for printing.
636 val SC_PRINT_INVERTLIGHT=1
637 # PrintColourMode - force black text on white background for printing.
638 val SC_PRINT_BLACKONWHITE=2
639 # PrintColourMode - text stays coloured, but all background is forced to be white for printing.
640 val SC_PRINT_COLOURONWHITE=3
641 # PrintColourMode - only the default-background is forced to be white for printing.
642 val SC_PRINT_COLOURONWHITEDEFAULTBG=4
643
644 # Modify colours when printing for clearer printed text.
645 set void SetPrintColourMode=2148(int mode,)
646
647 # Returns the print colour mode.
648 get int GetPrintColourMode=2149(,)
649
650 val SCFIND_WHOLEWORD=2
651 val SCFIND_MATCHCASE=4
652 val SCFIND_WORDSTART=0x00100000
653 val SCFIND_REGEXP=0x00200000
654
655 # Find some text in the document.
656 fun position FindText=2150(int flags, findtext ft)
657
658 # On Windows will draw the document into a display context such as a printer.
659 fun void FormatRange=2151(bool draw, formatrange fr)
660
661 # Retrieve the line at the top of the display.
662 get int GetFirstVisibleLine=2152(,)
663
664 # Retrieve the contents of a line.
665 # Returns the length of the line.
666 fun int GetLine=2153(int line, stringresult text)
667
668 # Returns the number of lines in the document. There is always at least one.
669 get int GetLineCount=2154(,)
670
671 # Sets the size in pixels of the left margin.
672 set void SetMarginLeft=2155(, int pixelWidth)
673
674 # Returns the size in pixels of the left margin.
675 get int GetMarginLeft=2156(,)
676
677 # Sets the size in pixels of the right margin.
678 set void SetMarginRight=2157(, int pixelWidth)
679
680 # Returns the size in pixels of the right margin.
681 get int GetMarginRight=2158(,)
682
683 # Is the document different from when it was last saved?
684 get bool GetModify=2159(,)
685
686 # Select a range of text.
687 fun void SetSel=2160(position start, position end)
688
689 # Retrieve the selected text.
690 # Return the length of the text.
691 fun int GetSelText=2161(,stringresult text)
692
693 # Retrieve a range of text.
694 # Return the length of the text.
695 fun int GetTextRange=2162(, textrange tr)
696
697 # Draw the selection in normal style or with selection highlighted.
698 fun void HideSelection=2163(bool normal,)
699
700 # Retrieve the x value of the point in the window where a position is displayed.
701 fun int PointXFromPosition=2164(, position pos)
702
703 # Retrieve the y value of the point in the window where a position is displayed.
704 fun int PointYFromPosition=2165(, position pos)
705
706 # Retrieve the line containing a position.
707 fun int LineFromPosition=2166(position pos,)
708
709 # Retrieve the position at the start of a line.
710 fun int PositionFromLine=2167(int line,)
711
712 # Scroll horizontally and vertically.
713 fun void LineScroll=2168(int columns, int lines)
714
715 # Ensure the caret is visible.
716 fun void ScrollCaret=2169(,)
717
718 # Replace the selected text with the argument text.
719 fun void ReplaceSel=2170(, string text)
720
721 # Set to read only or read write.
722 set void SetReadOnly=2171(bool readOnly,)
723
724 # Null operation.
725 fun void Null=2172(,)
726
727 # Will a paste succeed?
728 fun bool CanPaste=2173(,)
729
730 # Are there any undoable actions in the undo history.
731 fun bool CanUndo=2174(,)
732
733 # Delete the undo history.
734 fun void EmptyUndoBuffer=2175(,)
735
736 # Undo one action in the undo history.
737 fun void Undo=2176(,)
738
739 # Cut the selection to the clipboard.
740 fun void Cut=2177(,)
741
742 # Copy the selection to the clipboard.
743 fun void Copy=2178(,)
744
745 # Paste the contents of the clipboard into the document replacing the selection.
746 fun void Paste=2179(,)
747
748 # Clear the selection.
749 fun void Clear=2180(,)
750
751 # Replace the contents of the document with the argument text.
752 fun void SetText=2181(, string text)
753
754 # Retrieve all the text in the document.
755 # Returns number of characters retrieved.
756 fun int GetText=2182(int length, stringresult text)
757
758 # Retrieve the number of characters in the document.
759 get int GetTextLength=2183(,)
760
761 # Retrieve a pointer to a function that processes messages for this Scintilla.
762 get int GetDirectFunction=2184(,)
763
764 # Retrieve a pointer value to use as the first argument when calling
765 # the function returned by GetDirectFunction.
766 get int GetDirectPointer=2185(,)
767
768 # Set to overtype (true) or insert mode
769 set void SetOvertype=2186(bool overtype,)
770
771 # Returns true if overtype mode is active otherwise false is returned.
772 get bool GetOvertype=2187(,)
773
774 # Set the width of the insert mode caret
775 set void SetCaretWidth=2188(int pixelWidth,)
776
777 # Returns the width of the insert mode caret
778 get int GetCaretWidth=2189(,)
779
780 # Sets the position that starts the target which is used for updating the
781 # document without affecting the scroll position.
782 set void SetTargetStart=2190(position pos,)
783
784 # Get the position that starts the target.
785 get position GetTargetStart=2191(,)
786
787 # Sets the position that ends the target which is used for updating the
788 # document without affecting the scroll position.
789 set void SetTargetEnd=2192(position pos,)
790
791 # Get the position that ends the target.
792 get position GetTargetEnd=2193(,)
793
794 # Replace the target text with the argument text.
795 # Text is counted so it can contain nulls.
796 # Returns the length of the replacement text.
797 fun int ReplaceTarget=2194(int length, string text)
798
799 # Replace the target text with the argument text after \d processing.
800 # Text is counted so it can contain nulls.
801 # Looks for \d where d is between 1 and 9 and replaces these with the strings
802 # matched in the last search operation which were surrounded by \( and \).
803 # Returns the length of the replacement text including any change
804 # caused by processing the \d patterns.
805 fun int ReplaceTargetRE=2195(int length, string text)
806
807 # Search for a counted string in the target and set the target to the found
808 # range. Text is counted so it can contain nulls.
809 # Returns length of range or -1 for failure in which case target is not moved.
810 fun int SearchInTarget=2197(int length, string text)
811
812 # Set the search flags used by SearchInTarget
813 set void SetSearchFlags=2198(int flags,)
814
815 # Get the search flags used by SearchInTarget
816 get int GetSearchFlags=2199(,)
817
818 # Show a call tip containing a definition near position pos.
819 fun void CallTipShow=2200(position pos, string definition)
820
821 # Remove the call tip from the screen.
822 fun void CallTipCancel=2201(,)
823
824 # Is there an active call tip?
825 fun bool CallTipActive=2202(,)
826
827 # Retrieve the position where the caret was before displaying the call tip.
828 fun position CallTipPosStart=2203(,)
829
830 # Highlight a segment of the definition.
831 fun void CallTipSetHlt=2204(int start, int end)
832
833 # Set the background colour for the call tip.
834 set void CallTipSetBack=2205(colour back,)
835
836 # Find the display line of a document line taking hidden lines into account.
837 fun int VisibleFromDocLine=2220(int line,)
838
839 # Find the document line of a display line taking hidden lines into account.
840 fun int DocLineFromVisible=2221(int lineDisplay,)
841
842 val SC_FOLDLEVELBASE=0x400
843 val SC_FOLDLEVELWHITEFLAG=0x1000
844 val SC_FOLDLEVELHEADERFLAG=0x2000
845 val SC_FOLDLEVELNUMBERMASK=0x0FFF
846
847 # Set the fold level of a line.
848 # This encodes an integer level along with flags indicating whether the
849 # line is a header and whether it is effectively white space.
850 set void SetFoldLevel=2222(int line, int level)
851
852 # Retrieve the fold level of a line.
853 get int GetFoldLevel=2223(int line,)
854
855 # Find the last child line of a header line.
856 get int GetLastChild=2224(int line, int level)
857
858 # Find the parent line of a child line.
859 get int GetFoldParent=2225(int line,)
860
861 # Make a range of lines visible.
862 fun void ShowLines=2226(int lineStart, int lineEnd)
863
864 # Make a range of lines invisible.
865 fun void HideLines=2227(int lineStart, int lineEnd)
866
867 # Is a line visible?
868 get bool GetLineVisible=2228(int line,)
869
870 # Show the children of a header line.
871 set void SetFoldExpanded=2229(int line, bool expanded)
872
873 # Is a header line expanded?
874 get bool GetFoldExpanded=2230(int line,)
875
876 # Switch a header line between expanded and contracted.
877 fun void ToggleFold=2231(int line,)
878
879 # Ensure a particular line is visible by expanding any header line hiding it.
880 fun void EnsureVisible=2232(int line,)
881
882 # Set some debugging options for folding
883 fun void SetFoldFlags=2233(int flags,)
884
885 # Ensure a particular line is visible by expanding any header line hiding it.
886 # Use the currently set visibility policy to determine which range to display.
887 fun void EnsureVisibleEnforcePolicy=2234(int line,)
888
889 # Sets whether a tab pressed when caret is within indentation indents
890 set void SetTabIndents=2260(bool tabIndents,)
891
892 # Does a tab pressed when caret is within indentation indent?
893 get bool GetTabIndents=2261(,)
894
895 # Sets whether a backspace pressed when caret is within indentation unindents
896 set void SetBackSpaceUnIndents=2262(bool bsUnIndents,)
897
898 # Does a backspace pressed when caret is within indentation unindent?
899 get bool GetBackSpaceUnIndents=2263(,)
900
901 val SC_TIME_FOREVER=10000000
902
903 # Sets the time the mouse must sit still to generate a mouse dwell event
904 set void SetMouseDwellTime=2264(int periodMilliseconds,)
905
906 # Retrieve the time the mouse must sit still to generate a mouse dwell event
907 get int GetMouseDwellTime=2265(,)
908
909 # Get position of start of word
910 fun int WordStartPosition=2266(position pos, bool onlyWordCharacters)
911
912 # Get position of end of word
913 fun int WordEndPosition=2267(position pos, bool onlyWordCharacters)
914
915 val SC_WRAP_NONE=0
916 val SC_WRAP_WORD=1
917
918 # Sets whether text is word wrapped
919 set void SetWrapMode=2268(int mode,)
920
921 # Retrieve whether text is word wrapped
922 get int GetWrapMode=2269(,)
923
924 val SC_CACHE_NONE=0
925 val SC_CACHE_CARET=1
926 val SC_CACHE_PAGE=2
927 val SC_CACHE_DOCUMENT=3
928
929 # Sets the degree of caching of layout information
930 set void SetLayoutCache=2272(int mode,)
931
932 # Retrieve the degree of caching of layout information
933 get int GetLayoutCache=2273(,)
934
935 ## Start of key messages
936 # Move caret down one line.
937 fun void LineDown=2300(,)
938
939 # Move caret down one line extending selection to new caret position.
940 fun void LineDownExtend=2301(,)
941
942 # Move caret up one line.
943 fun void LineUp=2302(,)
944
945 # Move caret up one line extending selection to new caret position.
946 fun void LineUpExtend=2303(,)
947
948 # Move caret left one character.
949 fun void CharLeft=2304(,)
950
951 # Move caret left one character extending selection to new caret position.
952 fun void CharLeftExtend=2305(,)
953
954 # Move caret right one character.
955 fun void CharRight=2306(,)
956
957 # Move caret right one character extending selection to new caret position.
958 fun void CharRightExtend=2307(,)
959
960 # Move caret left one word.
961 fun void WordLeft=2308(,)
962
963 # Move caret left one word extending selection to new caret position.
964 fun void WordLeftExtend=2309(,)
965
966 # Move caret right one word.
967 fun void WordRight=2310(,)
968
969 # Move caret right one word extending selection to new caret position.
970 fun void WordRightExtend=2311(,)
971
972 # Move caret to first position on line.
973 fun void Home=2312(,)
974
975 # Move caret to first position on line extending selection to new caret position.
976 fun void HomeExtend=2313(,)
977
978 # Move caret to last position on line.
979 fun void LineEnd=2314(,)
980
981 # Move caret to last position on line extending selection to new caret position.
982 fun void LineEndExtend=2315(,)
983
984 # Move caret to first position in document.
985 fun void DocumentStart=2316(,)
986
987 # Move caret to first position in document extending selection to new caret position.
988 fun void DocumentStartExtend=2317(,)
989
990 # Move caret to last position in document.
991 fun void DocumentEnd=2318(,)
992
993 # Move caret to last position in document extending selection to new caret position.
994 fun void DocumentEndExtend=2319(,)
995
996 # Move caret one page up.
997 fun void PageUp=2320(,)
998
999 # Move caret one page up extending selection to new caret position.
1000 fun void PageUpExtend=2321(,)
1001
1002 # Move caret one page down.
1003 fun void PageDown=2322(,)
1004
1005 # Move caret one page down extending selection to new caret position.
1006 fun void PageDownExtend=2323(,)
1007
1008 # Switch from insert to overtype mode or the reverse.
1009 fun void EditToggleOvertype=2324(,)
1010
1011 # Cancel any modes such as call tip or auto-completion list display.
1012 fun void Cancel=2325(,)
1013
1014 # Delete the selection or if no selection, the character before the caret.
1015 fun void DeleteBack=2326(,)
1016
1017 # If selection is empty or all on one line replace the selection with a tab
1018 # character.
1019 # If more than one line selected, indent the lines.
1020 fun void Tab=2327(,)
1021
1022 # Dedent the selected lines.
1023 fun void BackTab=2328(,)
1024
1025 # Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
1026 fun void NewLine=2329(,)
1027
1028 # Insert a Form Feed character.
1029 fun void FormFeed=2330(,)
1030
1031 # Move caret to before first visible character on line.
1032 # If already there move to first character on line.
1033 fun void VCHome=2331(,)
1034
1035 # Like VCHome but extending selection to new caret position.
1036 fun void VCHomeExtend=2332(,)
1037
1038 # Magnify the displayed text by increasing the sizes by 1 point.
1039 fun void ZoomIn=2333(,)
1040
1041 # Make the displayed text smaller by decreasing the sizes by 1 point.
1042 fun void ZoomOut=2334(,)
1043
1044 # Delete the word to the left of the caret.
1045 fun void DelWordLeft=2335(,)
1046
1047 # Delete the word to the right of the caret.
1048 fun void DelWordRight=2336(,)
1049
1050 # Cut the line containing the caret.
1051 fun void LineCut=2337(,)
1052
1053 # Delete the line containing the caret.
1054 fun void LineDelete=2338(,)
1055
1056 # Switch the current line with the previous.
1057 fun void LineTranspose=2339(,)
1058
1059 # Transform the selection to lower case.
1060 fun void LowerCase=2340(,)
1061
1062 # Transform the selection to upper case.
1063 fun void UpperCase=2341(,)
1064
1065 # Scroll the document down, keeping the caret visible.
1066 fun void LineScrollDown=2342(,)
1067
1068 # Scroll the document up, keeping the caret visible.
1069 fun void LineScrollUp=2343(,)
1070
1071 # Delete the selection or if no selection, the character before the caret.
1072 # Will not delete the chraacter before at the start of a line.
1073 fun void DeleteBackNotLine=2344(,)
1074
1075 # Move the caret inside current view if it's not there already
1076 fun void MoveCaretInsideView=2401(,)
1077
1078 # How many characters are on a line, not including end of line characters.
1079 fun int LineLength=2350(int line,)
1080
1081 # Highlight the characters at two positions.
1082 fun void BraceHighlight=2351(position pos1,position pos2)
1083
1084 # Highlight the character at a position indicating there is no matching brace.
1085 fun void BraceBadLight=2352(position pos,)
1086
1087 # Find the position of a matching brace or INVALID_POSITION if no match.
1088 fun position BraceMatch=2353(position pos,)
1089
1090 # Are the end of line characters visible.
1091 get bool GetViewEOL=2355(,)
1092
1093 # Make the end of line characters visible or invisible
1094 set void SetViewEOL=2356(bool visible,)
1095
1096 # Retrieve a pointer to the document object.
1097 get int GetDocPointer=2357(,)
1098
1099 # Change the document object used.
1100 set void SetDocPointer=2358(,int pointer)
1101
1102 # Set which document modification events are sent to the container.
1103 set void SetModEventMask=2359(int mask,)
1104
1105 val EDGE_NONE=0
1106 val EDGE_LINE=1
1107 val EDGE_BACKGROUND=2
1108
1109 # Retrieve the column number which text should be kept within.
1110 get int GetEdgeColumn=2360(,)
1111
1112 # Set the column number of the edge.
1113 # If text goes past the edge then it is highlighted.
1114 set void SetEdgeColumn=2361(int column,)
1115
1116 # Retrieve the edge highlight mode.
1117 get int GetEdgeMode=2362(,)
1118
1119 # The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
1120 # goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
1121 set void SetEdgeMode=2363(int mode,)
1122
1123 # Retrieve the colour used in edge indication.
1124 get colour GetEdgeColour=2364(,)
1125
1126 # Change the colour used in edge indication.
1127 set void SetEdgeColour=2365(colour edgeColour,)
1128
1129 # Sets the current caret position to be the search anchor.
1130 fun void SearchAnchor=2366(,)
1131
1132 # Find some text starting at the search anchor.
1133 # Does not ensure the selection is visible.
1134 fun int SearchNext=2367(int flags, string text)
1135
1136 # Find some text starting at the search anchor and moving backwards.
1137 # Does not ensure the selection is visible.
1138 fun int SearchPrev=2368(int flags, string text)
1139
1140 # Show caret within N lines of edge when it's scrolled to view
1141 # If CARET_SLOP not set then centre caret on screen when it's
1142 # scrolled to view
1143 val CARET_SLOP=0x01
1144 # Value not used
1145 val CARET_CENTER=0x02
1146 # If CARET_SLOP also set then reposition whenever outside slop border
1147 # If CARET_SLOP not set then recentre even when visible
1148 val CARET_STRICT=0x04
1149 # If CARET_XEVEN set then both left and right margins are given equal weight
1150 # rather than favouring left following behaviour.
1151 val CARET_XEVEN=0x08
1152 # If CARET_XJUMPS set then when caret reaches the margin the display jumps
1153 # enough to leave the caret solidly within the display.
1154 val CARET_XJUMPS=0x10
1155 # Set the way the line the caret is on is kept visible.
1156 fun void SetCaretPolicy=2369(int caretPolicy, int caretSlop)
1157
1158 # Retrieves the number of lines completely visible.
1159 get int LinesOnScreen=2370(,)
1160
1161 # Set whether a pop up menu is displayed automatically when the user presses
1162 # the wrong mouse button.
1163 fun void UsePopUp=2371(bool allowPopUp,)
1164
1165 # Is the selection a rectangular. The alternative is the more common stream selection.
1166 get bool SelectionIsRectangle=2372(,)
1167
1168 # Set the zoom level. This number of points is added to the size of all fonts.
1169 # It may be positive to magnify or negative to reduce.
1170 set void SetZoom=2373(int zoom,)
1171 # Retrieve the zoom level.
1172 get int GetZoom=2374(,)
1173
1174 # Create a new document object.
1175 # Starts with reference count of 1 and not selected into editor.
1176 fun int CreateDocument=2375(,)
1177 # Extend life of document.
1178 fun void AddRefDocument=2376(, int doc)
1179 # Release a reference to the document, deleting document if it fades to black.
1180 fun void ReleaseDocument=2377(, int doc)
1181
1182 # Get which document modification events are sent to the container.
1183 get int GetModEventMask=2378(,)
1184
1185 # Change internal focus flag
1186 set void SetFocus=2380(bool focus,)
1187 # Get internal focus flag
1188 get bool GetFocus=2381(,)
1189
1190 # Change error status - 0 = OK
1191 set void SetStatus=2382(int statusCode,)
1192 # Get error status
1193 get int GetStatus=2383(,)
1194
1195 # Set whether the mouse is captured when its button is pressed
1196 set void SetMouseDownCaptures=2384(bool captures,)
1197 # Get whether mouse gets captured
1198 get bool GetMouseDownCaptures=2385(,)
1199
1200 val SC_CURSORNORMAL=-1
1201 val SC_CURSORWAIT=3
1202 # Sets the cursor to one of the SC_CURSOR* values
1203 set void SetCursor=2386(int cursorType,)
1204 # Get cursor type
1205 get int GetCursor=2387(,)
1206
1207 # Change the way control characters are displayed:
1208 # If symbol is < 32, keep the drawn way, else, use the given character
1209 set void SetControlCharSymbol=2388(int symbol,)
1210 # Get the way control characters are displayed
1211 get int GetControlCharSymbol=2389(,)
1212
1213 # Move to the previous change in capitalistion
1214 fun void WordPartLeft=2390(,)
1215 # Move to the previous change in capitalistion extending selection to new caret position.
1216 fun void WordPartLeftExtend=2391(,)
1217 # Move to the change next in capitalistion
1218 fun void WordPartRight=2392(,)
1219 # Move to the next change in capitalistion extending selection to new caret position.
1220 fun void WordPartRightExtend=2393(,)
1221
1222 # Constants for use with SetVisiblePolicy, similar to SetCaretPolicy
1223 val VISIBLE_SLOP=0x01
1224 val VISIBLE_STRICT=0x04
1225 # Set the way the display area is determined when a particular line is to be moved to.
1226 fun void SetVisiblePolicy=2394(int visiblePolicy, int visibleSlop)
1227
1228 # Delete back from the current position to the start of the line
1229 fun void DelLineLeft=2395(,)
1230
1231 # Delete forwards from the current position to the end of the line
1232 fun void DelLineRight=2396(,)
1233
1234 # Get and Set the xOffset (ie, horizonal scroll position)
1235 set void SetXOffset=2397(int newOffset,)
1236 get int GetXOffset=2398(,)
1237
1238 # Set the focus to this Scintilla widget.
1239 # GTK+ Specific
1240 fun void GrabFocus=2400(,)
1241
1242 # Start notifying the container of all key presses and commands.
1243 fun void StartRecord=3001(,)
1244
1245 # Stop notifying the container of all key presses and commands.
1246 fun void StopRecord=3002(,)
1247
1248 # Set the lexing language of the document.
1249 set void SetLexer=4001(int lexer,)
1250
1251 # Retrieve the lexing language of the document.
1252 get int GetLexer=4002(,)
1253
1254 # Colourise a segment of the document using the current lexing language.
1255 fun void Colourise=4003(position start, position end)
1256
1257 # Set up a value that may be used by a lexer for some optional feature.
1258 set void SetProperty=4004(string key, string value)
1259
1260 # Set up the key words used by the lexer.
1261 set void SetKeyWords=4005(int keywordSet, string keyWords)
1262
1263 # Set the lexing language of the document based on string name.
1264 set void SetLexerLanguage=4006(, string language)
1265
1266 # Notifications
1267 # Type of modification and the action which caused the modification
1268 # These are defined as a bit mask to make it easy to specify which notifications are wanted.
1269 # One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
1270 val SC_MOD_INSERTTEXT=0x1
1271 val SC_MOD_DELETETEXT=0x2
1272 val SC_MOD_CHANGESTYLE=0x4
1273 val SC_MOD_CHANGEFOLD=0x8
1274 val SC_PERFORMED_USER=0x10
1275 val SC_PERFORMED_UNDO=0x20
1276 val SC_PERFORMED_REDO=0x40
1277 val SC_LASTSTEPINUNDOREDO=0x100
1278 val SC_MOD_CHANGEMARKER=0x200
1279 val SC_MOD_BEFOREINSERT=0x400
1280 val SC_MOD_BEFOREDELETE=0x800
1281 val SC_MODEVENTMASKALL=0xF77
1282
1283 # For compatibility, these go through the COMMAND notification rather than NOTIFY
1284 # and have exactly the same values as the EN_* constants.
1285 val SCEN_CHANGE=768
1286 val SCEN_SETFOCUS=512
1287 val SCEN_KILLFOCUS=256
1288
1289 # Symbolic key codes and modifier flags
1290 # ASCII and other printable characters below 256
1291 # Extended keys above 300
1292
1293 val SCK_DOWN=300
1294 val SCK_UP=301
1295 val SCK_LEFT=302
1296 val SCK_RIGHT=303
1297 val SCK_HOME=304
1298 val SCK_END=305
1299 val SCK_PRIOR=306
1300 val SCK_NEXT=307
1301 val SCK_DELETE=308
1302 val SCK_INSERT=309
1303 val SCK_ESCAPE=7
1304 val SCK_BACK=8
1305 val SCK_TAB=9
1306 val SCK_RETURN=13
1307 val SCK_ADD=310
1308 val SCK_SUBTRACT=311
1309 val SCK_DIVIDE=312
1310
1311 val SCMOD_SHIFT=1
1312 val SCMOD_CTRL=2
1313 val SCMOD_ALT=4
1314
1315 ################################################
1316 # For SciLexer.h
1317 val SCLEX_CONTAINER=0
1318 val SCLEX_NULL=1
1319 val SCLEX_PYTHON=2
1320 val SCLEX_CPP=3
1321 val SCLEX_HTML=4
1322 val SCLEX_XML=5
1323 val SCLEX_PERL=6
1324 val SCLEX_SQL=7
1325 val SCLEX_VB=8
1326 val SCLEX_PROPERTIES=9
1327 val SCLEX_ERRORLIST=10
1328 val SCLEX_MAKEFILE=11
1329 val SCLEX_BATCH=12
1330 val SCLEX_XCODE=13
1331 val SCLEX_LATEX=14
1332 val SCLEX_LUA=15
1333 val SCLEX_DIFF=16
1334 val SCLEX_CONF=17
1335 val SCLEX_PASCAL=18
1336 val SCLEX_AVE=19
1337 val SCLEX_ADA=20
1338 val SCLEX_LISP=21
1339 val SCLEX_RUBY=22
1340 val SCLEX_EIFFEL=23
1341 val SCLEX_EIFFELKW=24
1342 val SCLEX_TCL=25
1343 val SCLEX_NNCRONTAB=26
1344 val SCLEX_BULLANT=27
1345 val SCLEX_VBSCRIPT=28
1346 val SCLEX_ASP=29
1347 val SCLEX_PHP=30
1348 val SCLEX_BAAN=31
1349 val SCLEX_MATLAB=32
1350
1351 # When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
1352 # value assigned in sequence from SCLEX_AUTOMATIC+1.
1353 val SCLEX_AUTOMATIC=1000
1354 # Lexical states for SCLEX_PYTHON
1355 val SCE_P_DEFAULT=0
1356 val SCE_P_COMMENTLINE=1
1357 val SCE_P_NUMBER=2
1358 val SCE_P_STRING=3
1359 val SCE_P_CHARACTER=4
1360 val SCE_P_WORD=5
1361 val SCE_P_TRIPLE=6
1362 val SCE_P_TRIPLEDOUBLE=7
1363 val SCE_P_CLASSNAME=8
1364 val SCE_P_DEFNAME=9
1365 val SCE_P_OPERATOR=10
1366 val SCE_P_IDENTIFIER=11
1367 val SCE_P_COMMENTBLOCK=12
1368 val SCE_P_STRINGEOL=13
1369 # Lexical states for SCLEX_CPP
1370 val SCE_C_DEFAULT=0
1371 val SCE_C_COMMENT=1
1372 val SCE_C_COMMENTLINE=2
1373 val SCE_C_COMMENTDOC=3
1374 val SCE_C_NUMBER=4
1375 val SCE_C_WORD=5
1376 val SCE_C_STRING=6
1377 val SCE_C_CHARACTER=7
1378 val SCE_C_UUID=8
1379 val SCE_C_PREPROCESSOR=9
1380 val SCE_C_OPERATOR=10
1381 val SCE_C_IDENTIFIER=11
1382 val SCE_C_STRINGEOL=12
1383 val SCE_C_VERBATIM=13
1384 val SCE_C_REGEX=14
1385 val SCE_C_COMMENTLINEDOC=15
1386 val SCE_C_WORD2=16
1387 val SCE_C_COMMENTDOCKEYWORD=17
1388 val SCE_C_COMMENTDOCKEYWORDERROR=18
1389 # Lexical states for SCLEX_VB, SCLEX_VBSCRIPT
1390 val SCE_B_DEFAULT=0
1391 val SCE_B_COMMENT=1
1392 val SCE_B_NUMBER=2
1393 val SCE_B_KEYWORD=3
1394 val SCE_B_STRING=4
1395 val SCE_B_PREPROCESSOR=5
1396 val SCE_B_OPERATOR=6
1397 val SCE_B_IDENTIFIER=7
1398 val SCE_B_DATE=8
1399 # Lexical states for SCLEX_HTML, SCLEX_XML
1400 val SCE_H_DEFAULT=0
1401 val SCE_H_TAG=1
1402 val SCE_H_TAGUNKNOWN=2
1403 val SCE_H_ATTRIBUTE=3
1404 val SCE_H_ATTRIBUTEUNKNOWN=4
1405 val SCE_H_NUMBER=5
1406 val SCE_H_DOUBLESTRING=6
1407 val SCE_H_SINGLESTRING=7
1408 val SCE_H_OTHER=8
1409 val SCE_H_COMMENT=9
1410 val SCE_H_ENTITY=10
1411 # XML and ASP
1412 val SCE_H_TAGEND=11
1413 val SCE_H_XMLSTART=12
1414 val SCE_H_XMLEND=13
1415 val SCE_H_SCRIPT=14
1416 val SCE_H_ASP=15
1417 val SCE_H_ASPAT=16
1418 val SCE_H_CDATA=17
1419 val SCE_H_QUESTION=18
1420 # More HTML
1421 val SCE_H_VALUE=19
1422 # X-Code
1423 val SCE_H_XCCOMMENT=20
1424 # SGML
1425 val SCE_H_SGML_DEFAULT=21
1426 val SCE_H_SGML_COMMAND=22
1427 val SCE_H_SGML_1ST_PARAM=23
1428 val SCE_H_SGML_DOUBLESTRING=24
1429 val SCE_H_SGML_SIMPLESTRING=25
1430 val SCE_H_SGML_ERROR=26
1431 val SCE_H_SGML_SPECIAL=27
1432 val SCE_H_SGML_ENTITY=28
1433 val SCE_H_SGML_COMMENT=29
1434 val SCE_H_SGML_1ST_PARAM_COMMENT=30
1435 val SCE_H_SGML_BLOCK_DEFAULT=31
1436 # Embedded Javascript
1437 val SCE_HJ_START=40
1438 val SCE_HJ_DEFAULT=41
1439 val SCE_HJ_COMMENT=42
1440 val SCE_HJ_COMMENTLINE=43
1441 val SCE_HJ_COMMENTDOC=44
1442 val SCE_HJ_NUMBER=45
1443 val SCE_HJ_WORD=46
1444 val SCE_HJ_KEYWORD=47
1445 val SCE_HJ_DOUBLESTRING=48
1446 val SCE_HJ_SINGLESTRING=49
1447 val SCE_HJ_SYMBOLS=50
1448 val SCE_HJ_STRINGEOL=51
1449 val SCE_HJ_REGEX=52
1450 # ASP Javascript
1451 val SCE_HJA_START=55
1452 val SCE_HJA_DEFAULT=56
1453 val SCE_HJA_COMMENT=57
1454 val SCE_HJA_COMMENTLINE=58
1455 val SCE_HJA_COMMENTDOC=59
1456 val SCE_HJA_NUMBER=60
1457 val SCE_HJA_WORD=61
1458 val SCE_HJA_KEYWORD=62
1459 val SCE_HJA_DOUBLESTRING=63
1460 val SCE_HJA_SINGLESTRING=64
1461 val SCE_HJA_SYMBOLS=65
1462 val SCE_HJA_STRINGEOL=66
1463 val SCE_HJA_REGEX=67
1464 # Embedded VBScript
1465 val SCE_HB_START=70
1466 val SCE_HB_DEFAULT=71
1467 val SCE_HB_COMMENTLINE=72
1468 val SCE_HB_NUMBER=73
1469 val SCE_HB_WORD=74
1470 val SCE_HB_STRING=75
1471 val SCE_HB_IDENTIFIER=76
1472 val SCE_HB_STRINGEOL=77
1473 # ASP VBScript
1474 val SCE_HBA_START=80
1475 val SCE_HBA_DEFAULT=81
1476 val SCE_HBA_COMMENTLINE=82
1477 val SCE_HBA_NUMBER=83
1478 val SCE_HBA_WORD=84
1479 val SCE_HBA_STRING=85
1480 val SCE_HBA_IDENTIFIER=86
1481 val SCE_HBA_STRINGEOL=87
1482 # Embedded Python
1483 val SCE_HP_START=90
1484 val SCE_HP_DEFAULT=91
1485 val SCE_HP_COMMENTLINE=92
1486 val SCE_HP_NUMBER=93
1487 val SCE_HP_STRING=94
1488 val SCE_HP_CHARACTER=95
1489 val SCE_HP_WORD=96
1490 val SCE_HP_TRIPLE=97
1491 val SCE_HP_TRIPLEDOUBLE=98
1492 val SCE_HP_CLASSNAME=99
1493 val SCE_HP_DEFNAME=100
1494 val SCE_HP_OPERATOR=101
1495 val SCE_HP_IDENTIFIER=102
1496 # ASP Python
1497 val SCE_HPA_START=105
1498 val SCE_HPA_DEFAULT=106
1499 val SCE_HPA_COMMENTLINE=107
1500 val SCE_HPA_NUMBER=108
1501 val SCE_HPA_STRING=109
1502 val SCE_HPA_CHARACTER=110
1503 val SCE_HPA_WORD=111
1504 val SCE_HPA_TRIPLE=112
1505 val SCE_HPA_TRIPLEDOUBLE=113
1506 val SCE_HPA_CLASSNAME=114
1507 val SCE_HPA_DEFNAME=115
1508 val SCE_HPA_OPERATOR=116
1509 val SCE_HPA_IDENTIFIER=117
1510 # PHP
1511 val SCE_HPHP_DEFAULT=118
1512 val SCE_HPHP_HSTRING=119
1513 val SCE_HPHP_SIMPLESTRING=120
1514 val SCE_HPHP_WORD=121
1515 val SCE_HPHP_NUMBER=122
1516 val SCE_HPHP_VARIABLE=123
1517 val SCE_HPHP_COMMENT=124
1518 val SCE_HPHP_COMMENTLINE=125
1519 val SCE_HPHP_HSTRING_VARIABLE=126
1520 val SCE_HPHP_OPERATOR=127
1521 # Lexical states for SCLEX_PERL
1522 val SCE_PL_DEFAULT=0
1523 val SCE_PL_ERROR=1
1524 val SCE_PL_COMMENTLINE=2
1525 val SCE_PL_POD=3
1526 val SCE_PL_NUMBER=4
1527 val SCE_PL_WORD=5
1528 val SCE_PL_STRING=6
1529 val SCE_PL_CHARACTER=7
1530 val SCE_PL_PUNCTUATION=8
1531 val SCE_PL_PREPROCESSOR=9
1532 val SCE_PL_OPERATOR=10
1533 val SCE_PL_IDENTIFIER=11
1534 val SCE_PL_SCALAR=12
1535 val SCE_PL_ARRAY=13
1536 val SCE_PL_HASH=14
1537 val SCE_PL_SYMBOLTABLE=15
1538 val SCE_PL_REGEX=17
1539 val SCE_PL_REGSUBST=18
1540 val SCE_PL_LONGQUOTE=19
1541 val SCE_PL_BACKTICKS=20
1542 val SCE_PL_DATASECTION=21
1543 val SCE_PL_HERE_DELIM=22
1544 val SCE_PL_HERE_Q=23
1545 val SCE_PL_HERE_QQ=24
1546 val SCE_PL_HERE_QX=25
1547 val SCE_PL_STRING_Q=26
1548 val SCE_PL_STRING_QQ=27
1549 val SCE_PL_STRING_QX=28
1550 val SCE_PL_STRING_QR=29
1551 val SCE_PL_STRING_QW=30
1552 # Lexical states for SCLEX_LATEX
1553 val SCE_L_DEFAULT=0
1554 val SCE_L_COMMAND=1
1555 val SCE_L_TAG=2
1556 val SCE_L_MATH=3
1557 val SCE_L_COMMENT=4
1558 # Lexical states for SCLEX_LUA
1559 val SCE_LUA_DEFAULT=0
1560 val SCE_LUA_COMMENT=1
1561 val SCE_LUA_COMMENTLINE=2
1562 val SCE_LUA_COMMENTDOC=3
1563 val SCE_LUA_NUMBER=4
1564 val SCE_LUA_WORD=5
1565 val SCE_LUA_STRING=6
1566 val SCE_LUA_CHARACTER=7
1567 val SCE_LUA_LITERALSTRING=8
1568 val SCE_LUA_PREPROCESSOR=9
1569 val SCE_LUA_OPERATOR=10
1570 val SCE_LUA_IDENTIFIER=11
1571 val SCE_LUA_STRINGEOL=12
1572 val SCE_LUA_WORD2=13
1573 val SCE_LUA_WORD3=14
1574 val SCE_LUA_WORD4=15
1575 val SCE_LUA_WORD5=16
1576 val SCE_LUA_WORD6=17
1577 # Lexical states for SCLEX_ERRORLIST
1578 val SCE_ERR_DEFAULT=0
1579 val SCE_ERR_PYTHON=1
1580 val SCE_ERR_GCC=2
1581 val SCE_ERR_MS=3
1582 val SCE_ERR_CMD=4
1583 val SCE_ERR_BORLAND=5
1584 val SCE_ERR_PERL=6
1585 val SCE_ERR_NET=7
1586 val SCE_ERR_LUA=8
1587 val SCE_ERR_DIFF_CHANGED=10
1588 val SCE_ERR_DIFF_ADDITION=11
1589 val SCE_ERR_DIFF_DELETION=12
1590 val SCE_ERR_DIFF_MESSAGE=13
1591 # Lexical states for SCLEX_BATCH
1592 val SCE_BAT_DEFAULT=0
1593 val SCE_BAT_COMMENT=1
1594 val SCE_BAT_WORD=2
1595 val SCE_BAT_LABEL=3
1596 val SCE_BAT_HIDE=4
1597 val SCE_BAT_COMMAND=5
1598 val SCE_BAT_IDENTIFIER=6
1599 val SCE_BAT_OPERATOR=7
1600 # Lexical states for SCLEX_MAKEFILE
1601 val SCE_MAKE_DEFAULT=0
1602 val SCE_MAKE_COMMENT=1
1603 val SCE_MAKE_PREPROCESSOR=2
1604 val SCE_MAKE_IDENTIFIER=3
1605 val SCE_MAKE_OPERATOR=4
1606 val SCE_MAKE_TARGET=5
1607 val SCE_MAKE_IDEOL=9
1608 # Lexical states for the SCLEX_CONF (Apache Configuration Files Lexer)
1609 val SCE_CONF_DEFAULT=0
1610 val SCE_CONF_COMMENT=1
1611 val SCE_CONF_NUMBER=2
1612 val SCE_CONF_IDENTIFIER=3
1613 val SCE_CONF_EXTENSION=4
1614 val SCE_CONF_PARAMETER=5
1615 val SCE_CONF_STRING=6
1616 val SCE_CONF_OPERATOR=7
1617 val SCE_CONF_IP=8
1618 val SCE_CONF_DIRECTIVE=9
1619 # Avenue
1620 val SCE_AVE_DEFAULT=0
1621 val SCE_AVE_COMMENT=1
1622 val SCE_AVE_NUMBER=2
1623 val SCE_AVE_WORD=3
1624 val SCE_AVE_KEYWORD=4
1625 val SCE_AVE_STATEMENT=5
1626 val SCE_AVE_STRING=6
1627 val SCE_AVE_ENUM=7
1628 val SCE_AVE_STRINGEOL=8
1629 val SCE_AVE_IDENTIFIER=9
1630 val SCE_AVE_OPERATOR=10
1631 # Lexical states for SCLEX_ADA
1632 val SCE_ADA_DEFAULT=0
1633 val SCE_ADA_COMMENT=1
1634 val SCE_ADA_NUMBER=2
1635 val SCE_ADA_WORD=3
1636 val SCE_ADA_STRING=4
1637 val SCE_ADA_CHARACTER=5
1638 val SCE_ADA_OPERATOR=6
1639 val SCE_ADA_IDENTIFIER=7
1640 val SCE_ADA_STRINGEOL=8
1641 # Lexical states for SCLEX_BAAN
1642 val SCE_BAAN_DEFAULT=0
1643 val SCE_BAAN_COMMENT=1
1644 val SCE_BAAN_COMMENTDOC=2
1645 val SCE_BAAN_NUMBER=3
1646 val SCE_BAAN_WORD=4
1647 val SCE_BAAN_STRING=5
1648 val SCE_BAAN_PREPROCESSOR=6
1649 val SCE_BAAN_OPERATOR=7
1650 val SCE_BAAN_IDENTIFIER=8
1651 val SCE_BAAN_STRINGEOL=9
1652 val SCE_BAAN_WORD2=10
1653 # Lexical states for SCLEX_LISP
1654 val SCE_LISP_DEFAULT=0
1655 val SCE_LISP_COMMENT=1
1656 val SCE_LISP_NUMBER=2
1657 val SCE_LISP_KEYWORD=3
1658 val SCE_LISP_STRING=6
1659 val SCE_LISP_STRINGEOL=8
1660 val SCE_LISP_IDENTIFIER=9
1661 val SCE_LISP_OPERATOR=10
1662 # Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
1663 val SCE_EIFFEL_DEFAULT=0
1664 val SCE_EIFFEL_COMMENTLINE=1
1665 val SCE_EIFFEL_NUMBER=2
1666 val SCE_EIFFEL_WORD=3
1667 val SCE_EIFFEL_STRING=4
1668 val SCE_EIFFEL_CHARACTER=5
1669 val SCE_EIFFEL_OPERATOR=6
1670 val SCE_EIFFEL_IDENTIFIER=7
1671 val SCE_EIFFEL_STRINGEOL=8
1672 # Lexical states for the SCLEX_NNCRONTAB (nnCron crontab Lexer)
1673 val SCE_NNCRONTAB_DEFAULT=0
1674 val SCE_NNCRONTAB_COMMENT=1
1675 val SCE_NNCRONTAB_TASK=2
1676 val SCE_NNCRONTAB_SECTION=3
1677 val SCE_NNCRONTAB_KEYWORD=4
1678 val SCE_NNCRONTAB_MODIFIER=5
1679 val SCE_NNCRONTAB_ASTERISK=6
1680 val SCE_NNCRONTAB_NUMBER=7
1681 val SCE_NNCRONTAB_STRING=8
1682 val SCE_NNCRONTAB_ENVIRONMENT=9
1683 val SCE_NNCRONTAB_IDENTIFIER=10
1684 # Lexical states for SCLEX_MATLAB
1685 val SCE_MATLAB_DEFAULT=0
1686 val SCE_MATLAB_COMMENT=1
1687 val SCE_MATLAB_COMMAND=2
1688 val SCE_MATLAB_NUMBER=3
1689 val SCE_MATLAB_KEYWORD=4
1690 val SCE_MATLAB_STRING=5
1691 val SCE_MATLAB_OPERATOR=6
1692 val SCE_MATLAB_IDENTIFIER=7
1693
1694 # Events
1695
1696 evt void StyleNeeded=2000(int position)
1697 evt void CharAdded=2001(int ch)
1698 evt void SavePointReached=2002(void)
1699 evt void SavePointLeft=2003(void)
1700 evt void ModifyAttemptRO=2004(void)
1701 # GTK+ Specific to work around focus and accelerator problems:
1702 evt void Key=2005(int ch, int modifiers)
1703 evt void DoubleClick=2006(void)
1704 evt void UpdateUI=2007(void)
1705 evt void Modified=2008(int position, int modificationType, string text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev)
1706 evt void MacroRecord=2009(int message, int wParam, int lParam)
1707 evt void MarginClick=2010(int modifiers, int position, int margin)
1708 evt void NeedShown=2011(int position, int length)
1709 evt void Painted=2013(void)
1710 evt void UserListSelection=2014(int listType, string text)
1711 evt void URIDropped=2015(string text)
1712 evt void DwellStart=2016(int position)
1713 evt void DwellEnd=2017(int position)
1714
1715 cat Deprecated
1716
1717 # The old name for SCN_UPDATEUI
1718 val SCN_CHECKBRACE=2007
1719 evt void PosChanged=2012(int position)