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