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