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