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