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