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