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