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