Table of Contents

Enum SciMsg

Namespace
Npp.DotNet.Plugin
Assembly
Npp.DotNet.Plugin.dll

Definitions for Scintilla 5.5.6

public enum SciMsg : uint

Fields

ANNOTATION_BOXED = 2
ANNOTATION_HIDDEN = 0
ANNOTATION_INDENTED = 3
ANNOTATION_STANDARD = 1
CARETSTYLE_BLOCK = 2
CARETSTYLE_BLOCK_AFTER = 256
CARETSTYLE_CURSES = 32
CARETSTYLE_INS_MASK = 15
CARETSTYLE_INVISIBLE = 0
CARETSTYLE_LINE = 1
CARETSTYLE_OVERSTRIKE_BAR = 0
CARETSTYLE_OVERSTRIKE_BLOCK = 16
CARET_EVEN = 8
CARET_JUMPS = 16
CARET_SLOP = 1
CARET_STRICT = 4
EDGE_BACKGROUND = 2
EDGE_LINE = 1
EDGE_MULTILINE = 3
EDGE_NONE = 0
EOLANNOTATION_ANGLES = 290
EOLANNOTATION_ANGLE_CIRCLE = 258
EOLANNOTATION_ANGLE_FLAT = 274
EOLANNOTATION_BOXED = 2
EOLANNOTATION_CIRCLE_ANGLE = 288
EOLANNOTATION_CIRCLE_FLAT = 272
EOLANNOTATION_FLATS = 273
EOLANNOTATION_FLAT_ANGLE = 289
EOLANNOTATION_FLAT_CIRCLE = 257
EOLANNOTATION_HIDDEN = 0
EOLANNOTATION_STADIUM = 256
EOLANNOTATION_STANDARD = 1
INDICATOR_CONTAINER = 8
INDICATOR_HISTORY_MODIFIED_DELETION = 41
INDICATOR_HISTORY_MODIFIED_INSERTION = 40
INDICATOR_HISTORY_REVERTED_TO_MODIFIED_DELETION = 43
INDICATOR_HISTORY_REVERTED_TO_MODIFIED_INSERTION = 42
INDICATOR_HISTORY_REVERTED_TO_ORIGIN_DELETION = 37
INDICATOR_HISTORY_REVERTED_TO_ORIGIN_INSERTION = 36
INDICATOR_HISTORY_SAVED_DELETION = 39
INDICATOR_HISTORY_SAVED_INSERTION = 38
INDICATOR_IME = 32
INDICATOR_IME_MAX = 35
INDICATOR_MAX = 43
INDIC_BOX = 6
INDIC_COMPOSITIONTHICK = 14
INDIC_COMPOSITIONTHIN = 15
[Obsolete("Use the INDICATOR_* range numbers instead: https://www.scintilla.org/ScintillaDoc.html#Indicators")] INDIC_CONTAINER = 8
INDIC_DASH = 9
INDIC_DIAGONAL = 3
INDIC_DOTBOX = 12
INDIC_DOTS = 10
INDIC_FULLBOX = 16
INDIC_GRADIENT = 20
INDIC_GRADIENTCENTRE = 21
INDIC_HIDDEN = 5
[Obsolete("Use the INDICATOR_* range numbers instead: https://www.scintilla.org/ScintillaDoc.html#Indicators")] INDIC_IME = 32
[Obsolete("Use the INDICATOR_* range numbers instead: https://www.scintilla.org/ScintillaDoc.html#Indicators")] INDIC_IME_MAX = 35
[Obsolete("Use the INDICATOR_* range numbers instead: https://www.scintilla.org/ScintillaDoc.html#Indicators")] INDIC_MAX = 35
INDIC_PLAIN = 0
INDIC_POINT = 18
INDIC_POINTCHARACTER = 19
INDIC_POINT_TOP = 22
INDIC_ROUNDBOX = 7
INDIC_SQUIGGLE = 1
INDIC_SQUIGGLELOW = 11
INDIC_SQUIGGLEPIXMAP = 13
INDIC_STRAIGHTBOX = 8
INDIC_STRIKE = 4
INDIC_TEXTFORE = 17
INDIC_TT = 2
INVALID_POSITION = 4294967295
KEYWORDSET_MAX = 30
MARKER_MAX = 31
SCEN_CHANGE = 768
SCEN_KILLFOCUS = 256
SCEN_SETFOCUS = 512
SCFIND_CXX11REGEX = 8388608
SCFIND_MATCHCASE = 4
SCFIND_NONE = 0
SCFIND_POSIX = 4194304
SCFIND_REGEXP = 2097152
SCFIND_WHOLEWORD = 2
SCFIND_WORDSTART = 1048576
SCI_ADDREFDOCUMENT = 2376

SCI_ADDREFDOCUMENT(<unused>, pointer doc)
This increases the reference count of a document by 1. If you want to replace the current document in the Scintilla window and take ownership of the current document, for example if you are editing many documents in one window, do the following: 1. Use SCI_GETDOCPOINTER to get a pointer to the document, doc. 2. Use SCI_ADDREFDOCUMENT(0, doc) to increment the reference count. 3. Use SCI_SETDOCPOINTER(0, docNew) to set a different document or SCI_SETDOCPOINTER(0, 0) to set a new, empty document.

SCI_ADDSELECTION = 2573

SCI_ADDSELECTION(position caret, position anchor)
Add a new selection from anchor to caret as the main selection retaining all other selections as additional selections. Since there is always at least one selection, to set a list of selections, the first selection should be added with SCI_SETSELECTION and later selections added with SCI_ADDSELECTION

SCI_ADDSTYLEDTEXT = 2002

SCI_ADDSTYLEDTEXT(position length, cell *c)
This behaves just like SCI_ADDTEXT, but inserts styled text.

SCI_ADDTABSTOP = 2676

SCI_ADDTABSTOP(line line, int x)

SCI_ADDTEXT = 2001

SCI_ADDTEXT(position length, const char *text)
This inserts the first length characters from the string text at the current position. This will include any 0's in the string that you might have expected to stop the insert operation. The current position is set at the end of the inserted text, but it is not scrolled into view.

SCI_ADDUNDOACTION = 2560

SCI_ADDUNDOACTION(int token, int flags)
The container can add its own actions into the undo stack by calling SCI_ADDUNDOACTION and an SCN_MODIFIED notification will be sent to the container with the SC_MOD_CONTAINER flag when it is time to undo ( SC_PERFORMED_UNDO) or redo( SC_PERFORMED_REDO) the action. The token argument supplied is returned in the token field of the notification.

SCI_ALLOCATE = 2446

SCI_ALLOCATE(position bytes)
Allocate a document buffer large enough to store a given number of bytes. The document will not be made smaller than its current contents.

SCI_ALLOCATEEXTENDEDSTYLES = 2553

SCI_ALLOCATEEXTENDEDSTYLES(int numberStyles) -> int
Extended styles are used for features like textual margins and annotations and autocompletion lists as well as internally by Scintilla. They are outside the range 0..255 used for the styles bytes associated with document bytes. These functions manage the use of extended styles to ensures that components cooperate in defining styles. SCI_RELEASEALLEXTENDEDSTYLES releases any extended styles allocated by the container. SCI_ALLOCATEEXTENDEDSTYLES allocates a range of style numbers after the byte style values and returns the number of the first allocated style. Ranges for margin, annotation, and autocompletion list styles should be allocated before calling SCI_MARGINSETSTYLEOFFSET or SCI_ANNOTATIONSETSTYLEOFFSET or SCI_AUTOCSETSTYLE .

SCI_ALLOCATELINECHARACTERINDEX = 2711

SCI_ALLOCATELINECHARACTERINDEX(int lineCharacterIndex)

SCI_ALLOCATELINES = 2089

SCI_ALLOCATELINES(line lines)
Allocate line indices to match the lines argument. This is an optimization that can prevent multiple reallocations of the indices as text is inserted if the application can estimate the number of lines in the document. The number of lines will not be reduced by this call.

SCI_ALLOCATESUBSTYLES = 4020

SCI_ALLOCATESUBSTYLES(int styleBase, int numberStyles) -> int
Allocate some number of substyles for a particular base style returning the first substyle number allocated. A failure, such as requesting more substyles than available, is indicated by returning a negative number. Lexers that support substyles will commonly allow allocating 64 substyles. Substyles are allocated contiguously.

SCI_ANNOTATIONCLEARALL = 2547
SCI_ANNOTATIONGETLINES = 2546

SCI_ANNOTATIONGETLINES(line line) -> int

SCI_ANNOTATIONGETSTYLE = 2543

SCI_ANNOTATIONGETSTYLE(line line) -> int

SCI_ANNOTATIONGETSTYLEOFFSET = 2551

SCI_ANNOTATIONGETSTYLEOFFSET -> int
Annotation styles may be completely separated from standard text styles by setting a style offset. For example, SCI_ANNOTATIONSETSTYLEOFFSET(512) would allow the annotation styles to be numbered from 512 up to 767 so they do not overlap styles set by lexers (or margins if margins offset is 256). Each style number set with SCI_ANNOTATIONSETSTYLE or SCI_ANNOTATIONSETSTYLES has the offset added before looking up the style.

SCI_ANNOTATIONGETSTYLES = 2545

SCI_ANNOTATIONGETSTYLES(line line, char *styles) -> int

SCI_ANNOTATIONGETTEXT = 2541

SCI_ANNOTATIONGETTEXT(line line, char *text) -> int

SCI_ANNOTATIONGETVISIBLE = 2549

SCI_ANNOTATIONGETVISIBLE -> int
Annotations can be made visible in a view and there is a choice of display style when visible. The two messages set and get the annotation display mode. The visible argument can be one of:

SCI_ANNOTATIONSETSTYLE = 2542

SCI_ANNOTATIONSETSTYLE(line line, int style)

SCI_ANNOTATIONSETSTYLEOFFSET = 2550

SCI_ANNOTATIONSETSTYLEOFFSET(int style)

SCI_ANNOTATIONSETSTYLES = 2544

SCI_ANNOTATIONSETSTYLES(line line, const char *styles)

SCI_ANNOTATIONSETTEXT = 2540

SCI_ANNOTATIONSETTEXT(line line, const char *text)

SCI_ANNOTATIONSETVISIBLE = 2548

SCI_ANNOTATIONSETVISIBLE(int visible)

SCI_APPENDTEXT = 2282

SCI_APPENDTEXT(position length, const char *text)
This adds the first length characters from the string text to the end of the document. This will include any 0's in the string that you might have expected to stop the operation. The current selection is not changed and the new text is not scrolled into view.

SCI_ASSIGNCMDKEY = 2070

SCI_ASSIGNCMDKEY(int keyDefinition , int sciCommand)
This assigns the given key definition to a Scintilla command identified by sciCommand. sciCommand can be any SCI_* command that has no arguments.

SCI_AUTOCACTIVE = 2102

SCI_AUTOCACTIVE -> bool
This message returns non-zero if there is an active autocompletion list and zero if there is not.

SCI_AUTOCCANCEL = 2101
SCI_AUTOCCOMPLETE = 2104
SCI_AUTOCGETAUTOHIDE = 2119

SCI_AUTOCGETAUTOHIDE -> bool
By default, the list is cancelled if there are no viable matches (the user has typed characters that no longer match a list entry). If you want to keep displaying the original list, set autoHide to false. This also effects SCI_AUTOCSELECT .

SCI_AUTOCGETCANCELATSTART = 2111

SCI_AUTOCGETCANCELATSTART -> bool
The default behaviour is for the list to be cancelled if the caret moves to the location it was at when the list was displayed. By calling this message with a false argument, the list is not cancelled until the caret moves at least one character before the word being completed.

SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR = 2635

SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR -> int
When autocompletion is set to ignore case( SCI_AUTOCSETIGNORECASE ), by default it will nonetheless select the first list member that matches in a case sensitive way to entered characters. This corresponds to a behaviour property of SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE (0). If you want autocompletion to ignore case at all, choose SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE (1).

SCI_AUTOCGETCHOOSESINGLE = 2114

SCI_AUTOCGETCHOOSESINGLE -> bool
If you use SCI_AUTOCSETCHOOSESINGLE(1) and a list has only one item, it is automatically added and no list is displayed. The default is to display the list even if there is only a single item.

SCI_AUTOCGETCURRENT = 2445

SCI_AUTOCGETCURRENT -> int
This message selects an item in the autocompletion list. It searches the list of words for the first that matches select. By default, comparisons are case sensitive, but you can change this with SCI_AUTOCSETIGNORECASE. The match is character by character for the length of the select string. That is, if select is "Fred" it will match "Frederick" if this is the first item in the list that begins with "Fred". If an item is found, it is selected. If the item is not found, the autocompletion list closes if auto-hide is true (see SCI_AUTOCSETAUTOHIDE ). The current selection index can be retrieved with SCI_AUTOCGETCURRENT .

SCI_AUTOCGETCURRENTTEXT = 2610

SCI_AUTOCGETCURRENTTEXT(<unused>, char *text NUL-terminated) -> int
This message retrieves the current selected text in the autocompletion list. Normally the SCN_AUTOCSELECTION notification is used instead.

SCI_AUTOCGETDROPRESTOFWORD = 2271

SCI_AUTOCGETDROPRESTOFWORD -> bool
When an item is selected, any word characters following the caret are first erased if dropRestOfWord is set true . The default is false .

SCI_AUTOCGETIGNORECASE = 2116

SCI_AUTOCGETIGNORECASE -> bool
By default, matching of characters to list members is case sensitive. These messages let you set and get case sensitivity.

SCI_AUTOCGETMAXHEIGHT = 2211

SCI_AUTOCGETMAXHEIGHT -> int
Get or set the maximum number of rows that will be visible in an autocompletion list. If there are more rows in the list, then a vertical scrollbar is shown. The default is 5.

SCI_AUTOCGETMAXWIDTH = 2209

SCI_AUTOCGETMAXWIDTH -> int
Get or set the maximum width of an autocompletion list expressed as the number of characters in the longest item that will be totally visible. If zero (the default) then the list's width is calculated to fit the item with the most characters. Any items that cannot be fully displayed within the available width are indicated by the presence of ellipsis.

SCI_AUTOCGETMULTI = 2637

SCI_AUTOCGETMULTI -> int
When autocompleting with multiple selections present, the autocompleted text can go into just the main selection with SC_MULTIAUTOC_ONCE (0) or into each selection with SC_MULTIAUTOC_EACH (1). The default is SC_MULTIAUTOC_ONCE .

SCI_AUTOCGETOPTIONS = 2639

SCI_AUTOCGETOPTIONS -> int
Set options for autocompletion from the following list.

SCI_AUTOCGETORDER = 2661

SCI_AUTOCGETORDER -> int
The default setting SC_ORDER_PRESORTED (0) requires that the list be provided in alphabetical sorted order.

SCI_AUTOCGETSEPARATOR = 2107

SCI_AUTOCGETSEPARATOR -> int
These two messages set and get the separator character used to separate words in the SCI_AUTOCSHOW list. The default is the space character.

SCI_AUTOCGETSTYLE = 2120

SCI_AUTOCGETSTYLE -> int
Get or set the style used by autocompletion lists to determine the font facename, size and character set used to display characters. Defaults to STYLE_DEFAULT. Always call SCI_ALLOCATEEXTENDEDSTYLES(1) before SCI_AUTOCSETSTYLE and use the result as the argument to SCI_AUTOCSETSTYLE and SCI_STYLESETFONT and others.

SCI_AUTOCGETTYPESEPARATOR = 2285

SCI_AUTOCGETTYPESEPARATOR -> int
Autocompletion list items may display an image as well as text. Each image is first registered with an integer type. Then this integer is included in the text of the list separated by a '?' from the text. For example, "fclose?2 fopen" displays image 2 before the string "fclose" and no image before "fopen". The images are in either the XPM format( SCI_REGISTERIMAGE) or RGBA format( SCI_REGISTERRGBAIMAGE ). For SCI_REGISTERRGBAIMAGE the width and height must previously been set with the SCI_RGBAIMAGESETWIDTH and SCI_RGBAIMAGESETHEIGHT messages. The set of registered images can be cleared with SCI_CLEARREGISTEREDIMAGES and the '?' separator changed with SCI_AUTOCSETTYPESEPARATOR .

SCI_AUTOCPOSSTART = 2103

SCI_AUTOCPOSSTART -> position
This returns the value of the current position when SCI_AUTOCSHOW started display of the list.

SCI_AUTOCSELECT = 2108

SCI_AUTOCSELECT(<unused>, const char *select)

SCI_AUTOCSETAUTOHIDE = 2118

SCI_AUTOCSETAUTOHIDE(bool autoHide)

SCI_AUTOCSETCANCELATSTART = 2110

SCI_AUTOCSETCANCELATSTART(bool cancel)

SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR = 2634

SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR(int behaviour)

SCI_AUTOCSETCHOOSESINGLE = 2113

SCI_AUTOCSETCHOOSESINGLE(bool chooseSingle)

SCI_AUTOCSETDROPRESTOFWORD = 2270

SCI_AUTOCSETDROPRESTOFWORD(bool dropRestOfWord)

SCI_AUTOCSETFILLUPS = 2112

SCI_AUTOCSETFILLUPS(<unused>, const char *characterSet)
If a fillup character is typed with an autocompletion list active, the currently selected item in the list is added into the document, then the fillup character is added. Common fillup characters are '(', '[' and '.' but others are possible depending on the language. By default, no fillup characters are set.

SCI_AUTOCSETIGNORECASE = 2115

SCI_AUTOCSETIGNORECASE(bool ignoreCase)

SCI_AUTOCSETMAXHEIGHT = 2210

SCI_AUTOCSETMAXHEIGHT(int rowCount)

SCI_AUTOCSETMAXWIDTH = 2208

SCI_AUTOCSETMAXWIDTH(int characterCount)

SCI_AUTOCSETMULTI = 2636

SCI_AUTOCSETMULTI(int multi)

SCI_AUTOCSETOPTIONS = 2638

SCI_AUTOCSETOPTIONS(int options)

SCI_AUTOCSETORDER = 2660

SCI_AUTOCSETORDER(int order)

SCI_AUTOCSETSEPARATOR = 2106

SCI_AUTOCSETSEPARATOR(int separatorCharacter)

SCI_AUTOCSETSTYLE = 2109

SCI_AUTOCSETSTYLE(int style)

SCI_AUTOCSETTYPESEPARATOR = 2286

SCI_AUTOCSETTYPESEPARATOR(int separatorCharacter)

SCI_AUTOCSHOW = 2100

SCI_AUTOCSHOW(position lengthEntered, const char *itemList)
This message causes a list to be displayed. lengthEntered is the number of characters of the word already entered and itemList is the list of words separated by separator characters. The initial separator character is a space but this can be set or got with SCI_AUTOCSETSEPARATOR and SCI_AUTOCGETSEPARATOR .

SCI_AUTOCSTOPS = 2105

SCI_AUTOCSTOPS(<unused>, const char *characterSet)
The characterSet argument is a string containing a list of characters that will automatically cancel the autocompletion list. When you start the editor, this list is empty.

SCI_BACKTAB = 2328
SCI_BEGINUNDOACTION = 2078
SCI_BRACEBADLIGHT = 2352

SCI_BRACEBADLIGHT(position pos)
If there is no matching brace then the brace badlighting style, style STYLE_BRACEBAD (35), can be used to show the brace that is unmatched. Using a position of INVALID_POSITION (-1) removes the highlight.

SCI_BRACEBADLIGHTINDICATOR = 2499

SCI_BRACEBADLIGHTINDICATOR(bool useSetting, int indicator)
Use specified indicator to highlight non matching brace instead of changing its style.

SCI_BRACEHIGHLIGHT = 2351

SCI_BRACEHIGHLIGHT(position posA, position posB)
Up to two characters can be highlighted in a 'brace highlighting style', which is defined as style number STYLE_BRACELIGHT (34). If you have enabled indent guides, you may also wish to highlight the indent that corresponds with the brace. You can locate the column with SCI_GETCOLUMN and highlight the indent with SCI_SETHIGHLIGHTGUIDE .

SCI_BRACEHIGHLIGHTINDICATOR = 2498

SCI_BRACEHIGHLIGHTINDICATOR(bool useSetting, int indicator)
Use specified indicator to highlight matching braces instead of changing their style.

SCI_BRACEMATCH = 2353

SCI_BRACEMATCH(position pos, int maxReStyle) -> position
The SCI_BRACEMATCH message finds a corresponding matching brace given pos, the position of one brace. The brace characters handled are '(', ')', '[', ']', '{', '}', '<', and '>'. The search is forwards from an opening brace and backwards from a closing brace. If the character at position is not a brace character, or a matching brace cannot be found, the return value is -1. Otherwise, the return value is the position of the matching brace.

SCI_BRACEMATCHNEXT = 2369

SCI_BRACEMATCHNEXT(position pos, position startPos) -> position
Similar to SCI_BRACEMATCH, but matching starts at the explicit start position startPos instead of the implicitly next position pos± 1 .

SCI_CALLTIPACTIVE = 2202

SCI_CALLTIPACTIVE -> bool
This returns 1 if a call tip is active and 0 if it is not active.

SCI_CALLTIPCANCEL = 2201
SCI_CALLTIPPOSSTART = 2203

SCI_CALLTIPPOSSTART -> position

SCI_CALLTIPSETBACK = 2205

SCI_CALLTIPSETBACK( colour back)
The background colour of call tips can be set with this message; the default colour is white. It is not a good idea to set a dark colour as the background as the default colour for normal calltip text is mid grey and the default colour for highlighted text is dark blue. This also sets the background colour of STYLE_CALLTIP .

SCI_CALLTIPSETFORE = 2206

SCI_CALLTIPSETFORE( colour fore)
The colour of call tip text can be set with this message; the default colour is mid grey. This also sets the foreground colour of STYLE_CALLTIP .

SCI_CALLTIPSETFOREHLT = 2207

SCI_CALLTIPSETFOREHLT( colour fore)
The colour of highlighted call tip text can be set with this message; the default colour is dark blue.

SCI_CALLTIPSETHLT = 2204

SCI_CALLTIPSETHLT(position highlightStart, position highlightEnd)
This sets the region of the call tips text to display in a highlighted style. highlightStart is the zero-based index into the string of the first character to highlight and highlightEnd is the index of the first character after the highlight. highlightEnd must be greater than highlightStart; highlightEnd-highlightStart is the number of characters to highlight. Highlights can extend over line ends if this is required.

SCI_CALLTIPSETPOSITION = 2213

SCI_CALLTIPSETPOSITION(bool above)
By default the calltip is displayed below the text, setting above to true (1) will display it above the text.

SCI_CALLTIPSETPOSSTART = 2214

SCI_CALLTIPSETPOSSTART(position posStart)
This message returns or sets the value of the current position when SCI_CALLTIPSHOW started to display the tip.

SCI_CALLTIPSHOW = 2200

SCI_CALLTIPSHOW(position pos, const char *definition)
This message starts the process by displaying the call tip window. If a call tip is already active, this has no effect. pos is the position in the document at which to align the call tip. The call tip text is aligned to start 1 line below this character unless you have included up and/or down arrows in the call tip text in which case the tip is aligned to the right-hand edge of the rightmost arrow. The assumption is that you will start the text with something like "\001 1 of 3 \002". definition is the call tip text. This can contain multiple lines separated by '\n' (Line Feed, ASCII code 10) characters. Do not include '\r' (Carriage Return, ASCII code 13), as this will most likely print as an empty box. '\t' (Tab, ASCII code 9) is supported if you set a tabsize with SCI_CALLTIPUSESTYLE. The position of the caret is remembered here so that the call tip can be cancelled automatically if subsequent deletion moves the caret before this position.

SCI_CALLTIPUSESTYLE = 2212

SCI_CALLTIPUSESTYLE(int tabSize)
This message changes the style used for call tips from STYLE_DEFAULT to STYLE_CALLTIP and sets a tab size in screen pixels. If tabsize is less than 1, Tab characters are not treated specially. Once this call has been used, the call tip foreground and background colours are also taken from the style.

SCI_CANCEL = 2325
SCI_CANPASTE = 2173

SCI_CANPASTE -> bool

SCI_CANREDO = 2016

SCI_CANREDO -> bool
SCI_REDO undoes the effect of the last SCI_UNDO operation.

SCI_CANUNDO = 2174

SCI_CANUNDO -> bool
SCI_UNDO undoes one action, or if the undo buffer has reached a SCI_ENDUNDOACTION point, all the actions back to the corresponding SCI_BEGINUNDOACTION .

SCI_CHANGEINSERTION = 2672

SCI_CHANGEINSERTION(position length, const char *text)
This may only be called from a SC_MOD_INSERTCHECK notification handler and will change the text being inserted to that provided.

SCI_CHANGELASTUNDOACTIONTEXT = 2801
SCI_CHANGELEXERSTATE = 2617

SCI_CHANGELEXERSTATE(position start, position end) -> int
Indicate that the internal state of a lexer has changed over a range and therefore there may be a need to redraw.

SCI_CHANGESELECTIONMODE = 2659

SCI_CHANGESELECTIONMODE(int selectionMode)

SCI_CHARLEFT = 2304
SCI_CHARLEFTEXTEND = 2305
SCI_CHARLEFTRECTEXTEND = 2428
SCI_CHARPOSITIONFROMPOINT = 2561

SCI_CHARPOSITIONFROMPOINT(int x, int y) -> position

SCI_CHARPOSITIONFROMPOINTCLOSE = 2562

SCI_CHARPOSITIONFROMPOINTCLOSE(int x, int y) -> position
SCI_CHARPOSITIONFROMPOINT finds the closest character to a point and SCI_CHARPOSITIONFROMPOINTCLOSE is similar but returns -1 if the point is outside the window or not close to any characters. This is similar to the previous methods but finds characters rather than inter-character positions.

SCI_CHARRIGHT = 2306
SCI_CHARRIGHTEXTEND = 2307
SCI_CHARRIGHTRECTEXTEND = 2429
SCI_CHOOSECARETX = 2399
SCI_CLEAR = 2180
SCI_CLEARALL = 2004
SCI_CLEARALLCMDKEYS = 2072
SCI_CLEARALLREPRESENTATIONS = 2770
SCI_CLEARCMDKEY = 2071

SCI_CLEARCMDKEY(int keyDefinition )
This makes the given key definition do nothing by assigning the action SCI_NULL to it.

SCI_CLEARDOCUMENTSTYLE = 2005
SCI_CLEARREGISTEREDIMAGES = 2408
SCI_CLEARREPRESENTATION = 2667

SCI_CLEARREPRESENTATION(const char *encodedCharacter)
Any character, including those normally displayed as mnemonics may be represented by a Unicode string inverted in a rounded rectangle.

SCI_CLEARSELECTIONS = 2571
SCI_CLEARTABSTOPS = 2675

SCI_CLEARTABSTOPS(line line)

SCI_COLOURISE = 4003

SCI_COLOURISE(position start, position end)
This requests the current lexer or the container (if the lexer is set to NULL) to style the document between start and end. If end is -1, the document is styled from start to the end. If the "fold" property is set to "1" and your lexer or container supports folding, fold levels are also set. This message causes a redraw.

SCI_CONTRACTEDFOLDNEXT = 2618

SCI_CONTRACTEDFOLDNEXT(line lineStart) -> line
Search efficiently for lines that are contracted fold headers. This is useful when saving the user's folding when switching documents or saving folding with a file. The search starts at line number lineStart and continues forwards to the end of the file. lineStart is returned if it is a contracted fold header otherwise the next contracted fold header is returned. If there are no more contracted fold headers then -1 is returned.

SCI_CONVERTEOLS = 2029

SCI_CONVERTEOLS(int eolMode)
This message changes all the end of line characters in the document to match eolMode. Valid values are: SC_EOL_CRLF (0), SC_EOL_CR (1), or SC_EOL_LF (2).

SCI_COPY = 2178
SCI_COPYALLOWLINE = 2519
SCI_COPYRANGE = 2419

SCI_COPYRANGE(position start, position end)

SCI_COPYTEXT = 2420

SCI_COPYTEXT(position length, const char *text)
SCI_COPYRANGE copies a range of text from the document to the system clipboard and SCI_COPYTEXT copies a supplied piece of text to the system clipboard.

SCI_COUNTCHARACTERS = 2633

SCI_COUNTCHARACTERS(position start, position end) -> position
Returns the number of whole characters between two positions.

SCI_COUNTCODEUNITS = 2715

SCI_COUNTCODEUNITS(position start, position end) -> position
These are the UTF-16 versions of SCI_POSITIONRELATIVE and SCI_COUNTCHARACTERS working in terms of UTF-16 code units.

SCI_CREATEDOCUMENT = 2375

SCI_CREATEDOCUMENT(position bytes, int documentOptions) -> pointer
This message creates a new, empty document and returns a pointer to it. This document is not selected into the editor and starts with a reference count of 1. This means that you have ownership of it and must either reduce its reference count by 1 after using SCI_SETDOCPOINTER so that the Scintilla window owns it or you must make sure that you reduce the reference count by 1 with SCI_RELEASEDOCUMENT before you close the application to avoid memory leaks. The bytes argument determines the initial memory allocation for the document as it is more efficient to allocate once rather than rely on the buffer growing as data is added. If SCI_CREATEDOCUMENT fails then 0 is returned.

SCI_CREATELOADER = 2632

SCI_CREATELOADER(position bytes, int documentOptions) -> pointer
Create an object that supports the ILoader interface which can be used to load data and then be turned into a Scintilla document object for attachment to a view object. The bytes argument determines the initial memory allocation for the document as it is more efficient to allocate once rather than rely on the buffer growing as data is added. If SCI_CREATELOADER fails then 0 is returned.

SCI_CUT = 2177
SCI_CUTALLOWLINE = 2810
SCI_DELETEBACK = 2326
SCI_DELETEBACKNOTLINE = 2344
SCI_DELETERANGE = 2645

SCI_DELETERANGE(position start, position lengthDelete)
Deletes a range of text in the document.

SCI_DELLINELEFT = 2395
SCI_DELLINERIGHT = 2396
SCI_DELWORDLEFT = 2335
SCI_DELWORDRIGHT = 2336
SCI_DELWORDRIGHTEND = 2518
SCI_DESCRIBEKEYWORDSETS = 4017

SCI_DESCRIBEKEYWORDSETS(<unused>, char *descriptions NUL-terminated) -> int
A description of all of the keyword sets separated by "\n" is returned by SCI_DESCRIBEKEYWORDSETS .

SCI_DESCRIBEPROPERTY = 4016

SCI_DESCRIBEPROPERTY(const char *name, char *description NUL-terminated) -> int
Information may be retrieved about the properties that can be set for the current lexer. This information is only available for newer lexers. SCI_PROPERTYNAMES returns a string with all of the valid properties separated by "\n". If the lexer does not support this call then an empty string is returned. Properties may be boolean ( SC_TYPE_BOOLEAN ), integer( SC_TYPE_INTEGER ), or string( SC_TYPE_STRING) and this is found with SCI_PROPERTYTYPE. A description of a property in English is returned by SCI_DESCRIBEPROPERTY .

SCI_DESCRIPTIONOFSTYLE = 4032

SCI_DESCRIPTIONOFSTYLE(int style, char *description NUL-terminated) -> int
Retrieve an English-language description of a style which may be suitable for display in a user interface. This looks like "Doc comment: block comments beginning with /** or /*!".

SCI_DISTANCETOSECONDARYSTYLES = 4025

SCI_DISTANCETOSECONDARYSTYLES -> int
Returns the distance between a primary style and its corresponding secondary style.

SCI_DOCLINEFROMVISIBLE = 2221

SCI_DOCLINEFROMVISIBLE(line displayLine) -> line
When some lines are hidden and/or annotations are displayed, then a particular line in the document may be displayed at a different position to its document position. This message returns the document line number that corresponds to a display line (counting the display line of the first line in the document as 0). If displayLine is less than or equal to 0, the result is 0. If displayLine is greater than or equal to the number of displayed lines, the result is the number of lines in the document.

SCI_DOCUMENTEND = 2318
SCI_DOCUMENTENDEXTEND = 2319
SCI_DOCUMENTSTART = 2316
SCI_DOCUMENTSTARTEXTEND = 2317
SCI_DROPSELECTIONN = 2671

SCI_DROPSELECTIONN(int selection)
If there are multiple selections, remove the indicated selection. If this was the main selection then make the previous selection the main and if it was the first then the last selection becomes main. If there is only one selection, or there is no selection selection, then there is no effect.

SCI_EDITTOGGLEOVERTYPE = 2324
SCI_EMPTYUNDOBUFFER = 2175
SCI_ENCODEDFROMUTF8 = 2449

SCI_ENCODEDFROMUTF8(const char *utf8, char *encoded) -> position

SCI_ENDUNDOACTION = 2079
SCI_ENSUREVISIBLE = 2232

SCI_ENSUREVISIBLE(line line)

SCI_ENSUREVISIBLEENFORCEPOLICY = 2234

SCI_ENSUREVISIBLEENFORCEPOLICY(line line)
A line may be hidden because more than one of its parent lines is contracted. Both these message travels up the fold hierarchy, expanding any contracted folds until they reach the top level. The line will then be visible. If you use SCI_ENSUREVISIBLEENFORCEPOLICY, the vertical caret policy set by SCI_SETVISIBLEPOLICY is then applied.

SCI_EOLANNOTATIONCLEARALL = 2744
SCI_EOLANNOTATIONGETSTYLE = 2743

SCI_EOLANNOTATIONGETSTYLE(line line) -> int

SCI_EOLANNOTATIONGETSTYLEOFFSET = 2748

SCI_EOLANNOTATIONGETSTYLEOFFSET -> int
End of Line Annotation styles may be completely separated from standard text styles by setting a style offset. For example, SCI_EOLANNOTATIONSETSTYLEOFFSET(512) would allow the end of line annotation styles to be numbered from 512 up to 767 so they do not overlap styles set by lexers (or margins if margins offset is 256). Each style number set with SCI_EOLANNOTATIONSETSTYLE has the offset added before looking up the style.

SCI_EOLANNOTATIONGETTEXT = 2741

SCI_EOLANNOTATIONGETTEXT(line line, char *text) -> int

SCI_EOLANNOTATIONGETVISIBLE = 2746

SCI_EOLANNOTATIONGETVISIBLE -> int
End of Line Annotations can be made visible in a view and there is a choice of display style when visible. The two messages set and get the annotation display mode. The visible argument can be one of:

SCI_EOLANNOTATIONSETSTYLE = 2742

SCI_EOLANNOTATIONSETSTYLE(line line, int style)

SCI_EOLANNOTATIONSETSTYLEOFFSET = 2747

SCI_EOLANNOTATIONSETSTYLEOFFSET(int style)

SCI_EOLANNOTATIONSETTEXT = 2740

SCI_EOLANNOTATIONSETTEXT(line line, const char *text)

SCI_EOLANNOTATIONSETVISIBLE = 2745

SCI_EOLANNOTATIONSETVISIBLE(int visible)

SCI_EXPANDCHILDREN = 2239

SCI_EXPANDCHILDREN(line line, int level)
This is used to respond to a change to a line causing its fold level or whether it is a header to change, perhaps when adding or removing a '{'.

SCI_FINDCOLUMN = 2456

SCI_FINDCOLUMN(line line, position column) -> position
This message returns the position of a column on a line taking the width of tabs into account. It treats a multi-byte character as a single column. Column numbers, like lines start at 0.

SCI_FINDINDICATORFLASH = 2641

SCI_FINDINDICATORFLASH(position start, position end)
These two messages show and animate the find indicator. The indicator remains visible with SCI_FINDINDICATORSHOW and fades out after showing for half a second with SCI_FINDINDICATORFLASH. SCI_FINDINDICATORSHOW behaves similarly to the macOS TextEdit and Safari applications and is best suited to editing documentation where the search target is often a word. SCI_FINDINDICATORFLASH is similar to Xcode and is suited to editing source code where the match will often be located next to operators which would otherwise be hidden under the indicator's padding.

SCI_FINDINDICATORHIDE = 2642
SCI_FINDINDICATORSHOW = 2640

SCI_FINDINDICATORSHOW(position start, position end)

[Obsolete("Use the 64-bit character range APIs instead: https://groups.google.com/g/scintilla-interest/c/mPLwYdC0-FE")] SCI_FINDTEXT = 2150

SCI_FINDTEXT(int searchFlags, Sci_TextToFind *ft) -> position

SCI_FINDTEXTFULL = 2196

SCI_FINDTEXTFULL(int searchFlags, Sci_TextToFindFull *ft) -> position
These messages search for text in the document. They do not use or move the current selection. The searchFlags argument controls the search type, which includes regular expression searches.

SCI_FOLDALL = 2662

SCI_FOLDALL(int action)
These messages provide a higher-level approach to folding instead of setting expanded flags and showing or hiding individual lines.

SCI_FOLDCHILDREN = 2238

SCI_FOLDCHILDREN(line line, int action)

SCI_FOLDDISPLAYTEXTGETSTYLE = 2707

SCI_FOLDDISPLAYTEXTGETSTYLE -> int
These message changes the appearance of fold text tags.

SCI_FOLDDISPLAYTEXTSETSTYLE = 2701

SCI_FOLDDISPLAYTEXTSETSTYLE(int style)

SCI_FOLDLINE = 2237

SCI_FOLDLINE(line line, int action)

[Obsolete("Use the 64-bit character range APIs instead: https://groups.google.com/g/scintilla-interest/c/mPLwYdC0-FE")] SCI_FORMATRANGE = 2151

SCI_FORMATRANGE(bool draw, Sci_RangeToFormat *fr) -> position

SCI_FORMATRANGEFULL = 2777

SCI_FORMATRANGEFULL(bool draw, Sci_RangeToFormatFull *fr) -> position
This call renders a range of text into a device context. If you use this for printing, you will probably want to arrange a page header and footer; Scintilla does not do this for you. See SciTEWin::Print() in SciTEWinDlg.cxx for an example. Each use of this message renders a range of text into a rectangular area and returns the position in the document of the next character to print.

SCI_FORMFEED = 2330
SCI_FREESUBSTYLES = 4023
SCI_GETACCESSIBILITY = 2703

SCI_GETACCESSIBILITY -> int
These messages may enable or disable accessibility and report its current status.

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_GETADDITIONALCARETFORE = 2605

SCI_GETADDITIONALCARETFORE -> colour

SCI_GETADDITIONALCARETSBLINK -> bool
Modify the appearance of additional carets so that they can be differentiated from the main caret which has its appearance set with SC_ELEMENT_CARET, SCI_SETCARETFORE, SCI_GETCARETFORE , SCI_SETCARETPERIOD, and SCI_GETCARETPERIOD .

SCI_GETADDITIONALCARETSVISIBLE = 2609

SCI_GETADDITIONALCARETSVISIBLE -> bool
Determine whether to show additional carets (defaults to true ).

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_GETADDITIONALSELALPHA = 2603

SCI_GETADDITIONALSELALPHA -> int

SCI_GETADDITIONALSELECTIONTYPING = 2566

SCI_GETADDITIONALSELECTIONTYPING -> bool
Whether typing, new line, cursor left/right/up/down, backspace, delete, home, and end work with multiple selections simultaneously. Also allows selection and word and line deletion commands.

SCI_GETALLLINESVISIBLE = 2236

SCI_GETALLLINESVISIBLE -> bool
The first two messages mark a range of lines as visible or invisible and then redraw the display. If SC_ELEMENT_HIDDEN_LINE is set then a horizontal line is drawn in that colour to indicate that there are hidden lines. A fold line drawn in that position overrides the hidden line indicator. SCI_GETLINEVISIBLE reports on the visible state of a line and returns 1 if it is visible and 0 if it is not visible. SCI_GETALLLINESVISIBLE returns 1 if all lines are visible and 0 if some lines are hidden. These messages have no effect on fold levels or fold flags.

SCI_GETANCHOR = 2009

SCI_GETANCHOR -> position
This returns the current anchor position.

SCI_GETAUTOMATICFOLD = 2664

SCI_GETAUTOMATICFOLD -> int
Instead of implementing all the logic for handling folding in the container, Scintilla can provide behaviour that is adequate for many applications. The automaticFold argument is a bit set defining which of the 3 pieces of folding implementation should be enabled. Most applications should be able to use the SC_AUTOMATICFOLD_SHOW and SC_AUTOMATICFOLD_CHANGE flags unless they wish to implement quite different behaviour such as defining their own fold structure. SC_AUTOMATICFOLD_CLICK is more likely to be set off when an application would like to add or change click behaviour such as showing method headers only when Shift+Alt is used in conjunction with a click.

SCI_GETBACKSPACEUNINDENTS = 2263

SCI_GETBACKSPACEUNINDENTS -> bool

SCI_GETBOOSTREGEXERRMSG = 5000
SCI_GETBUFFEREDDRAW = 2034

SCI_GETBUFFEREDDRAW -> bool
These messages turn buffered drawing on or off and report the buffered drawing state. Buffered drawing draws each line into a bitmap rather than directly to the screen and then copies the bitmap to the screen. This avoids flickering although it does take longer. The default is for drawing to be buffered on Win32 and GTK and to not be buffered on Cocoa and Qt. Buffered drawing is not supported on Cocoa.

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_GETCARETFORE = 2138

SCI_GETCARETFORE -> colour
The colour of the caret can be set with SCI_SETELEMENTCOLOUR(SC_ELEMENT_CARET) or SCI_SETCARETFORE and retrieved with SCI_GETELEMENTCOLOUR(SC_ELEMENT_CARET) or SCI_GETCARETFORE. The element APIs are preferred and allow setting the translucency of carets.

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_GETCARETLINEBACK = 2097

SCI_GETCARETLINEBACK -> colour

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_GETCARETLINEBACKALPHA = 2471

SCI_GETCARETLINEBACKALPHA -> int
These APIs are discouraged. It is better to use the SC_ELEMENT_CARET_LINE_BACK element mentioned in the previous section. You can choose to make the background colour of the line containing the caret different with these messages. To do this, set the desired background colour with SCI_SETCARETLINEBACK, then use SCI_SETCARETLINEVISIBLE(true) to enable the effect. You can cancel the effect with SCI_SETCARETLINEVISIBLE(false). The two SCI_GETCARET* functions return the state and the colour. This form of background colouring has highest priority when a line has markers that would otherwise change the background colour. The caret line may also be drawn translucently which allows other background colours to show through. This is done by setting the alpha (translucency) value by calling SCI_SETCARETLINEBACKALPHA. When the alpha is not SC_ALPHA_NOALPHA, the caret line is drawn after all other features so will affect the colour of all other features.

SCI_GETCARETLINEFRAME = 2704

SCI_GETCARETLINEFRAME -> int
SCI_SETCARETLINEFRAME can be used to display the caret line framed instead of filling the whole background. Set width != 0 to enable this option and width= 0 to disable it.

SCI_GETCARETLINEHIGHLIGHTSUBLINE = 2773

SCI_GETCARETLINEHIGHLIGHTSUBLINE -> bool
Choose to highlight only the subline containing the caret instead of the whole line. Default behaviour SCI_SETCARETLINEHIGHLIGHTSUBLINE(false) the whole caret line is highlighted.

SCI_GETCARETLINELAYER = 2764

SCI_GETCARETLINELAYER -> int
You can choose to make the background colour of the line containing the caret different by setting the SC_ELEMENT_CARET_LINE_BACK element with SCI_SETELEMENTCOLOUR(SC_ELEMENT_CARET_LINE_BACK). This effect may be drawn translucently over the text or opaquely on the base layer with SCI_SETCARETLINELAYER. Background colouring has highest priority when a line has markers that would otherwise change the background colour. When drawn translucently other background colours can show through. The layer argument can be one of:

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_GETCARETLINEVISIBLE = 2095

SCI_GETCARETLINEVISIBLE -> bool

SCI_GETCARETLINEVISIBLEALWAYS = 2654

SCI_GETCARETLINEVISIBLEALWAYS -> bool
Choose to make the caret line always visible even when the window is not in focus. Default behaviour SCI_SETCARETLINEVISIBLEALWAYS(false) the caret line is only visible when the window is in focus.

SCI_GETCARETPERIOD = 2075

SCI_GETCARETPERIOD -> int
The rate at which the caret blinks can be set with SCI_SETCARETPERIOD which determines the time in milliseconds that the caret is visible or invisible before changing state. Setting the period to 0 stops the caret blinking. The default value is 500 milliseconds. SCI_GETCARETPERIOD returns the current setting.

SCI_GETCARETSTICKY = 2457

SCI_GETCARETSTICKY -> int

SCI_GETCARETSTYLE = 2513

SCI_GETCARETSTYLE -> int
The style of the caret can be set with SCI_SETCARETSTYLE. There are separate styles for insert mode (lower 4-bits, CARETSTYLE_INS_MASK ), overtype mode (bit 4), and curses mode (bit 5). CARETSTYLE_INVISIBLE CARETSTYLE_LINE CARETSTYLE_BLOCK CARETSTYLE_OVERSTRIKE_BAR CARETSTYLE_OVERSTRIKE_BLOCK CARETSTYLE_CURSES CARETSTYLE_BLOCK_AFTER CARETSTYLE_BLOCK or CARETSTYLE_CURSES. The block caret draws most combining and multibyte character sequences successfully, though some fonts like Thai Fonts (and possibly others) can sometimes appear strange when the cursor is positioned at these characters, which may result in only drawing a part of the cursor character sequence. This is most notable on Windows platforms.

SCI_GETCARETWIDTH = 2189

SCI_GETCARETWIDTH -> int
The width of the line caret can be set with SCI_SETCARETWIDTH to a value of between 0 and 20 pixels. The default width is 1 pixel. You can read back the current width with SCI_GETCARETWIDTH. A width of 0 makes the caret invisible, similar to setting the caret style to CARETSTYLE_INVISIBLE (though not interchangeable). This setting only affects the width of the cursor when the cursor style is set to line caret mode, it does not affect the width for a block caret.

SCI_GETCHANGEHISTORY = 2781

SCI_GETCHANGEHISTORY -> int
SCI_SETCHANGEHISTORY turns this feature on and off and determines whether changes are visible in the margin or text or both.

SCI_GETCHARACTERCATEGORYOPTIMIZATION = 2721

SCI_GETCHARACTERCATEGORYOPTIMIZATION -> int
Optimize speed of character category features like determining whether a character is a space or number at the expense of memory. Mostly used for Unicode documents. The countCharacters parameter determines how many character starting from 0 are added to a look-up table with one byte used for each character. It is reasonable to cover the set of characters likely to be used in a document so 0x100 for simple Roman text, 0x1000 to cover most simple alphabets, 0x10000 to cover most of East Asian languages, and 0x110000 to cover all possible characters.

SCI_GETCHARACTERPOINTER = 2520

SCI_GETCHARACTERPOINTER -> pointer

SCI_GETCHARAT = 2007

SCI_GETCHARAT(position pos) -> int
This returns the character at pos in the document or 0 if pos is negative or past the end of the document.

SCI_GETCODEPAGE = 2137

SCI_GETCODEPAGE -> int
Scintilla supports UTF-8, Japanese, Chinese and Korean DBCS along with single byte encodings like Latin-1. UTF-8 ( SC_CP_UTF8) is the default. Use this message with codePage set to the code page number to set Scintilla to use code page information to ensure multiple byte characters are treated as one character rather than multiple. This also stops the caret from moving between the bytes in a multi-byte character. Do not use this message to choose between different single byte character sets- use SCI_STYLESETCHARACTERSET. Call with codePage set to zero to disable multi-byte support.

SCI_GETCOLUMN = 2129

SCI_GETCOLUMN(position pos) -> position
This message returns the column number of a position pos within the document taking the width of tabs into account. This returns the column number of the last tab on the line before pos, plus the number of characters between the last tab and pos. If there are no tab characters on the line, the return value is the number of characters up to the position on the line. In both cases, double byte characters count as a single character. This is probably only useful with monospaced fonts.

SCI_GETCOMMANDEVENTS = 2718

SCI_GETCOMMANDEVENTS -> bool
These messages set and get whether SCEN_* command events are sent to the container. For SCEN_CHANGE this acts as an additional filter over SCI_SETMODEVENTMASK. Most applications should set this off to avoid overhead and only use SCN_MODIFIED .

SCI_GETCONTROLCHARSYMBOL = 2389

SCI_GETCONTROLCHARSYMBOL -> int
The mnemonics may be replaced by a nominated symbol with an ASCII code in the range 32 to 255. If you set a symbol value less than 32, all control characters are displayed as mnemonics. The symbol you set is rendered in the font of the style set for the character. You can read back the current symbol with the SCI_GETCONTROLCHARSYMBOL message. The default symbol value is 0.

SCI_GETCOPYSEPARATOR = 2812

SCI_GETCOPYSEPARATOR(<unused>, char *separator) -> int
When a multiple selection is copied, this string property is added between each part. Defaults to empty.

SCI_GETCURLINE = 2027

SCI_GETCURLINE(position length, char *text NUL-terminated) -> position
This retrieves the text of the line containing the caret and returns the position within the line of the caret. Pass in char* text pointing at a buffer large enough to hold the text you wish to retrieve and a terminating NUL(0) character. Set length to the length of the buffer not including the terminating NUL character. If the text argument is NULL(0) then the length that should be allocated to store the entire current line is returned.

SCI_GETCURRENTPOS = 2008

SCI_GETCURRENTPOS -> position
This returns the current position.

SCI_GETCURSOR = 2387

SCI_GETCURSOR -> int
The cursor is normally chosen in a context sensitive way, so it will be different over the margin than when over the text. When performing a slow action, you may wish to change to a wait cursor. You set the cursor type with SCI_SETCURSOR. The cursorType argument can be:

SCI_GETDEFAULTFOLDDISPLAYTEXT = 2723

SCI_GETDEFAULTFOLDDISPLAYTEXT(<unused>, char *text) -> int
These messages set and get the default text displayed at the right of the folded text.

SCI_GETDIRECTFUNCTION = 2184

SCI_GETDIRECTFUNCTION -> pointer
This message returns the address of the function to call to handle Scintilla messages without the overhead of passing through the Windows messaging system. You need only call this once, regardless of the number of Scintilla windows you create.

SCI_GETDIRECTPOINTER = 2185

SCI_GETDIRECTPOINTER -> pointer
This returns a pointer to data that identifies which Scintilla window is in use. You must call this once for each Scintilla window you create. When you call the direct function, you must pass in the direct pointer associated with the target window.

SCI_GETDIRECTSTATUSFUNCTION = 2772

SCI_GETDIRECTSTATUSFUNCTION -> pointer
This is similar to SCI_GETDIRECTFUNCTION but the returned function is of type SciFnDirectStatus which also returns the status to the caller through a pointer to an int. This saves performing an extra call to retrieve the status in many situations so can be faster.

SCI_GETDOCPOINTER = 2357

SCI_GETDOCPOINTER -> pointer
This returns a pointer to the document currently in use by the window. It has no other effect.

SCI_GETDOCUMENTOPTIONS = 2379

SCI_GETDOCUMENTOPTIONS -> int
Returns the options that were used to create the document.

SCI_GETEDGECOLOUR = 2364

SCI_GETEDGECOLOUR -> colour
These messages set and get the colour of the marker used to show that a line has exceeded the length set by SCI_SETEDGECOLUMN .

SCI_GETEDGECOLUMN = 2360

SCI_GETEDGECOLUMN -> position
These messages set and get the column number at which to display the long line marker. When drawing lines, the column sets a position in units of the width of a space character in STYLE_DEFAULT. When setting the background colour, the column is a character count (allowing for tabs) into the line.

SCI_GETEDGEMODE = 2362

SCI_GETEDGEMODE -> int
These two messages set and get the mode used to display long lines. You can set one of the values in the table:

SCI_GETELEMENTALLOWSTRANSLUCENT = 2757

SCI_GETELEMENTALLOWSTRANSLUCENT(int element) -> bool
Returns true when the element currently allows translucent drawing when an alpha component is included. This may change based on circumstances- different platforms or graphics technologies may implement translucency and newer versions of Scintilla may implement translucency for elements that did not previously support it.

SCI_GETELEMENTBASECOLOUR = 2758

SCI_GETELEMENTBASECOLOUR(int element) -> colouralpha
Returns the default colour of an element. This may be a value defined by Scintilla or it may be derived from the operating system or platform. Which values are set from the operating system may differ between operating systems and operating system versions. When undefined the return value is 0 which is equivalent to completely transparent black. These colours may be useful when defining styles with similarities such as synthesizing dark mode styles that use the same colours as the system

SCI_GETELEMENTCOLOUR = 2754

SCI_GETELEMENTCOLOUR(int element) -> colouralpha
This changes the colour of the indicated visual element overriding any current colour. If the element supports translucency, then the alpha portion of the value is used. An opaque alpha value (0xff) should always be included when an opaque colour is desired as the value 0 is completely transparent and thus invisible.

SCI_GETELEMENTISSET = 2756

SCI_GETELEMENTISSET(int element) -> bool
Returns true when an element colour has been set. When false indicates that a default colour or set of colours is displayed.

SCI_GETENDATLASTLINE = 2278

SCI_GETENDATLASTLINE -> bool
SCI_SETENDATLASTLINE sets the scroll range so that maximum scroll position has the last line at the bottom of the view (default). Setting this to false allows scrolling one page below the last line.

SCI_GETENDSTYLED = 2028

SCI_GETENDSTYLED -> position
Scintilla keeps a record of the last character that is likely to be styled correctly. This is moved forwards when characters after it are styled and moved backwards if changes are made to the text of the document before it. Before drawing text, this position is checked to see if any styling is needed and, if so, a SCN_STYLENEEDED notification message is sent to the container. The container can send SCI_GETENDSTYLED to work out where it needs to start styling. Scintilla will always ask to style whole lines.

SCI_GETEOLMODE = 2030

SCI_GETEOLMODE -> int
SCI_SETEOLMODE sets the characters that are added into the document when the user presses the Enter key. You can set eolMode to one of SC_EOL_CRLF (0), SC_EOL_CR (1), or SC_EOL_LF (2). The SCI_GETEOLMODE message retrieves the current state.

SCI_GETEXTRAASCENT = 2526

SCI_GETEXTRAASCENT -> int

SCI_GETEXTRADESCENT = 2528

SCI_GETEXTRADESCENT -> int
Text is drawn with the base of each character on a 'baseline'. The height of a line is found from the maximum that any style extends above the baseline (its 'ascent'), added to the maximum that any style extends below the baseline (its 'descent'). Space may be added to the maximum ascent( SCI_SETEXTRAASCENT) and the maximum descent( SCI_SETEXTRADESCENT) to allow for more space between lines. This may done to make the text easier to read or to accommodate underlines or highlights.

SCI_GETFIRSTVISIBLELINE = 2152

SCI_GETFIRSTVISIBLELINE -> line
These messages retrieve and set the line number of the first visible line in the Scintilla view. The first line in the document is numbered 0. The value is a visible line rather than a document line.

SCI_GETFOCUS = 2381

SCI_GETFOCUS -> bool
Scintilla can be told to grab the focus with SCI_GRABFOCUS. This is needed more on GTK where focus handling is more complicated than on Windows.

SCI_GETFOLDEXPANDED = 2230

SCI_GETFOLDEXPANDED(line line) -> bool
These messages set and get the expanded state of a single line. The set message has no effect on the visible state of the line or any lines that depend on it. It does change the markers in the folding margin. If you ask for the expansion state of a line that is outside the document, the result is false (0).

SCI_GETFOLDLEVEL = 2223

SCI_GETFOLDLEVEL(line line) -> int
These two messages set and get a 32-bit value that contains the fold level of a line and some flags associated with folding. The fold level is a number in the range 0 to SC_FOLDLEVELNUMBERMASK (0x0FFF). However, the initial fold level is set to SC_FOLDLEVELBASE (0x400) to allow unsigned arithmetic on folding levels. There are two addition flag bits. SC_FOLDLEVELWHITEFLAG indicates that the line is blank and allows it to be treated slightly different then its level may indicate. For example, blank lines should generally not be fold points and will be considered part of the preceding section even though they may have a lesser fold level. SC_FOLDLEVELHEADERFLAG indicates that the line is a header (fold point). SC_FOLDLEVELNONE is a default level that may occur before folding.

SCI_GETFOLDPARENT = 2225

SCI_GETFOLDPARENT(line line) -> line
This message returns the line number of the first line before line that is marked as a fold point with SC_FOLDLEVELHEADERFLAG and has a fold level less than the line. If no line is found, or if the header flags and fold levels are inconsistent, the return value is -1.

SCI_GETFONTLOCALE = 2761

SCI_GETFONTLOCALE(<unused>, char *localeName NUL-terminated) -> int
These messages set the locale used for font selection with language-dependent glyphs. It may, depending on platform and other circumstances influence the display of text, so setting "zh-Hant" may result in traditional Chinese display and "zh-Hans" may result in simplified Chinese display. It is currently only implemented for Win32 using DirectWrite where the value is passed as the localeName argument to CreateTextFormat. The default value is US English "en-us".

SCI_GETFONTQUALITY = 2612

SCI_GETFONTQUALITY -> int
Manage font quality (antialiasing method). Currently, the following values are available on Windows: SC_EFF_QUALITY_DEFAULT (backward compatible), SC_EFF_QUALITY_NON_ANTIALIASED , SC_EFF_QUALITY_ANTIALIASED, SC_EFF_QUALITY_LCD_OPTIMIZED .

SCI_GETGAPPOSITION = 2644

SCI_GETGAPPOSITION -> position
Grant temporary direct read-only access to the memory used by Scintilla to store the document.

SCI_GETHIGHLIGHTGUIDE = 2135

SCI_GETHIGHLIGHTGUIDE -> position
When brace highlighting occurs, the indentation guide corresponding to the braces may be highlighted with the brace highlighting style, STYLE_BRACELIGHT (34). Set column to 0 to cancel this highlight.

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_GETHOTSPOTACTIVEBACK = 2495

SCI_GETHOTSPOTACTIVEBACK -> colour

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_GETHOTSPOTACTIVEFORE = 2494

SCI_GETHOTSPOTACTIVEFORE -> colour

SCI_GETHOTSPOTACTIVEUNDERLINE = 2496

SCI_GETHOTSPOTACTIVEUNDERLINE -> bool

SCI_GETHOTSPOTSINGLELINE = 2497

SCI_GETHOTSPOTSINGLELINE -> bool
While the cursor hovers over text in a style with the hotspot attribute set, the default colouring can be modified and an underline drawn with these settings. Single line mode stops a hotspot from wrapping onto next line.

SCI_GETHSCROLLBAR = 2131

SCI_GETHSCROLLBAR -> bool
The horizontal scroll bar is only displayed if it is needed for the assumed width. If you never wish to see it, call SCI_SETHSCROLLBAR(0). Use SCI_SETHSCROLLBAR(1) to enable it again. SCI_GETHSCROLLBAR returns the current state. The default state is to display it when needed.

SCI_GETIDENTIFIER = 2623

SCI_GETIDENTIFIER -> int
These two messages set and get the identifier of the Scintilla instance which is included in notifications as the idFrom field. When an application creates multiple Scintilla widgets, this allows the source of each notification to be found. On Windows, this value is initialised in the CreateWindow call and stored as the GWLP_ID attribute of the window. The value should be small, preferably less than 16 bits, rather than a pointer as some of the functions will only transmit 16 or 32 bits.

SCI_GETIDLESTYLING = 2693

SCI_GETIDLESTYLING -> int
By default, SC_IDLESTYLING_NONE (0), syntax styling is performed for all the currently visible text before displaying it. On very large files, this may make scrolling down slow. With SC_IDLESTYLING_TOVISIBLE (1), a small amount of styling is performed before display and then further styling is performed incrementally in the background as an idle-time task. This may result in the text initially appearing uncoloured and then, some time later, it is coloured. Text after the currently visible portion may be styled in the background with SC_IDLESTYLING_AFTERVISIBLE (2). To style both before and after the visible text in the background use SC_IDLESTYLING_ALL (3).

SCI_GETIMEINTERACTION = 2678

SCI_GETIMEINTERACTION -> int
When entering text in Chinese, Japanese, or Korean an Input Method Editor (IME) may be displayed. The IME may be an extra window appearing above Scintilla or may be displayed by Scintilla itself as text. On some platforms there is a choice between the two techniques. A windowed IME SC_IME_WINDOWED (0) may be more similar in appearance and behaviour to the IME in other applications. An inline IME SC_IME_INLINE (1) may work better with some Scintilla features such as rectangular and multiple selection, with IME interactions such as retrieve- surrounding or reconversion feature.

SCI_GETINDENT = 2123

SCI_GETINDENT -> int
SCI_SETINDENT sets the size of indentation in terms of the width of a space in STYLE_DEFAULT. If you set a width of 0, the indent size is the same as the tab size. There are no limits on indent sizes, but values less than 0 or large values may have undesirable effects.

SCI_GETINDENTATIONGUIDES = 2133

SCI_GETINDENTATIONGUIDES -> int
Indentation guides are dotted vertical lines that appear within indentation white space every indent size columns. They make it easy to see which constructs line up especially when they extend over multiple pages. Style STYLE_INDENTGUIDE (37) is used to specify the foreground and background colour of the indentation guides.

SCI_GETINDICATORCURRENT = 2501

SCI_GETINDICATORCURRENT -> int
These two messages set and get the indicator that will be affected by calls to SCI_INDICATORFILLRANGE(position start, position lengthFill) and SCI_INDICATORCLEARRANGE(position start, position lengthClear) .

SCI_GETINDICATORVALUE = 2503

SCI_GETINDICATORVALUE -> int
These two messages set and get the value that will be set by calls to SCI_INDICATORFILLRANGE .

SCI_GETLASTCHILD = 2224

SCI_GETLASTCHILD(line line, int level) -> line
This message searches for the next line after line, that has a folding level that is less than or equal to level and then returns the previous line number. If you set level to -1, level is set to the folding level of line line. If from is a fold point, SCI_GETLASTCHILD(from, -1) returns the last line that would be in made visible or hidden by toggling the fold state.

SCI_GETLAYOUTCACHE = 2273

SCI_GETLAYOUTCACHE -> int
You can set cacheMode to one of the symbols in the table:

SCI_GETLAYOUTTHREADS = 2776

SCI_GETLAYOUTTHREADS -> int
The time taken to measure text runs on wide lines or when wrapping can be improved by performing the task concurrently on multiple threads when SCI_SUPPORTSFEATURE(SC_SUPPORTS_THREAD_SAFE_MEASURE_WIDTHS) is available. This can be a dramatic improvement- a 4 core processor is often able to reduce text layout time to just over one quarter of the single-threaded time.

SCI_GETLENGTH = 2006

SCI_GETLENGTH -> position
Both these messages return the length of the document in bytes.

SCI_GETLEXER = 4002

SCI_GETLEXER -> int
You can retrieve an integer lexer ID for the current lexer from the SCLEX_* enumeration in SciLexer.h. Some lexers may not have a lexer ID, just a lexer name in which case 0 is returned.

SCI_GETLEXERLANGUAGE = 4012

SCI_GETLEXERLANGUAGE(<unused>, char *language NUL-terminated) -> int
SCI_GETLEXERLANGUAGE returns the name of the current lexer which must be set with SCI_SETILEXER. To locate the name for a lexer, open the relevant lexilla/lexers/Lex*.cxx file and search for LexerModule. The third argument in the LexerModule constructor is the name to use.

SCI_GETLINE = 2153

SCI_GETLINE(line line, char *text) -> position
This fills the buffer defined by text with the contents of the nominated line (lines start at 0). The buffer is not terminated by a NUL(0) character. It is up to you to make sure that the buffer is long enough for the text, use SCI_LINELENGTH(line line). The returned value is the number of characters copied to the buffer. The returned text includes any end of line characters. If you ask for a line number outside the range of lines in the document, 0 characters are copied. If the text argument is 0 then the length that should be allocated to store the entire line is returned.

SCI_GETLINECHARACTERINDEX = 2710

SCI_GETLINECHARACTERINDEX -> int
Returns which if any indexes are active. It may be SC_LINECHARACTERINDEX_NONE (0) or one or more of SC_LINECHARACTERINDEX_UTF32 (1) if whole characters are indexed or SC_LINECHARACTERINDEX_UTF16 (2) if UTF-16 code units are indexed. Character indexes are currently only supported for UTF-8 documents.

SCI_GETLINECOUNT = 2154

SCI_GETLINECOUNT -> line
This returns the number of lines in the document. An empty document contains 1 line. A document holding only an end of line sequence has 2 lines.

SCI_GETLINEENDPOSITION = 2136

SCI_GETLINEENDPOSITION(line line) -> position
This returns the position at the end of the line, before any line end characters. If line is the last line in the document (which does not have any end of line characters) or greater, the result is the size of the document. If line is negative the result is undefined.

SCI_GETLINEENDTYPESACTIVE = 2658

SCI_GETLINEENDTYPESACTIVE -> int
SCI_GETLINEENDTYPESACTIVE reports the set of line ends currently interpreted by Scintilla. It is SCI_GETLINEENDTYPESSUPPORTED & SCI_GETLINEENDTYPESALLOWED .

SCI_GETLINEENDTYPESALLOWED = 2657

SCI_GETLINEENDTYPESALLOWED -> int
By default, only the ASCII line ends are interpreted. Unicode line ends may be requested with SCI_SETLINEENDTYPESALLOWED(SC_LINE_END_TYPE_UNICODE) but this will be ineffective unless the lexer also allows you Unicode line ends. SCI_GETLINEENDTYPESALLOWED returns the current state.

SCI_GETLINEENDTYPESSUPPORTED = 4018

SCI_GETLINEENDTYPESSUPPORTED -> int
SCI_GETLINEENDTYPESSUPPORTED reports the different types of line ends supported by the current lexer. This is a bit set although there is currently only a single choice with either SC_LINE_END_TYPE_DEFAULT (0) or SC_LINE_END_TYPE_UNICODE (1). These values are also used by the other messages concerned with Unicode line ends.

SCI_GETLINEINDENTATION = 2127

SCI_GETLINEINDENTATION(line line) -> int
The amount of indentation on a line can be discovered and set with SCI_GETLINEINDENTATION and SCI_SETLINEINDENTATION. The indentation is measured in character columns, which correspond to the width of space characters.

SCI_GETLINEINDENTPOSITION = 2128

SCI_GETLINEINDENTPOSITION(line line) -> position
This returns the position at the end of indentation of a line.

SCI_GETLINESELENDPOSITION = 2425

SCI_GETLINESELENDPOSITION(line line) -> position
Retrieve the position of the start and end of the selection at the given line with INVALID_POSITION returned if no selection on this line.

SCI_GETLINESELSTARTPOSITION = 2424

SCI_GETLINESELSTARTPOSITION(line line) -> position

SCI_GETLINESTATE = 2093

SCI_GETLINESTATE(line line) -> int
As well as the 8 bits of lexical state stored for each character there is also an integer stored for each line. This can be used for longer lived parse states such as what the current scripting language is in an ASP page. Use SCI_SETLINESTATE to set the integer value and SCI_GETLINESTATE to get the value. Changing the value produces a SC_MOD_CHANGELINESTATE notification.

SCI_GETLINEVISIBLE = 2228

SCI_GETLINEVISIBLE(line line) -> bool

SCI_GETMAINSELECTION = 2575

SCI_GETMAINSELECTION -> int
One of the selections is the main selection which is used to determine what range of text is automatically visible. The main selection may be displayed in different colours or with a differently styled caret. Only an already existing selection can be made main.

SCI_GETMARGINBACKN = 2251

SCI_GETMARGINBACKN(int margin) -> colour
A margin of type SC_MARGIN_COLOUR may have its colour set with SCI_SETMARGINBACKN .

SCI_GETMARGINCURSORN = 2249

SCI_GETMARGINCURSORN(int margin) -> int
A reversed arrow cursor is normally shown over all margins. This may be changed to a normal arrow with SCI_SETMARGINCURSORN(margin, SC_CURSORARROW) or restored to a reversed arrow with SCI_SETMARGINCURSORN(margin, SC_CURSORREVERSEARROW) .

SCI_GETMARGINLEFT = 2156

SCI_GETMARGINLEFT -> int

SCI_GETMARGINMASKN = 2245

SCI_GETMARGINMASKN(int margin) -> int
The mask is a 32-bit value. Each bit corresponds to one of 32 logical symbols that can be displayed in a margin that is enabled for symbols. There is a useful constant, SC_MASK_FOLDERS (0xFE000000 or -33554432), that is a mask for the 7 logical symbols used to denote folding, and another, SC_MASK_HISTORY (0x01E00000 or 31457280), that is a mask for the 4 logical symbols used to denote change history. You can assign a wide range of symbols and colours to each of the 32 logical symbols, see Markers for more information. If (mask & SC_MASK_FOLDERS)==0, the margin background colour is controlled by style 33( STYLE_LINENUMBER ).

SCI_GETMARGINOPTIONS = 2557

SCI_GETMARGINOPTIONS -> int
Define margin options by enabling appropriate bit flags. At the moment, only one flag is available SC_MARGINOPTION_SUBLINESELECT =1, which controls how wrapped lines are selected when clicking on margin in front of them. If SC_MARGINOPTION_SUBLINESELECT is set only sub line of wrapped line is selected, otherwise whole wrapped line is selected. Margin options are set to SC_MARGINOPTION_NONE =0 by default.

SCI_GETMARGINRIGHT = 2158

SCI_GETMARGINRIGHT -> int
These messages set and get the width of the blank margin on both sides of the text in pixels. The default is to one pixel on each side.

SCI_GETMARGINS = 2253

SCI_GETMARGINS -> int
Allocate the number of margins or find the number of margins currently allocated.

SCI_GETMARGINSENSITIVEN = 2247

SCI_GETMARGINSENSITIVEN(int margin) -> bool
Each of the five margins can be set sensitive or insensitive to mouse clicks. A click in a sensitive margin sends a SCN_MARGINCLICK or SCN_MARGINRIGHTCLICK notification to the container. Margins that are not sensitive act as selection margins which make it easy to select ranges of lines. By default, all margins are insensitive.

SCI_GETMARGINTYPEN = 2241

SCI_GETMARGINTYPEN(int margin) -> int
These two routines set and get the type of a margin. The margin argument should be 0, 1, 2, 3 or 4. You can use the predefined constants SC_MARGIN_SYMBOL (0) and SC_MARGIN_NUMBER (1) to set a margin as either a line number or a symbol margin. A margin with application defined text may use SC_MARGIN_TEXT (4) or SC_MARGIN_RTEXT (5) to right justify the text. By convention, margin 0 is used for line numbers and the next two are used for symbols. You can also use the constants SC_MARGIN_BACK (2), SC_MARGIN_FORE (3), and SC_MARGIN_COLOUR (6) for symbol margins that set their background colour to match the STYLE_DEFAULT background and foreground colours or a specified colour.

SCI_GETMARGINWIDTHN = 2243

SCI_GETMARGINWIDTHN(int margin) -> int
These routines set and get the width of a margin in pixels. A margin with zero width is invisible. By default, Scintilla sets margin 1 for symbols with a width of 16 pixels, so this is a reasonable guess if you are not sure what would be appropriate. Line number margins widths should take into account the number of lines in the document and the line number style. You could use something like SCI_TEXTWIDTH(STYLE_LINENUMBER, "_99999") to get a suitable width.

SCI_GETMAXLINESTATE = 2094

SCI_GETMAXLINESTATE -> int
This returns the last line that has any line state. This has been made less useful by an optimization that always allocates for all lines if any line's state was set. It can still distinguish cases where line state was never set for any lines.

SCI_GETMODEVENTMASK = 2378

SCI_GETMODEVENTMASK -> int
These messages set and get an event mask that determines which document change events are notified to the container with SCN_MODIFIED and SCEN_CHANGE. For example, a container may decide to see only notifications about changes to text and not styling changes by calling SCI_SETMODEVENTMASK(SC_MOD_INSERTTEXT|SC_MOD_DELETETEXT) .

SCI_GETMODIFY = 2159

SCI_GETMODIFY -> bool
This returns non-zero if the document is modified and 0 if it is unmodified. The modified status of a document is determined by the undo position relative to the save point. The save point is set by SCI_SETSAVEPOINT , usually when you have saved data to a file.

SCI_GETMOUSEDOWNCAPTURES = 2385

SCI_GETMOUSEDOWNCAPTURES -> bool
When the mouse is pressed inside Scintilla, it is captured so future mouse movement events are sent to Scintilla. This behaviour may be turned off with SCI_SETMOUSEDOWNCAPTURES(0) .

SCI_GETMOUSEDWELLTIME = 2265

SCI_GETMOUSEDWELLTIME -> int
These two messages set and get the time the mouse must sit still, in milliseconds, to generate a SCN_DWELLSTART notification. If set to SC_TIME_FOREVER, the default, no dwell events are generated.

SCI_GETMOUSESELECTIONRECTANGULARSWITCH = 2669

SCI_GETMOUSESELECTIONRECTANGULARSWITCH -> bool
Enable or disable the ability to switch to rectangular selection mode while making a selection with the mouse. When this option is turned on, mouse selections in stream mode can be switched to rectangular mode by pressing the corresponding modifier key. They then stick to rectangular mode even when the modifier key is released again. When this option is turned off, mouse selections will always stick to the mode the selection was started in. It is off by default.

SCI_GETMOUSEWHEELCAPTURES = 2697

SCI_GETMOUSEWHEELCAPTURES -> bool
On Windows, Scintilla captures all WM_MOUSEWHEEL messages if it has the focus, even if the mouse pointer is nowhere near the Scintilla editor window. This behaviour can be changed with SCI_SETMOUSEWHEELCAPTURES(0) so that Scintilla passes the WM_MOUSEWHEEL messages to its parent window. Scintilla will still react to the mouse wheel if the mouse pointer is over the editor window.

SCI_GETMOVEEXTENDSSELECTION = 2706

SCI_GETMOVEEXTENDSSELECTION -> bool
This controls whether regular caret moves extends the selection leaving the anchor unchanged. It is 1 if regular caret moves will extend or reduce the selection, 0 if not. SCI_SETSELECTIONMODE toggles this setting between on and off.

SCI_GETMULTIEDGECOLUMN = 2749

SCI_GETMULTIEDGECOLUMN(int which) -> position
SCI_MULTIEDGEADDLINE adds a new vertical edge to the view. The edge will be displayed at the given column number. The resulting edge position depends on the metric of a space character in STYLE_DEFAULT. All the edges can be cleared with SCI_MULTIEDGECLEARALL. SCI_GETMULTIEDGECOLUMN returns the column of the Nth vertical edge (indexed from 0). If which is greater or equal to the number of vertical edges, this returns -1.

SCI_GETMULTIPASTE = 2615

SCI_GETMULTIPASTE -> int
When pasting into multiple selections, the pasted text can go into just the main selection with SC_MULTIPASTE_ONCE =0 or into each selection with SC_MULTIPASTE_EACH =1. SC_MULTIPASTE_ONCE is the default.

SCI_GETMULTIPLESELECTION = 2564

SCI_GETMULTIPLESELECTION -> bool
Enable or disable multiple selection. When multiple selection is disabled, it is not possible to select multiple ranges by holding down the Ctrl key while dragging with the mouse.

SCI_GETNAMEDSTYLES = 4029

SCI_GETNAMEDSTYLES -> int
Retrieve the number of named styles for the lexer.

SCI_GETNEXTTABSTOP = 2677

SCI_GETNEXTTABSTOP(line line, int x) -> int
SCI_CLEARTABSTOPS clears explicit tabstops on a line. SCI_ADDTABSTOP adds an explicit tabstop at the specified distance from the left (in pixels), and SCI_GETNEXTTABSTOP gets the next explicit tabstop position set after the given x position, or zero if there aren't any. Changing tab stops produces a SC_MOD_CHANGETABSTOPS notification.

SCI_GETOVERTYPE = 2187

SCI_GETOVERTYPE -> bool
When overtype is enabled, each typed character replaces the character to the right of the text caret. When overtype is disabled, characters are inserted at the caret. SCI_GETOVERTYPE returns true (1) if overtyping is active, otherwise false (0) will be returned. Use SCI_SETOVERTYPE to set the overtype mode.

SCI_GETPASTECONVERTENDINGS = 2468

SCI_GETPASTECONVERTENDINGS -> bool
If this property is set then when text is pasted any line ends are converted to match the document's end of line mode as set with SCI_SETEOLMODE. Defaults to true.

SCI_GETPHASESDRAW = 2673

SCI_GETPHASESDRAW -> int
There are several orders in which the text area may be drawn offering a trade-off between speed and allowing all pixels of text to be seen even when they overlap other elements.

SCI_GETPOSITIONCACHE = 2515

SCI_GETPOSITIONCACHE -> int
The position cache stores position information for short runs of text so that their layout can be determined more quickly if the run recurs. The size in entries of this cache can be set with SCI_SETPOSITIONCACHE .

SCI_GETPRIMARYSTYLEFROMSTYLE = 4028

SCI_GETPRIMARYSTYLEFROMSTYLE(int style) -> int
For a secondary style, return the primary style, else return the argument.

SCI_GETPRINTCOLOURMODE = 2149

SCI_GETPRINTCOLOURMODE -> int
These two messages set and get the method used to render coloured text on a printer that is probably using white paper. It is especially important to consider the treatment of colour if you use a dark or black screen background. Printing white on black uses up toner and ink very many times faster than the other way around. You can set the mode to one of:

SCI_GETPRINTMAGNIFICATION = 2147

SCI_GETPRINTMAGNIFICATION -> int
SCI_GETPRINTMAGNIFICATION lets you to print at a different size than the screen font. magnification is the number of points to add to the size of each screen font. A value of -3 or -4 gives reasonably small print. You can get this value with SCI_GETPRINTMAGNIFICATION .

SCI_GETPRINTWRAPMODE = 2407

SCI_GETPRINTWRAPMODE -> int
These two functions get and set the printer wrap mode. wrapMode can be set to SC_WRAP_NONE (0) or SC_WRAP_WORD (1). The default is SC_WRAP_WORD, which wraps printed output so that all characters fit into the print rectangle. If you set SC_WRAP_NONE, each line of text generates one line of output and the line is truncated if it is too long to fit into the print area. SC_WRAP_WORD tries to wrap only between words as indicated by white space or style changes although if a word is longer than a line, it will be wrapped before the line end. SC_WRAP_CHAR is not supported for printing.

SCI_GETPROPERTY = 4008

SCI_GETPROPERTY(const char *key, char *value NUL-terminated) -> int
Lookup a keyword:value pair using the specified key; if found, copy the value to the user-supplied buffer and return the length (not including the terminating 0). If not found, copy an empty string to the buffer and return 0.

SCI_GETPROPERTYEXPANDED = 4009

SCI_GETPROPERTYEXPANDED(const char *key, char *value NUL-terminated) -> int
This is now the same as SCI_GETPROPERTY- no expansion is performed.

SCI_GETPROPERTYINT = 4010

SCI_GETPROPERTYINT(const char *key, int defaultValue) -> int
Lookup a keyword:value pair using the specified key; if found, interpret the value as an integer and return it. If not found (or the value is an empty string) then return the supplied default. If the keyword:value pair is found but is not a number, then return 0.

SCI_GETPUNCTUATIONCHARS = 2649

SCI_GETPUNCTUATIONCHARS(<unused>, char *characters) -> int
Similar to SCI_SETWORDCHARS and SCI_SETWHITESPACECHARS, this message allows the user to define which chars Scintilla considers as punctuation. SCI_GETPUNCTUATIONCHARS behaves similarly to SCI_GETWORDCHARS .

SCI_GETRANGEPOINTER = 2643

SCI_GETRANGEPOINTER(position start, position lengthRange) -> pointer

SCI_GETREADONLY = 2140

SCI_GETREADONLY -> bool
These messages set and get the read-only flag for the document. If you mark a document as read only, attempts to modify the text cause the SCN_MODIFYATTEMPTRO notification.

SCI_GETRECTANGULARSELECTIONANCHOR = 2591

SCI_GETRECTANGULARSELECTIONANCHOR -> position

SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2595

SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE -> position
Set or query the position and amount of virtual space for the caret and anchor of the rectangular selection. After setting the rectangular selection, this is broken down into multiple selections, one for each line.

SCI_GETRECTANGULARSELECTIONCARET = 2589

SCI_GETRECTANGULARSELECTIONCARET -> position

SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2593

SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE -> position

SCI_GETRECTANGULARSELECTIONMODIFIER = 2599

SCI_GETRECTANGULARSELECTIONMODIFIER -> int
On GTK and Qt, the key used to indicate that a rectangular selection should be created when combined with a mouse drag can be set. The three possible values are SCMOD_CTRL =2, SCMOD_ALT =4 (default) or SCMOD_SUPER =8. Since SCMOD_ALT may already be used by a window manager, the window manager may need configuring to allow this choice. SCMOD_SUPER is often a system dependent modifier key such as the Left Windows key on a Windows keyboard or the Command key on a Mac.

SCI_GETREPRESENTATION = 2666

SCI_GETREPRESENTATION(const char *encodedCharacter, char *representation NUL-terminated) -> int

SCI_GETREPRESENTATIONAPPEARANCE = 2767

SCI_GETREPRESENTATIONAPPEARANCE(const char *encodedCharacter) -> int
The appearance may be changed using these flags. If a colour is set and the appearance is set without SC_REPRESENTATION_COLOUR then the representation will show in the colour of the underlying text.

SCI_GETREPRESENTATIONCOLOUR = 2769

SCI_GETREPRESENTATIONCOLOUR(const char *encodedCharacter) -> colouralpha
The colour and translucency of a representation may be set.

SCI_GETSCROLLWIDTH = 2275

SCI_GETSCROLLWIDTH -> int
For performance, Scintilla does not measure the display width of the document to determine the properties of the horizontal scroll bar. Instead, an assumed width is used. These messages set and get the document width in pixels assumed by Scintilla. The default value is 2000. To ensure the width of the currently visible lines can be scrolled use SCI_SETSCROLLWIDTHTRACKING

SCI_GETSCROLLWIDTHTRACKING = 2517

SCI_GETSCROLLWIDTHTRACKING -> bool
If scroll width tracking is enabled then the scroll width is adjusted to ensure that all of the lines currently displayed can be completely scrolled. This mode never adjusts the scroll width to be narrower.

SCI_GETSEARCHFLAGS = 2199

SCI_GETSEARCHFLAGS -> int
These get and set the searchFlags used by SCI_SEARCHINTARGET. There are several option flags including a simple regular expression search.

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_GETSELALPHA = 2477

SCI_GETSELALPHA -> int
These APIs are now discouraged and should be replaced with a combination of setting the layer with SCI_SETSELECTIONLAYER and setting translucency through the SC_ELEMENT_SELECTION_BACK element.

SCI_GETSELECTIONEMPTY = 2650

SCI_GETSELECTIONEMPTY -> bool
Return 1 if every selected range is empty else 0.

SCI_GETSELECTIONEND = 2145

SCI_GETSELECTIONEND -> position
These return the start and end of the selection without regard to which end is the current position and which is the anchor. SCI_GETSELECTIONSTART returns the smaller of the current position or the anchor position. SCI_GETSELECTIONEND returns the larger of the two values.

SCI_GETSELECTIONHIDDEN = 2088

SCI_GETSELECTIONHIDDEN -> bool
The normal state is to make the selection visible by drawing it as set by SCI_SETSELFORE, SCI_SETSELBACK, and related calls. However, if you hide the selection, it is drawn as normal text.

SCI_GETSELECTIONLAYER = 2762

SCI_GETSELECTIONLAYER -> int
The selection background can be drawn translucently over the text or opaquely on the base layer. The layer argument can be one of:

SCI_GETSELECTIONMODE = 2423

SCI_GETSELECTIONMODE -> int
The functions set, change, and get the selection mode, which can be stream( SC_SEL_STREAM =0) or rectangular( SC_SEL_RECTANGLE =1) or by lines( SC_SEL_LINES =2) or thin rectangular( SC_SEL_THIN =3). When SCI_SETSELECTIONMODE sets these modes, regular caret moves will extend or reduce the selection, until the mode is cancelled by a call with same value, or with SCI_CANCEL, or with SCI_SETMOVEEXTENDSSELECTION . SCI_CHANGESELECTIONMODE sets the mode but does not make regular caret moves extend or reduce the selection.

SCI_GETSELECTIONNANCHOR = 2579

SCI_GETSELECTIONNANCHOR(int selection) -> position

SCI_GETSELECTIONNANCHORVIRTUALSPACE = 2583

SCI_GETSELECTIONNANCHORVIRTUALSPACE(int selection) -> position
Set or query the position and amount of virtual space for the caret and anchor of each already existing selection.

SCI_GETSELECTIONNCARET = 2577

SCI_GETSELECTIONNCARET(int selection) -> position

SCI_GETSELECTIONNCARETVIRTUALSPACE = 2581

SCI_GETSELECTIONNCARETVIRTUALSPACE(int selection) -> position

SCI_GETSELECTIONNEND = 2587

SCI_GETSELECTIONNEND(int selection) -> position

SCI_GETSELECTIONNENDVIRTUALSPACE = 2727

SCI_GETSELECTIONNENDVIRTUALSPACE(int selection) -> position
Set or query the start and end position of each already existing selection. Query the virtual space at start and end of each selection. Mostly of use to query each range for its text. The selection parameter is zero-based.

SCI_GETSELECTIONNSTART = 2585

SCI_GETSELECTIONNSTART(int selection) -> position

SCI_GETSELECTIONNSTARTVIRTUALSPACE = 2726

SCI_GETSELECTIONNSTARTVIRTUALSPACE(int selection) -> position

SCI_GETSELECTIONS = 2570

SCI_GETSELECTIONS -> int
Return the number of selections currently active. There is always at least one selection.

SCI_GETSELECTIONSERIALIZED = 2785

SCI_GETSELECTIONSERIALIZED(<unused>, char *selectionString) -> position
Set or query the selection type and positions as a serialized string. The format of this string may change in future versions so should not be persisted beyond the current session.

SCI_GETSELECTIONSTART = 2143

SCI_GETSELECTIONSTART -> position

SCI_GETSELEOLFILLED = 2479

SCI_GETSELEOLFILLED -> bool
The selection can be drawn up to the right hand border by setting this property.

SCI_GETSELTEXT = 2161

SCI_GETSELTEXT(<unused>, char *text NUL-terminated) -> position
This copies the currently selected text and a terminating NUL(0) byte to the text buffer. The buffer size should be determined by calling with a NULL pointer for the text argument: 1+ SCI_GETSELTEXT(0, NULL). This allows for rectangular and discontiguous selections as well as simple selections. See Multiple Selection for information on how multiple and rectangular selections and virtual space are copied.

SCI_GETSTATUS = 2383

SCI_GETSTATUS -> int
If an error occurs, Scintilla may set an internal error number that can be retrieved with SCI_GETSTATUS. To clear the error status call SCI_SETSTATUS(0). Status values from 1 to 999 are errors and status SC_STATUS_WARN_START (1000) and above are warnings. The currently defined statuses are:

SCI_GETSTYLEAT = 2010

SCI_GETSTYLEAT(position pos) -> int

[Obsolete("Use the 64-bit character range APIs instead: https://groups.google.com/g/scintilla-interest/c/mPLwYdC0-FE")] SCI_GETSTYLEDTEXT = 2015

SCI_GETSTYLEDTEXT(<unused>, Sci_TextRange *tr) -> position

SCI_GETSTYLEDTEXTFULL = 2778

SCI_GETSTYLEDTEXTFULL(<unused>, Sci_TextRangeFull *tr) -> position
This collects styled text into a buffer using two bytes for each cell, with the character at the lower address of each pair and the style byte at the upper address. Characters between the positions cpMin and cpMax are copied to lpstrText (see struct Sci_TextRange and struct Sci_TextRangeFull in Scintilla.h ). Two 0 bytes are added to the end of the text, so the buffer that lpstrText points at must be at least 2*(cpMax-cpMin)+2 bytes long. No check is made for sensible values of cpMin or cpMax. Positions outside the document return character codes and style bytes of 0.

SCI_GETSTYLEFROMSUBSTYLE = 4027

SCI_GETSTYLEFROMSUBSTYLE(int subStyle) -> int
For a sub style, return the base style, else return the argument.

SCI_GETSTYLEINDEXAT = 2038

SCI_GETSTYLEINDEXAT(position pos) -> int
This returns the style at pos in the document, or 0 if pos is negative or past the end of the document. SCI_GETSTYLEAT may return a negative number for styles over 127 whereas SCI_GETSTYLEINDEXAT will only return positive numbers. SCI_GETSTYLEINDEXAT should be preferred as it handles styles more consistently and may avoid problems with lexers that define more than 128 styles.

SCI_GETSUBSTYLEBASES = 4026

SCI_GETSUBSTYLEBASES(<unused>, char *styles NUL-terminated) -> int
Fill styles with a byte for each style that can be split into substyles.

SCI_GETSUBSTYLESLENGTH = 4022

SCI_GETSUBSTYLESLENGTH(int styleBase) -> int
Return the start and length of the substyles allocated for a base style.

SCI_GETSUBSTYLESSTART = 4021

SCI_GETSUBSTYLESSTART(int styleBase) -> int

SCI_GETTABDRAWMODE = 2698

SCI_GETTABDRAWMODE -> int
These two messages get and set how tab characters are drawn when white space is visible. The tabDrawMode argument can be one of:

SCI_GETTABINDENTS = 2261

SCI_GETTABINDENTS -> bool

SCI_GETTABMINIMUMWIDTH = 2725

SCI_GETTABMINIMUMWIDTH -> int
SCI_SETTABMINIMUMWIDTH sets the minimum size of a tab in pixels to ensure that the tab can be seen. The default value is 2. This is particularly useful with proportional fonts with fractional widths where the character before the tab may end a fraction of a pixel before a tab stop, causing the tab to only be a fraction of a pixel wide without this setting. Where displaying a miniaturized version of the document, setting this to 0 may make the miniaturized version lay out more like the normal size version.

SCI_GETTABWIDTH = 2121

SCI_GETTABWIDTH -> int
SCI_SETTABWIDTH sets the size of a tab as a multiple of the size of a space character in STYLE_DEFAULT. The default tab width is 8 characters. There are no limits on tab sizes, but values less than 1 or large values may have undesirable effects.

SCI_GETTAG = 2616

SCI_GETTAG(int tagNumber, char *tagValue NUL-terminated) -> int
Discover what text was matched by tagged expressions in a regular expression search. This is useful if the application wants to interpret the replacement string itself.

SCI_GETTARGETEND = 2193

SCI_GETTARGETEND -> position

SCI_GETTARGETENDVIRTUALSPACE = 2731

SCI_GETTARGETENDVIRTUALSPACE -> position

SCI_GETTARGETSTART = 2191

SCI_GETTARGETSTART -> position

SCI_GETTARGETSTARTVIRTUALSPACE = 2729

SCI_GETTARGETSTARTVIRTUALSPACE -> position

SCI_GETTARGETTEXT = 2687

SCI_GETTARGETTEXT(<unused>, char *text) -> position
Retrieve the value in the target.

SCI_GETTECHNOLOGY = 2631

SCI_GETTECHNOLOGY -> int
The technology property allows choosing between different drawing APIs and options. On most platforms, the only choice is SC_TECHNOLOGY_DEFAULT (0). On Windows 7 or later, SC_TECHNOLOGY_DIRECTWRITE (1) performs higher quality antialiased drawing. The other choices in the following table are similar to SC_TECHNOLOGY_DIRECTWRITE but may work or be more efficient in some situations where SC_TECHNOLOGY_DIRECTWRITE fails or is slow.

SCI_GETTEXT = 2182

SCI_GETTEXT(position length, char *text NUL-terminated) -> position
This returns at most length characters of text from the start of the document plus one terminating 0 character. When length is beyond document length, it returns document length. To collect all the text in a document, use SCI_GETLENGTH to get the number of characters in the document( nLen ), allocate a character buffer of length nLen+1 bytes, then call SCI_GETTEXT(nLen, char *text). If the text argument is NULL(0) then the length that should be allocated to store the entire document is returned. If you then save the text, you should use SCI_SETSAVEPOINT to mark the text as unmodified.

SCI_GETTEXTLENGTH = 2183

SCI_GETTEXTLENGTH -> position

[Obsolete("Use the 64-bit character range APIs instead: https://groups.google.com/g/scintilla-interest/c/mPLwYdC0-FE")] SCI_GETTEXTRANGE = 2162

SCI_GETTEXTRANGE(<unused>, Sci_TextRange *tr) -> position

SCI_GETTEXTRANGEFULL = 2039

SCI_GETTEXTRANGEFULL(<unused>, Sci_TextRangeFull *tr) -> position
This collects the text between the positions cpMin and cpMax and copies it to lpstrText (see struct Sci_TextRange in Scintilla.h ). If cpMax is -1, text is returned to the end of the document. The text is 0 terminated, so you must supply a buffer that is at least 1 character longer than the number of characters you wish to read. The return value is the length of the returned text not including the terminating 0.

SCI_GETUNDOACTIONPOSITION = 2803
SCI_GETUNDOACTIONS = 2790
SCI_GETUNDOACTIONTEXT = 2804
SCI_GETUNDOACTIONTYPE = 2802
SCI_GETUNDOCOLLECTION = 2019

SCI_GETUNDOCOLLECTION -> bool
You can control whether Scintilla collects undo information with SCI_SETUNDOCOLLECTION. Pass in true (1) to collect information and false (0) to stop collecting. If you stop collection, you should also use SCI_EMPTYUNDOBUFFER to avoid the undo buffer being unsynchronized with the data in the buffer.

SCI_GETUNDOCURRENT = 2798
SCI_GETUNDODETACH = 2794
SCI_GETUNDOSAVEPOINT = 2792
SCI_GETUNDOSELECTIONHISTORY = 2783

SCI_GETUNDOSELECTIONHISTORY -> int
The selection for each action can be saved and then restored when undo or redo is performed. SCI_SETUNDOSELECTIONHISTORY controls this. There is a memory cost for this feature with a minimum of 150 bytes for each of undo and redo for each recorded action. Recording may be turned on at any time.

SCI_GETUNDOSEQUENCE = 2799

SCI_GETUNDOSEQUENCE -> int
Determine if an undo sequence is active with a positive value indicating that a sequence is active and 0 that there is no current sequence. The value returned is the nesting depth of the sequence, that is, the number of times SCI_BEGINUNDOACTION was called without a correspnding SCI_ENDUNDOACTION. A negative value indicates an error.

SCI_GETUNDOTENTATIVE = 2796
SCI_GETUSETABS = 2125

SCI_GETUSETABS -> bool
SCI_SETUSETABS determines whether indentation should be created out of a mixture of tabs and spaces or be based purely on spaces. Set useTabs to false (0) to create all tabs and indents out of spaces. The default is true. You can use SCI_GETCOLUMN to get the column of a position taking the width of a tab into account.

SCI_GETVIEWEOL = 2355

SCI_GETVIEWEOL -> bool
Normally, the end of line characters are hidden, but SCI_SETVIEWEOL allows you to display (or hide) them by setting visible true (or false ). The visible rendering of the end of line characters is similar to (CR), (LF), or (CR)(LF). SCI_GETVIEWEOL returns the current state.

SCI_GETVIEWWS = 2020

SCI_GETVIEWWS -> int
White space can be made visible which may be useful for languages in which white space is significant, such as Python. Space characters appear as small centred dots and tab characters as light arrows pointing to the right. There are also ways to control the display of end of line characters. The two messages set and get the white space display mode. The viewWS argument can be one of:

SCI_GETVIRTUALSPACEOPTIONS = 2597

SCI_GETVIRTUALSPACEOPTIONS -> int
Virtual space can be enabled or disabled for rectangular selections or in other circumstances or in both. There are three bit flags SCVS_RECTANGULARSELECTION =1, SCVS_USERACCESSIBLE =2, and SCVS_NOWRAPLINESTART =4 which can be set independently. SCVS_NONE =0, the default, disables all use of virtual space.

SCI_GETVSCROLLBAR = 2281

SCI_GETVSCROLLBAR -> bool
By default, the vertical scroll bar is always displayed when required. You can choose to hide or show it with SCI_SETVSCROLLBAR and get the current state with SCI_GETVSCROLLBAR .

SCI_GETWHITESPACECHARS = 2647

SCI_GETWHITESPACECHARS(<unused>, char *characters) -> int
Similar to SCI_SETWORDCHARS, this message allows the user to define which chars Scintilla considers as whitespace. Setting the whitespace chars allows the user to fine-tune Scintilla's behaviour doing such things as moving the cursor to the start or end of a word; for example, by defining punctuation chars as whitespace, they will be skipped over when the user presses ctrl+left or ctrl+right. This function should be called after SCI_SETWORDCHARS as it will reset the whitespace characters to the default set. SCI_GETWHITESPACECHARS behaves similarly to SCI_GETWORDCHARS .

SCI_GETWHITESPACESIZE = 2087

SCI_GETWHITESPACESIZE -> int
SCI_SETWHITESPACESIZE sets the size of the dots used for mark space characters. The SCI_GETWHITESPACESIZE message retrieves the current size. The value 0 is valid and makes the dots invisible.

SCI_GETWORDCHARS = 2646

SCI_GETWORDCHARS(<unused>, char *characters) -> int
This fills the characters parameter with all the characters included in words. The characters parameter must be large enough to hold all of the characters. If the characters parameter is 0 then the length that should be allocated to store the entire set is returned.

SCI_GETWRAPINDENTMODE = 2473

SCI_GETWRAPINDENTMODE -> int
Wrapped sublines can be indented to the position of their first subline or one more indent level. The default is SC_WRAPINDENT_FIXED. The modes are:

SCI_GETWRAPMODE = 2269

SCI_GETWRAPMODE -> int
Set wrapMode to SC_WRAP_WORD (1) to enable wrapping on word or style boundaries, SC_WRAP_CHAR (2) to enable wrapping between any characters, SC_WRAP_WHITESPACE (3) to enable wrapping on whitespace, and SC_WRAP_NONE (0) to disable line wrapping. SC_WRAP_CHAR is preferred for Asian languages where there is no white space between words.

SCI_GETWRAPSTARTINDENT = 2465

SCI_GETWRAPSTARTINDENT -> int
SCI_SETWRAPSTARTINDENT sets the size of indentation of sublines for wrapped lines in terms of the average character width in STYLE_DEFAULT. There are no limits on indent sizes, but values less than 0 or large values may have undesirable effects. The indention of sublines is independent of visual flags, but if SC_WRAPVISUALFLAG_START is set an indent of at least 1 is used.

SCI_GETWRAPVISUALFLAGS = 2461

SCI_GETWRAPVISUALFLAGS -> int
You can enable the drawing of visual flags to indicate a line is wrapped. Bits set in wrapVisualFlags determine which visual flags are drawn.

SCI_GETWRAPVISUALFLAGSLOCATION = 2463

SCI_GETWRAPVISUALFLAGSLOCATION -> int
You can set whether the visual flags to indicate a line is wrapped are drawn near the border or near the text. Bits set in wrapVisualFlagsLocation set the location to near the text for the corresponding visual flag.

SCI_GETXOFFSET = 2398

SCI_GETXOFFSET -> int
The xOffset is the horizontal scroll position in pixels of the start of the text view. A value of 0 is the normal position with the first text column visible at the left of the view.

SCI_GETZOOM = 2374

SCI_GETZOOM -> int
These messages let you set and get the zoom factor directly. There is no limit set on the factors you can set, so limiting yourself to -10 to +60 to match the incremental zoom functions is a good idea.

SCI_GOTOLINE = 2024

SCI_GOTOLINE(line line)
This removes any selection and sets the caret at the start of line number line and scrolls the view (if needed) to make it visible. The anchor position is set the same as the current position. If line is outside the lines in the document (first line is 0), the line set is the first or last.

SCI_GOTOPOS = 2025

SCI_GOTOPOS(position caret)
This removes any selection, sets the caret at caret and scrolls the view to make the caret visible, if necessary. It is equivalent to SCI_SETSEL(caret, caret). The anchor position is set the same as the current position.

SCI_GRABFOCUS = 2400
SCI_HIDELINES = 2227

SCI_HIDELINES(line lineStart, line lineEnd)

SCI_HIDESELECTION = 2163

SCI_HIDESELECTION(bool hide)

SCI_HOME = 2312
SCI_HOMEDISPLAY = 2345
SCI_HOMEDISPLAYEXTEND = 2346
SCI_HOMEEXTEND = 2313
SCI_HOMERECTEXTEND = 2430
SCI_HOMEWRAP = 2349
SCI_HOMEWRAPEXTEND = 2450
SCI_INDEXPOSITIONFROMLINE = 2714

SCI_INDEXPOSITIONFROMLINE(line line, int lineCharacterIndex) -> position
The document line of a particular character or code unit may be found by calling SCI_LINEFROMINDEXPOSITION with one of SC_LINECHARACTERINDEX_UTF32 (1) or SC_LINECHARACTERINDEX_UTF16 (2). The inverse action, finds the starting position of a document line either in characters or code units from the document start by calling SCI_INDEXPOSITIONFROMLINE with the same lineCharacterIndex argument.

SCI_INDICATORALLONFOR = 2506

SCI_INDICATORALLONFOR(position pos) -> int
Retrieve a bitmap value representing which indicators are non-zero at a position. Only the first 32 indicators are represented in the result so no IME indicators are included.

SCI_INDICATORCLEARRANGE = 2505

SCI_INDICATORCLEARRANGE(position start, position lengthClear)
These two messages fill or clear a range for the current indicator. SCI_INDICATORFILLRANGE fills with the current value.

SCI_INDICATOREND = 2509

SCI_INDICATOREND(int indicator, position pos) -> position
Find the start or end of a range with one value from a position within the range. Can be used to iterate through the document to discover all the indicator positions.

SCI_INDICATORFILLRANGE = 2504

SCI_INDICATORFILLRANGE(position start, position lengthFill)

SCI_INDICATORSTART = 2508

SCI_INDICATORSTART(int indicator, position pos) -> position

SCI_INDICATORVALUEAT = 2507

SCI_INDICATORVALUEAT(int indicator, position pos) -> int
Retrieve the value of a particular indicator at a position.

SCI_INDICGETALPHA = 2524

SCI_INDICGETALPHA(int indicator) -> int
These two messages set and get the alpha transparency used for drawing the fill colour of the INDIC_ROUNDBOX and INDIC_STRAIGHTBOX rectangle. The alpha value can range from 0 (completely transparent) to 255 (no transparency).

SCI_INDICGETFLAGS = 2685

SCI_INDICGETFLAGS(int indicator) -> int
These messages set and get the flags associated with an indicator. There is currently one flag defined, SC_INDICFLAG_VALUEFORE: when this flag is set the colour used by the indicator is not from the indicator's fore setting but instead from the value of the indicator at that point in the file. SC_INDICFLAG_NONE is the default. This allows many colours to be displayed for a single indicator. The value is an RGB integer colour that has been ored with SC_INDICVALUEBIT (0x1000000) when calling SCI_SETINDICATORVALUE. To find the colour from the value, and the value with SC_INDICVALUEMASK (0xFFFFFF).

SCI_INDICGETFORE = 2083

SCI_INDICGETFORE(int indicator) -> colour
These two messages set and get the colour used to draw an indicator. The default indicator colours are equivalent to: SCI_INDICSETFORE(0, 0x007f00); (dark green) SCI_INDICSETFORE(1, 0xff0000); (light blue) SCI_INDICSETFORE(2, 0x0000ff); (light red)

SCI_INDICGETHOVERFORE = 2683

SCI_INDICGETHOVERFORE(int indicator) -> colour
These messages set and get the colour and style used to draw indicators when the mouse is over them or the caret moved into them. The mouse cursor also changes when an indicator is drawn in hover style. The default is for the hover appearance to be the same as the normal appearance and calling SCI_INDICSETFORE or SCI_INDICSETSTYLE will also reset the hover attribute.

SCI_INDICGETHOVERSTYLE = 2681

SCI_INDICGETHOVERSTYLE(int indicator) -> int

SCI_INDICGETOUTLINEALPHA = 2559

SCI_INDICGETOUTLINEALPHA(int indicator) -> int
These two messages set and get the alpha transparency used for drawing the outline colour of the INDIC_ROUNDBOX and INDIC_STRAIGHTBOX rectangle. The alpha value can range from 0 (completely transparent) to 255 (no transparency).

SCI_INDICGETSTROKEWIDTH = 2752

SCI_INDICGETSTROKEWIDTH(int indicator) -> int
These two messages set and get the stroke width used to draw an indicator in hundredths of a pixel. The default value is 100 indicating a width of one pixel. Some indicator styles do not support setting stroke width, generally where it makes no sense( INDIC_POINT) or wasn't simple( INDIC_SQUIGGLEPIXMAP ). The indicators supporting stroke width are: INDIC_PLAIN, INDIC_SQUIGGLE, INDIC_TT, INDIC_DIAGONAL , INDIC_STRIKE, INDIC_BOX, INDIC_ROUNDBOX, INDIC_STRAIGHTBOX, INDIC_FULLBOX, INDIC_DASH , INDIC_DOTS, INDIC_SQUIGGLELOW .

SCI_INDICGETSTYLE = 2081

SCI_INDICGETSTYLE(int indicator) -> int
These two messages set and get the style for a particular indicator. The indicator styles currently available are:

SCI_INDICGETUNDER = 2511

SCI_INDICGETUNDER(int indicator) -> bool
These two messages set and get whether an indicator is drawn under text or over(default). Drawing under text does not work with the deprecated single phase drawing mode.

SCI_INDICSETALPHA = 2523

SCI_INDICSETALPHA(int indicator, alpha alpha)

SCI_INDICSETFLAGS = 2684

SCI_INDICSETFLAGS(int indicator, int flags)

SCI_INDICSETFORE = 2082

SCI_INDICSETFORE(int indicator, colour fore)

SCI_INDICSETHOVERFORE = 2682

SCI_INDICSETHOVERFORE(int indicator, colour fore)

SCI_INDICSETHOVERSTYLE = 2680

SCI_INDICSETHOVERSTYLE(int indicator, int indicatorStyle)

SCI_INDICSETOUTLINEALPHA = 2558

SCI_INDICSETOUTLINEALPHA(int indicator, alpha alpha)

SCI_INDICSETSTROKEWIDTH = 2751

SCI_INDICSETSTROKEWIDTH(int indicator, int hundredths)

SCI_INDICSETSTYLE = 2080

SCI_INDICSETSTYLE(int indicator, int indicatorStyle)

SCI_INDICSETUNDER = 2510

SCI_INDICSETUNDER(int indicator, bool under)

SCI_INSERTTEXT = 2003

SCI_INSERTTEXT(position pos, const char *text)
This inserts the zero terminated text string at position pos or at the current position if pos is -1. If the current position is after the insertion point then it is moved along with its surrounding text but no scrolling is performed.

SCI_ISRANGEWORD = 2691

SCI_ISRANGEWORD(position start, position end) -> bool
Is the range start..end a word or set of words? This message checks that start is at a word start transition and that end is at a word end transition. It does not check whether there are any spaces inside the range.

SCI_LEXER_START = 4000
SCI_LINECOPY = 2455
SCI_LINECUT = 2337
SCI_LINEDEDENT = 2814
SCI_LINEDELETE = 2338
SCI_LINEDOWN = 2300
SCI_LINEDOWNEXTEND = 2301
SCI_LINEDOWNRECTEXTEND = 2426
SCI_LINEDUPLICATE = 2404
SCI_LINEEND = 2314
SCI_LINEENDDISPLAY = 2347
SCI_LINEENDDISPLAYEXTEND = 2348
SCI_LINEENDEXTEND = 2315
SCI_LINEENDRECTEXTEND = 2432
SCI_LINEENDWRAP = 2451
SCI_LINEENDWRAPEXTEND = 2452
SCI_LINEFROMINDEXPOSITION = 2713

SCI_LINEFROMINDEXPOSITION(position pos, int lineCharacterIndex) -> line

SCI_LINEFROMPOSITION = 2166

SCI_LINEFROMPOSITION(position pos) -> line
This message returns the line that contains the position pos in the document. The return value is 0 if pos <= 0. The return value is the last line if pos is beyond the end of the document.

SCI_LINEINDENT = 2813
SCI_LINELENGTH = 2350

SCI_LINELENGTH(line line) -> position
This returns the length of the line, including any line end characters. If line is negative or beyond the last line in the document, the result is 0. If you want the length of the line not including any end of line characters, use SCI_GETLINEENDPOSITION(line)- SCI_POSITIONFROMLINE(line) .

SCI_LINEREVERSE = 2354
SCI_LINESCROLL = 2168

SCI_LINESCROLL(position columns, line lines)
This will attempt to scroll the display by the number of columns and lines that you specify. Positive line values increase the line number at the top of the screen (i.e. they move the text upwards as far as the user is concerned), Negative line values do the reverse.

SCI_LINESCROLLDOWN = 2342
SCI_LINESCROLLUP = 2343
SCI_LINESJOIN = 2288
SCI_LINESONSCREEN = 2370

SCI_LINESONSCREEN -> line
This returns the number of complete lines visible on the screen. With a constant line height, this is the vertical space available divided by the line separation. Unless you arrange to size your window to an integral number of lines, there may be a partial line visible at the bottom of the view.

SCI_LINESSPLIT = 2289

SCI_LINESSPLIT(int pixelWidth)
Split a range of lines indicated by the target into lines that are at most pixelWidth wide. Splitting occurs on word boundaries wherever possible in a similar manner to line wrapping. When pixelWidth is 0 then the width of the window is used.

SCI_LINETRANSPOSE = 2339
SCI_LINEUP = 2302
SCI_LINEUPEXTEND = 2303
SCI_LINEUPRECTEXTEND = 2427
SCI_LOWERCASE = 2340
SCI_MARGINGETSTYLE = 2533

SCI_MARGINGETSTYLE(line line) -> int

SCI_MARGINGETSTYLEOFFSET = 2538

SCI_MARGINGETSTYLEOFFSET -> int
Margin styles may be completely separated from standard text styles by setting a style offset. For example, SCI_MARGINSETSTYLEOFFSET(256) would allow the margin styles to be numbered from 256 up to 511 so they do not overlap styles set by lexers. Each style number set with SCI_MARGINSETSTYLE or SCI_MARGINSETSTYLES has the offset added before looking up the style.

SCI_MARGINGETSTYLES = 2535

SCI_MARGINGETSTYLES(line line, char *styles) -> int

SCI_MARGINGETTEXT = 2531

SCI_MARGINGETTEXT(line line, char *text) -> int

SCI_MARGINSETSTYLE = 2532

SCI_MARGINSETSTYLE(line line, int style)

SCI_MARGINSETSTYLEOFFSET = 2537

SCI_MARGINSETSTYLEOFFSET(int style)

SCI_MARGINSETSTYLES = 2534

SCI_MARGINSETSTYLES(line line, const char *styles)

SCI_MARGINSETTEXT = 2530

SCI_MARGINSETTEXT(line line, const char *text)

SCI_MARGINTEXTCLEARALL = 2536
SCI_MARKERADD = 2043

SCI_MARKERADD(line line, int markerNumber) -> int
This message adds marker number markerNumber to a line. The message returns -1 if this fails (illegal line number, out of memory) or it returns a marker handle number that identifies the added marker. You can use this returned handle with SCI_MARKERLINEFROMHANDLE to find where a marker is after moving or combining lines and with SCI_MARKERDELETEHANDLE to delete the marker based on its handle. The message does not check the value of markerNumber, nor does it check if the line already contains the marker.

SCI_MARKERADDSET = 2466

SCI_MARKERADDSET(line line, int markerSet)
This message can add one or more markers to a line with a single call, specified in the same "one-bit-per-marker" 32-bit integer format returned by SCI_MARKERGET (and used by the mask-based marker search functions SCI_MARKERNEXT and SCI_MARKERPREVIOUS ). As with SCI_MARKERADD, no check is made to see if any of the markers are already present on the targeted line.

SCI_MARKERDEFINE = 2040

SCI_MARKERDEFINE(int markerNumber, int markerSymbol)
This message associates a marker number in the range 0 to 31 with one of the marker symbols or an ASCII character. The general-purpose marker symbols currently available are: SC_MARK_CIRCLE, SC_MARK_ROUNDRECT , SC_MARK_ARROW, SC_MARK_SMALLRECT, SC_MARK_SHORTARROW, SC_MARK_EMPTY , SC_MARK_ARROWDOWN, SC_MARK_MINUS, SC_MARK_PLUS, SC_MARK_ARROWS, SC_MARK_DOTDOTDOT , SC_MARK_BACKGROUND, SC_MARK_LEFTRECT, SC_MARK_FULLRECT, SC_MARK_BOOKMARK , SC_MARK_VERTICALBOOKMARK, SC_MARK_UNDERLINE, and SC_MARK_BAR .

SCI_MARKERDEFINEPIXMAP = 2049

SCI_MARKERDEFINEPIXMAP(int markerNumber, const char *pixmap)
Markers can be set to pixmaps with this message. The XPM format is used for the pixmap. Pixmaps use the SC_MARK_PIXMAP marker symbol.

SCI_MARKERDEFINERGBAIMAGE = 2626

SCI_MARKERDEFINERGBAIMAGE(int markerNumber, const char *pixels)
Markers can be set to translucent pixmaps with this message. The RGBA format is used for the pixmap. The width and height must previously been set with the SCI_RGBAIMAGESETWIDTH and SCI_RGBAIMAGESETHEIGHT messages.

SCI_MARKERDELETE = 2044

SCI_MARKERDELETE(line line, int markerNumber)
This searches the given line number for the given marker number and deletes it if it is present. If you added the same marker more than once to the line, this will delete one copy each time it is used. If you pass in a marker number of -1, all markers are deleted from the line.

SCI_MARKERDELETEALL = 2045

SCI_MARKERDELETEALL(int markerNumber)
This removes markers of the given number from all lines. If markerNumber is -1, it deletes all markers from all lines.

SCI_MARKERDELETEHANDLE = 2018

SCI_MARKERDELETEHANDLE(int markerHandle)
The markerHandle argument is an identifier for a marker returned by SCI_MARKERADD. This function searches the document for the marker with this handle and deletes the marker if it is found.

SCI_MARKERENABLEHIGHLIGHT = 2293

SCI_MARKERENABLEHIGHLIGHT(bool enabled)
This message allows to enable/disable the highlight folding block when it is selected. (i.e. block that contains the caret)

SCI_MARKERGET = 2046

SCI_MARKERGET(line line) -> int
This returns a 32-bit integer that indicates which markers were present on the line. Bit 0 is set if marker 0 is present, bit 1 for marker 1 and so on.

SCI_MARKERGETLAYER = 2734

SCI_MARKERGETLAYER(int markerNumber) -> int

SCI_MARKERHANDLEFROMLINE = 2732

SCI_MARKERHANDLEFROMLINE(line line, int which) -> int

SCI_MARKERLINEFROMHANDLE = 2017

SCI_MARKERLINEFROMHANDLE(int markerHandle) -> line
The markerHandle argument is an identifier for a marker returned by SCI_MARKERADD. This function searches the document for the marker with this handle and returns the line number that contains it or -1 if it is not found.

SCI_MARKERNEXT = 2047

SCI_MARKERNEXT(line lineStart, int markerMask) -> line

SCI_MARKERNUMBERFROMLINE = 2733

SCI_MARKERNUMBERFROMLINE(line line, int which) -> int
These messages returns the Nth marker handle or marker number in a given line. Handles are returned by SCI_MARKERADD. If which is greater or equal to the number of markers on a line, this returns -1;

SCI_MARKERPREVIOUS = 2048

SCI_MARKERPREVIOUS(line lineStart, int markerMask) -> line
These messages search efficiently for lines that include a given set of markers. The search starts at line number lineStart and continues forwards to the end of the file( SCI_MARKERNEXT) or backwards to the start of the file( SCI_MARKERPREVIOUS ). The markerMask argument should have one bit set for each marker you wish to find. Set bit 0 to find marker 0, bit 1 for marker 1 and so on. The message returns the line number of the first line that contains one of the markers in markerMask or -1 if no marker is found.

SCI_MARKERSETALPHA = 2476

SCI_MARKERSETALPHA(int markerNumber, alpha alpha)
When markers are drawn in the content area, either because there is no margin for them or they are of SC_MARK_BACKGROUND or SC_MARK_UNDERLINE types, they may be drawn translucently over text or opaquely on the base layer. The layer to draw on is defined by SCI_MARKERSETLAYER. The degree of translucency can be chosen by setting an alpha value. This is only for the content area- in margins, translucency is achieved through the SCI_MARKERSET…TRANSLUCENT methods. The layer argument can be one of:

SCI_MARKERSETBACK = 2042

SCI_MARKERSETBACK(int markerNumber, colour back)

SCI_MARKERSETBACKSELECTED = 2292

SCI_MARKERSETBACKSELECTED(int markerNumber, colour back)

SCI_MARKERSETBACKSELECTEDTRANSLUCENT = 2296

SCI_MARKERSETBACKSELECTEDTRANSLUCENT(int markerNumber, colouralpha back)
This message sets the highlight background colour of a marker number when its folding block is selected. The default colour is #FF0000.

SCI_MARKERSETBACKTRANSLUCENT = 2295

SCI_MARKERSETBACKTRANSLUCENT(int markerNumber, colouralpha back)
These messages set the foreground and background colour of a marker number. The TRANSLUCENT variants can define different degrees of opacity.

SCI_MARKERSETFORE = 2041

SCI_MARKERSETFORE(int markerNumber, colour fore)

SCI_MARKERSETFORETRANSLUCENT = 2294

SCI_MARKERSETFORETRANSLUCENT(int markerNumber, colouralpha fore)

SCI_MARKERSETLAYER = 2735

SCI_MARKERSETLAYER(int markerNumber, int layer)

SCI_MARKERSETSTROKEWIDTH = 2297

SCI_MARKERSETSTROKEWIDTH(int markerNumber, int hundredths)
This message sets the stroke width used to draw the marker in hundredths of a pixel. The default value is 100 indicating a single pixel wide line.

SCI_MARKERSYMBOLDEFINED = 2529

SCI_MARKERSYMBOLDEFINED(int markerNumber) -> int
Returns the symbol defined for a markerNumber with SCI_MARKERDEFINE or SC_MARK_PIXMAP if defined with SCI_MARKERDEFINEPIXMAP or SC_MARK_RGBAIMAGE if defined with SCI_MARKERDEFINERGBAIMAGE .

SCI_MOVECARETINSIDEVIEW = 2401
SCI_MOVESELECTEDLINESDOWN = 2621
SCI_MOVESELECTEDLINESUP = 2620
SCI_MULTIEDGEADDLINE = 2694

SCI_MULTIEDGEADDLINE(position column, colour edgeColour)

SCI_MULTIEDGECLEARALL = 2695
SCI_MULTIPLESELECTADDEACH = 2689
SCI_MULTIPLESELECTADDNEXT = 2688
SCI_NAMEOFSTYLE = 4030

SCI_NAMEOFSTYLE(int style, char *name NUL-terminated) -> int
Retrieve the name of a style. This is a C preprocessor symbol like "SCE_C_COMMENTDOC".

SCI_NEWLINE = 2329
SCI_NULL = 2172
SCI_OPTIONAL_START = 3000
SCI_PAGEDOWN = 2322
SCI_PAGEDOWNEXTEND = 2323
SCI_PAGEDOWNRECTEXTEND = 2434
SCI_PAGEUP = 2320
SCI_PAGEUPEXTEND = 2321
SCI_PAGEUPRECTEXTEND = 2433
SCI_PARADOWN = 2413
SCI_PARADOWNEXTEND = 2414
SCI_PARAUP = 2415
SCI_PARAUPEXTEND = 2416
SCI_PASTE = 2179
SCI_POINTXFROMPOSITION = 2164

SCI_POINTXFROMPOSITION(<unused>, position pos) -> int

SCI_POINTYFROMPOSITION = 2165

SCI_POINTYFROMPOSITION(<unused>, position pos) -> int
These messages return the x and y display pixel location of text at position pos in the document.

SCI_POSITIONAFTER = 2418

SCI_POSITIONAFTER(position pos) -> position
These messages return the position before and after another position in the document taking into account the current code page. The minimum position returned is 0 and the maximum is the last position in the document. If called with a position within a multi byte character will return the position of the start/end of that character.

SCI_POSITIONBEFORE = 2417

SCI_POSITIONBEFORE(position pos) -> position

SCI_POSITIONFROMLINE = 2167

SCI_POSITIONFROMLINE(line line) -> position
This returns the document position that corresponds with the start of the line. If line is negative, the position of the line holding the start of the selection is returned. If line is greater than the lines in the document, the return value is -1. If line is equal to the number of lines in the document (i.e. 1 line past the last line), the return value is the end of the document.

SCI_POSITIONFROMPOINT = 2022

SCI_POSITIONFROMPOINT(int x, int y) -> position

SCI_POSITIONFROMPOINTCLOSE = 2023

SCI_POSITIONFROMPOINTCLOSE(int x, int y) -> position
SCI_POSITIONFROMPOINT finds the closest character position to a point and SCI_POSITIONFROMPOINTCLOSE is similar but returns -1 if the point is outside the window or not close to any characters.

SCI_POSITIONRELATIVE = 2670

SCI_POSITIONRELATIVE(position pos, position relative) -> position
Count a number of whole characters before or after the argument position and return that position. The minimum position returned is 0 and the maximum is the last position in the document. If the position goes past the document end then 0 is returned.

SCI_POSITIONRELATIVECODEUNITS = 2716

SCI_POSITIONRELATIVECODEUNITS(position pos, position relative) -> position

SCI_PRIVATELEXERCALL = 4013

SCI_PRIVATELEXERCALL(int operation, pointer pointer) -> pointer
Call into a lexer in a way not understood by Scintilla.

SCI_PROPERTYNAMES = 4014

SCI_PROPERTYNAMES(<unused>, char *names NUL-terminated) -> int

SCI_PROPERTYTYPE = 4015

SCI_PROPERTYTYPE(const char *name) -> int

SCI_PUSHUNDOACTIONTYPE = 2800
SCI_REDO = 2011
SCI_REGISTERIMAGE = 2405

SCI_REGISTERIMAGE(int type, const char *xpmData)

SCI_REGISTERRGBAIMAGE = 2627

SCI_REGISTERRGBAIMAGE(int type, const char *pixels)

SCI_RELEASEALLEXTENDEDSTYLES = 2552
SCI_RELEASEDOCUMENT = 2377

SCI_RELEASEDOCUMENT(<unused>, pointer doc)
This message reduces the reference count of the document identified by doc. doc must be the result of SCI_GETDOCPOINTER or SCI_CREATEDOCUMENT and must point at a document that still exists. If you call this on a document with a reference count of 1 that is still attached to a Scintilla window, bad things will happen. To keep the world spinning in its orbit you must balance each call to SCI_CREATEDOCUMENT or SCI_ADDREFDOCUMENT with a call to SCI_RELEASEDOCUMENT .

SCI_RELEASELINECHARACTERINDEX = 2712

SCI_RELEASELINECHARACTERINDEX(int lineCharacterIndex)
Allocate or release one or more indexes using same enumeration as SCI_GETLINECHARACTERINDEX. Different aspects of an application may need indexes for different periods and should allocate for those periods. Indexes use additional memory so releasing them can help minimize memory but they also take time to recalculate. Scintilla may also allocate indexes to support features like accessibility or input method editors. Only one index of each type is created for a document at a time.

SCI_REPLACERECTANGULAR = 2771

SCI_REPLACERECTANGULAR(position length, const char *text)
Replaces the selected text or empty selection with the given text. The insertion is performed similarly to rectangular pastes: new lines in the given text are interpreted as moving to the next line without inserting new lines unless at the end of the document.

SCI_REPLACESEL = 2170

SCI_REPLACESEL(<unused>, const char *text)
The currently selected text between the anchor and the current position is replaced by the 0 terminated text string. If the anchor and current position are the same, the text is inserted at the caret position. The caret is positioned after the inserted text and the caret is scrolled into view.

SCI_REPLACETARGET = 2194

SCI_REPLACETARGET(position length, const char *text) -> position
If length is -1, text is a zero terminated string, otherwise length sets the number of character to replace the target with. After replacement, the target range refers to the replacement text. The return value is the length of the replacement string. Note that the recommended way to delete text in the document is to set the target to the text to be removed, and to perform a replace target with an empty string.

SCI_REPLACETARGETMINIMAL = 2779

SCI_REPLACETARGETMINIMAL(position length, const char *text) -> position
This is similar to SCI_REPLACETARGET but tries to minimize change history when the current target text shares a common prefix or suffix with the replacement. Only the text that is actually different is marked as changed. This might be used when automatically reformatting some text so that the whole area formatted doesn't show change marks. If length is -1, text is a zero terminated string, otherwise length sets the number of character to replace the target with. After replacement, the target range refers to the replacement text. The return value is the length of the replacement string. Note that the recommended way to delete text in the document is to set the target to the text to be removed, and to perform a replace target with an empty string.

SCI_REPLACETARGETRE = 2195

SCI_REPLACETARGETRE(position length, const char *text) -> position
This replaces the target using regular expressions. If length is -1, text is a zero terminated string, otherwise length is the number of characters to use. The replacement string is formed from the text string with any sequences of \1 through \9 replaced by tagged matches from the most recent regular expression search. \0 is replaced with all the matched text from the most recent search. After replacement, the target range refers to the replacement text. The return value is the length of the replacement string.

SCI_RESETELEMENTCOLOUR = 2755

SCI_RESETELEMENTCOLOUR(int element)
This removes the element colour returning to the default colour or set of colours.

SCI_RGBAIMAGESETHEIGHT = 2625

SCI_RGBAIMAGESETHEIGHT(int height)

SCI_RGBAIMAGESETSCALE = 2651

SCI_RGBAIMAGESETSCALE(int scalePercent)

SCI_RGBAIMAGESETWIDTH = 2624

SCI_RGBAIMAGESETWIDTH(int width)

SCI_ROTATESELECTION = 2606
SCI_SCROLLCARET = 2169
SCI_SCROLLRANGE = 2569

SCI_SCROLLRANGE(position secondary, position primary)
Scroll the argument positions and the range between them into view giving priority to the primary position then the secondary position. The behaviour is similar to SCI_SCROLLCARET with the primary position used instead of the caret. An effort is then made to ensure that the secondary position and range between are also visible. This may be used to make a search match visible.

SCI_SCROLLTOEND = 2629
SCI_SCROLLTOSTART = 2628
SCI_SEARCHANCHOR = 2366
SCI_SEARCHINTARGET = 2197

SCI_SEARCHINTARGET(position length, const char *text) -> position
This searches for the first occurrence of a text string in the target defined by SCI_SETTARGETSTART and SCI_SETTARGETEND. The text string is not zero terminated; the size is set by length. The search is modified by the search flags set by SCI_SETSEARCHFLAGS. If the search succeeds, the target is set to the found text and the return value is the position of the start of the matching text. If the search fails, the result is -1.

SCI_SEARCHNEXT = 2367

SCI_SEARCHNEXT(int searchFlags, const char *text) -> position

SCI_SEARCHPREV = 2368

SCI_SEARCHPREV(int searchFlags, const char *text) -> position
These messages provide relocatable search support. This allows multiple incremental interactive searches to be macro recorded while still setting the selection to found text so the find/select operation is self-contained. These three messages send SCN_MACRORECORD notifications if macro recording is enabled.

SCI_SELECTALL = 2013
SCI_SELECTIONDUPLICATE = 2469
SCI_SELECTIONFROMPOINT = 2474

SCI_SELECTIONFROMPOINT(int x, int y) -> int
Return the index of the selection at the point. If there is no selection at the point, return -1. This can be used to drop a selection or make it the main selection.

SCI_SELECTIONISRECTANGLE = 2372

SCI_SELECTIONISRECTANGLE -> bool
This returns 1 if the current selection is in rectangle mode, 0 if not.

SCI_SETACCESSIBILITY = 2702

SCI_SETACCESSIBILITY(int accessibility)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETADDITIONALCARETFORE = 2604

SCI_SETADDITIONALCARETFORE( colour fore)

SCI_SETADDITIONALCARETSBLINK(bool additionalCaretsBlink)

SCI_SETADDITIONALCARETSVISIBLE = 2608

SCI_SETADDITIONALCARETSVISIBLE(bool additionalCaretsVisible)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETADDITIONALSELALPHA = 2602

SCI_SETADDITIONALSELALPHA( alpha alpha)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETADDITIONALSELBACK = 2601

SCI_SETADDITIONALSELBACK( colour back)
Modify the appearance of additional selections so that they can be differentiated from the main selection which has its appearance set with SC_ELEMENT_SELECTION_TEXT, SC_ELEMENT_SELECTION_BACK, SCI_SETSELALPHA , SCI_GETSELALPHA, SCI_SETSELFORE, and SCI_SETSELBACK. The element APIs are preferred and the following messages discouraged. The additional selection background is drawn on the layer defined for all selection backgrounds by SCI_SETSELECTIONLAYER. SCI_SETADDITIONALSELFORE and SCI_SETADDITIONALSELBACK calls have no effect until SCI_SETSELFORE and SCI_SETSELBACK are called with useSetting value set to true. Subsequent calls to SCI_SETSELFORE, and SCI_SETSELBACK will overwrite the values set by SCI_SETADDITIONALSEL* functions.

SCI_SETADDITIONALSELECTIONTYPING = 2565

SCI_SETADDITIONALSELECTIONTYPING(bool additionalSelectionTyping)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETADDITIONALSELFORE = 2600

SCI_SETADDITIONALSELFORE( colour fore)

SCI_SETANCHOR = 2026

SCI_SETANCHOR(position anchor)
This sets the anchor position and creates a selection between the anchor position and the current position. The caret is not scrolled into view.

SCI_SETAUTOMATICFOLD = 2663

SCI_SETAUTOMATICFOLD(int automaticFold)

SCI_SETBACKSPACEUNINDENTS = 2262

SCI_SETBACKSPACEUNINDENTS(bool bsUnIndents)

SCI_SETBUFFEREDDRAW = 2035

SCI_SETBUFFEREDDRAW(bool buffered)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETCARETFORE = 2069

SCI_SETCARETFORE( colour fore)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETCARETLINEBACK = 2098

SCI_SETCARETLINEBACK( colour back)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETCARETLINEBACKALPHA = 2470

SCI_SETCARETLINEBACKALPHA( alpha alpha)

SCI_SETCARETLINEFRAME = 2705

SCI_SETCARETLINEFRAME(int width)

SCI_SETCARETLINEHIGHLIGHTSUBLINE = 2774

SCI_SETCARETLINEHIGHLIGHTSUBLINE(bool subLine)

SCI_SETCARETLINELAYER = 2765

SCI_SETCARETLINELAYER(int layer)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETCARETLINEVISIBLE = 2096

SCI_SETCARETLINEVISIBLE(bool show)

SCI_SETCARETLINEVISIBLEALWAYS = 2655

SCI_SETCARETLINEVISIBLEALWAYS(bool alwaysVisible)

SCI_SETCARETPERIOD = 2076

SCI_SETCARETPERIOD(int periodMilliseconds)

SCI_SETCARETSTICKY = 2458

SCI_SETCARETSTICKY(int useCaretStickyBehaviour)

SCI_SETCARETSTYLE = 2512

SCI_SETCARETSTYLE(int caretStyle)

SCI_SETCARETWIDTH = 2188

SCI_SETCARETWIDTH(int pixelWidth)

SCI_SETCHANGEHISTORY = 2780

SCI_SETCHANGEHISTORY(int changeHistory)

SCI_SETCHARACTERCATEGORYOPTIMIZATION = 2720

SCI_SETCHARACTERCATEGORYOPTIMIZATION(int countCharacters)

SCI_SETCHARSDEFAULT = 2444
SCI_SETCODEPAGE = 2037

SCI_SETCODEPAGE(int codePage)

SCI_SETCOMMANDEVENTS = 2717

SCI_SETCOMMANDEVENTS(bool commandEvents)

SCI_SETCONTROLCHARSYMBOL = 2388

SCI_SETCONTROLCHARSYMBOL(int symbol)

SCI_SETCOPYSEPARATOR = 2811

SCI_SETCOPYSEPARATOR(<unused>, const char *separator)

SCI_SETCURRENTPOS = 2141

SCI_SETCURRENTPOS(position caret)
This sets the current position and creates a selection between the anchor and the current position. The caret is not scrolled into view.

SCI_SETCURSOR = 2386

SCI_SETCURSOR(int cursorType)

SCI_SETDEFAULTFOLDDISPLAYTEXT = 2722

SCI_SETDEFAULTFOLDDISPLAYTEXT(<unused>, const char *text)

SCI_SETDOCPOINTER = 2358

SCI_SETDOCPOINTER(<unused>, pointer doc)
This message does the following: 1. It removes the current window from the list held by the current document. 2. It reduces the reference count of the current document by 1. 3. If the reference count reaches 0, the document is deleted. 4. doc is set as the new document for the window. 5. If doc was 0, a new, empty document is created and attached to the window. 6. If doc was not 0, its reference count is increased by 1.

SCI_SETEDGECOLOUR = 2365

SCI_SETEDGECOLOUR( colour edgeColour)

SCI_SETEDGECOLUMN = 2361

SCI_SETEDGECOLUMN(position column)

SCI_SETEDGEMODE = 2363

SCI_SETEDGEMODE(int edgeMode)

SCI_SETELEMENTCOLOUR = 2753

SCI_SETELEMENTCOLOUR(int element, colouralpha colourElement)

SCI_SETEMPTYSELECTION = 2556

SCI_SETEMPTYSELECTION(position caret)
This removes any selection and sets the caret at caret. The caret is not scrolled into view.

SCI_SETENDATLASTLINE = 2277

SCI_SETENDATLASTLINE(bool endAtLastLine)

SCI_SETEOLMODE = 2031

SCI_SETEOLMODE(int eolMode)

SCI_SETEXTRAASCENT = 2525

SCI_SETEXTRAASCENT(int extraAscent)

SCI_SETEXTRADESCENT = 2527

SCI_SETEXTRADESCENT(int extraDescent)

SCI_SETFIRSTVISIBLELINE = 2613

SCI_SETFIRSTVISIBLELINE(line displayLine)

SCI_SETFOCUS = 2380

SCI_SETFOCUS(bool focus)

SCI_SETFOLDEXPANDED = 2229

SCI_SETFOLDEXPANDED(line line, bool expanded)

SCI_SETFOLDFLAGS = 2233

SCI_SETFOLDFLAGS(int flags)

SCI_SETFOLDLEVEL = 2222

SCI_SETFOLDLEVEL(line line, int level)

SCI_SETFOLDMARGINCOLOUR = 2290

SCI_SETFOLDMARGINCOLOUR(bool useSetting, colour back)

SCI_SETFOLDMARGINHICOLOUR = 2291

SCI_SETFOLDMARGINHICOLOUR(bool useSetting, colour fore)
These messages allow changing the colour of the fold margin and fold margin highlight. On Windows the fold margin colour defaults to ::GetSysColor(COLOR_3DFACE) and the fold margin highlight colour to ::GetSysColor(COLOR_3DHIGHLIGHT).

SCI_SETFONTLOCALE = 2760

SCI_SETFONTLOCALE(<unused>, const char *localeName)

SCI_SETFONTQUALITY = 2611

SCI_SETFONTQUALITY(int fontQuality)

SCI_SETHIGHLIGHTGUIDE = 2134

SCI_SETHIGHLIGHTGUIDE(position column)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETHOTSPOTACTIVEBACK = 2411

SCI_SETHOTSPOTACTIVEBACK(bool useSetting, colour back)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETHOTSPOTACTIVEFORE = 2410

SCI_SETHOTSPOTACTIVEFORE(bool useSetting, colour fore)

SCI_SETHOTSPOTACTIVEUNDERLINE = 2412

SCI_SETHOTSPOTACTIVEUNDERLINE(bool underline)

SCI_SETHOTSPOTSINGLELINE = 2421

SCI_SETHOTSPOTSINGLELINE(bool singleLine)

SCI_SETHSCROLLBAR = 2130

SCI_SETHSCROLLBAR(bool visible)

SCI_SETIDENTIFIER = 2622

SCI_SETIDENTIFIER(int identifier)

SCI_SETIDENTIFIERS = 4024

SCI_SETIDENTIFIERS(int style, const char *identifiers)
Similar to SCI_SETKEYWORDS but for substyles. The prefix feature available with SCI_SETKEYWORDS is not implemented for SCI_SETIDENTIFIERS .

SCI_SETIDLESTYLING = 2692

SCI_SETIDLESTYLING(int idleStyling)

SCI_SETILEXER = 4033

SCI_SETILEXER(<unused>, pointer ilexer)
SCI_SETILEXER allows setting a lexer as an ILexer5*. The lexer may be implemented by an application or a shared library such as Lexilla.

SCI_SETIMEINTERACTION = 2679

SCI_SETIMEINTERACTION(int imeInteraction)

SCI_SETINDENT = 2122

SCI_SETINDENT(int indentSize)

SCI_SETINDENTATIONGUIDES = 2132

SCI_SETINDENTATIONGUIDES(int indentView)

SCI_SETINDICATORCURRENT = 2500

SCI_SETINDICATORCURRENT(int indicator)

SCI_SETINDICATORVALUE = 2502

SCI_SETINDICATORVALUE(int value)

SCI_SETKEYWORDS = 4005

SCI_SETKEYWORDS(int keyWordSet, const char *keyWords)
You can set up to 9 lists of keywords for use by the current lexer. keyWordSet can be 0 to 8 (actually 0 to KEYWORDSET_MAX) and selects which keyword list to replace. keyWords is a list of keywords separated by spaces, tabs, "\n" or "\r" or any combination of these. It is expected that the keywords will be composed of standard ASCII printing characters, but there is nothing to stop you using any non-separator character codes from 1 to 255 (except common sense).

SCI_SETLAYOUTCACHE = 2272

SCI_SETLAYOUTCACHE(int cacheMode)

SCI_SETLAYOUTTHREADS = 2775

SCI_SETLAYOUTTHREADS(int threads)

SCI_SETLENGTHFORENCODE = 2448

SCI_SETLENGTHFORENCODE(position bytes)
SCI_ENCODEDFROMUTF8 converts a UTF-8 string into the document's encoding which is useful for taking the results of a find dialog, for example, and receiving a string of bytes that can be searched for in the document. Since the text can contain nul bytes, the SCI_SETLENGTHFORENCODE method can be used to set the length that will be converted. If set to -1, the length is determined by finding a nul byte. The length of the converted string is returned.

SCI_SETLINEENDTYPESALLOWED = 2656

SCI_SETLINEENDTYPESALLOWED(int lineEndBitSet)

SCI_SETLINEINDENTATION = 2126

SCI_SETLINEINDENTATION(line line, int indentation)

SCI_SETLINESTATE = 2092

SCI_SETLINESTATE(line line, int state)

SCI_SETMAINSELECTION = 2574

SCI_SETMAINSELECTION(int selection)

SCI_SETMARGINBACKN = 2250

SCI_SETMARGINBACKN(int margin, colour back)

SCI_SETMARGINCURSORN = 2248

SCI_SETMARGINCURSORN(int margin, int cursor)

SCI_SETMARGINLEFT = 2155

SCI_SETMARGINLEFT(<unused>, int pixelWidth)

SCI_SETMARGINMASKN = 2244

SCI_SETMARGINMASKN(int margin, int mask)

SCI_SETMARGINOPTIONS = 2539

SCI_SETMARGINOPTIONS(int marginOptions)

SCI_SETMARGINRIGHT = 2157

SCI_SETMARGINRIGHT(<unused>, int pixelWidth)

SCI_SETMARGINS = 2252

SCI_SETMARGINS(int margins)

SCI_SETMARGINSENSITIVEN = 2246

SCI_SETMARGINSENSITIVEN(int margin, bool sensitive)

SCI_SETMARGINTYPEN = 2240

SCI_SETMARGINTYPEN(int margin, int marginType)

SCI_SETMARGINWIDTHN = 2242

SCI_SETMARGINWIDTHN(int margin, int pixelWidth)

SCI_SETMODEVENTMASK = 2359

SCI_SETMODEVENTMASK(int eventMask)

SCI_SETMOUSEDOWNCAPTURES = 2384

SCI_SETMOUSEDOWNCAPTURES(bool captures)

SCI_SETMOUSEDWELLTIME = 2264

SCI_SETMOUSEDWELLTIME(int periodMilliseconds)

SCI_SETMOUSESELECTIONRECTANGULARSWITCH = 2668

SCI_SETMOUSESELECTIONRECTANGULARSWITCH(bool mouseSelectionRectangularSwitch)

SCI_SETMOUSEWHEELCAPTURES = 2696

SCI_SETMOUSEWHEELCAPTURES(bool captures)

SCI_SETMOVEEXTENDSSELECTION = 2719

SCI_SETMOVEEXTENDSSELECTION(bool moveExtendsSelection)

SCI_SETMULTIPASTE = 2614

SCI_SETMULTIPASTE(int multiPaste)

SCI_SETMULTIPLESELECTION = 2563

SCI_SETMULTIPLESELECTION(bool multipleSelection)

SCI_SETOVERTYPE = 2186

SCI_SETOVERTYPE(bool overType)

SCI_SETPASTECONVERTENDINGS = 2467

SCI_SETPASTECONVERTENDINGS(bool convert)

SCI_SETPHASESDRAW = 2674

SCI_SETPHASESDRAW(int phases)

SCI_SETPOSITIONCACHE = 2514

SCI_SETPOSITIONCACHE(int size)

SCI_SETPRINTCOLOURMODE = 2148

SCI_SETPRINTCOLOURMODE(int mode)

SCI_SETPRINTMAGNIFICATION = 2146

SCI_SETPRINTMAGNIFICATION(int magnification)

SCI_SETPRINTWRAPMODE = 2406

SCI_SETPRINTWRAPMODE(int wrapMode)

SCI_SETPROPERTY = 4004

SCI_SETPROPERTY(const char *key, const char *value)
You can communicate settings to lexers with keyword:value string pairs. There is no limit to the number of keyword pairs you can set, other than available memory. key is a case sensitive keyword, value is a string that is associated with the keyword. If there is already a value string associated with the keyword, it is replaced. If you pass a zero length string, the message does nothing. Both key and value are used without modification; extra spaces at the beginning or end of key are significant.

SCI_SETPUNCTUATIONCHARS = 2648

SCI_SETPUNCTUATIONCHARS(<unused>, const char *characters)

SCI_SETREADONLY = 2171

SCI_SETREADONLY(bool readOnly)

SCI_SETRECTANGULARSELECTIONANCHOR = 2590

SCI_SETRECTANGULARSELECTIONANCHOR(position anchor)

SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2594

SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE(position space)

SCI_SETRECTANGULARSELECTIONCARET = 2588

SCI_SETRECTANGULARSELECTIONCARET(position caret)

SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2592

SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE(position space)

SCI_SETRECTANGULARSELECTIONMODIFIER = 2598

SCI_SETRECTANGULARSELECTIONMODIFIER(int modifier)

SCI_SETREPRESENTATION = 2665

SCI_SETREPRESENTATION(const char *encodedCharacter, const char *representation)

SCI_SETREPRESENTATIONAPPEARANCE = 2766

SCI_SETREPRESENTATIONAPPEARANCE(const char *encodedCharacter, int appearance)

SCI_SETREPRESENTATIONCOLOUR = 2768

SCI_SETREPRESENTATIONCOLOUR(const char *encodedCharacter, colouralpha colour)

SCI_SETSAVEPOINT = 2014
SCI_SETSCROLLWIDTH = 2274

SCI_SETSCROLLWIDTH(int pixelWidth)

SCI_SETSCROLLWIDTHTRACKING = 2516

SCI_SETSCROLLWIDTHTRACKING(bool tracking)

SCI_SETSEARCHFLAGS = 2198

SCI_SETSEARCHFLAGS(int searchFlags)

SCI_SETSEL = 2160

SCI_SETSEL(position anchor, position caret)
This message sets both the anchor and the current position. If caret is negative, it means the end of the document. If anchor is negative, it means remove any selection (i.e. set the anchor to the same position as caret ). The caret is scrolled into view after this operation.

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETSELALPHA = 2478

SCI_SETSELALPHA( alpha alpha)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETSELBACK = 2068

SCI_SETSELBACK(bool useSetting, colour back)
You can choose to override the default selection colouring with these elements and messages. The element APIs are now preferred as they handle translucency+ layering and cooperation with defaults better. With the messages, the colour you provide is used if you set useSetting to true. If it is set to false, the default styled colouring is used and the fore or back argument has no effect.

SCI_SETSELECTION = 2572

SCI_SETSELECTION(position caret, position anchor)
Set a single selection from anchor to caret as the only selection.

SCI_SETSELECTIONEND = 2144

SCI_SETSELECTIONEND(position caret)
These set the selection based on the assumption that the anchor position is less than the current position. They do not make the caret visible. The table shows the positions of the anchor and the current position after using these messages.

SCI_SETSELECTIONLAYER = 2763

SCI_SETSELECTIONLAYER(int layer)

SCI_SETSELECTIONMODE = 2422

SCI_SETSELECTIONMODE(int selectionMode)

SCI_SETSELECTIONNANCHOR = 2578

SCI_SETSELECTIONNANCHOR(int selection, position anchor)

SCI_SETSELECTIONNANCHORVIRTUALSPACE = 2582

SCI_SETSELECTIONNANCHORVIRTUALSPACE(int selection, position space)

SCI_SETSELECTIONNCARET = 2576

SCI_SETSELECTIONNCARET(int selection, position caret)

SCI_SETSELECTIONNCARETVIRTUALSPACE = 2580

SCI_SETSELECTIONNCARETVIRTUALSPACE(int selection, position space)

SCI_SETSELECTIONNEND = 2586

SCI_SETSELECTIONNEND(int selection, position caret)

SCI_SETSELECTIONNSTART = 2584

SCI_SETSELECTIONNSTART(int selection, position anchor)

SCI_SETSELECTIONSERIALIZED = 2784

SCI_SETSELECTIONSERIALIZED(<unused>, const char *selectionString)

SCI_SETSELECTIONSTART = 2142

SCI_SETSELECTIONSTART(position anchor)

SCI_SETSELEOLFILLED = 2480

SCI_SETSELEOLFILLED(bool filled)

[Obsolete("Use the element colours APIs instead: https://www.scintilla.org/ScintillaDoc.html#ElementColours")] SCI_SETSELFORE = 2067

SCI_SETSELFORE(bool useSetting, colour fore)

SCI_SETSTATUS = 2382

SCI_SETSTATUS(int status)

SCI_SETSTYLING = 2033

SCI_SETSTYLING(position length, int style)
This message sets the style of length characters starting at the styling position and then increases the styling position by length, ready for the next call. SCI_STARTSTYLING should be called before the first call to this.

SCI_SETSTYLINGEX = 2073

SCI_SETSTYLINGEX(position length, const char *styles)
As an alternative to SCI_SETSTYLING, which applies the same style to each byte, you can use this message which specifies the styles for each of length bytes from the styling position and then increases the styling position by length, ready for the next call. SCI_STARTSTYLING should be called before the first call to this.

SCI_SETTABDRAWMODE = 2699

SCI_SETTABDRAWMODE(int tabDrawMode)

SCI_SETTABINDENTS = 2260

SCI_SETTABINDENTS(bool tabIndents)

SCI_SETTABMINIMUMWIDTH = 2724

SCI_SETTABMINIMUMWIDTH(int pixels)

SCI_SETTABWIDTH = 2036

SCI_SETTABWIDTH(int tabWidth)

SCI_SETTARGETEND = 2192

SCI_SETTARGETEND(position end)

SCI_SETTARGETENDVIRTUALSPACE = 2730

SCI_SETTARGETENDVIRTUALSPACE(position space)

SCI_SETTARGETRANGE = 2686

SCI_SETTARGETRANGE(position start, position end)
These functions set and return the start and end of the target. When searching you can set start greater than end to find the last matching text in the target rather than the first matching text. Setting a target position with SCI_SETTARGETSTART, SCI_SETTARGETEND, or SCI_SETTARGETRANGE sets the virtual space to 0. The target is also set by a successful SCI_SEARCHINTARGET .

SCI_SETTARGETSTART = 2190

SCI_SETTARGETSTART(position start)

SCI_SETTARGETSTARTVIRTUALSPACE = 2728

SCI_SETTARGETSTARTVIRTUALSPACE(position space)

SCI_SETTECHNOLOGY = 2630

SCI_SETTECHNOLOGY(int technology)

SCI_SETTEXT = 2181

SCI_SETTEXT(<unused>, const char *text)
This replaces all the text in the document with the zero terminated text string you pass in.

SCI_SETUNDOCOLLECTION = 2012

SCI_SETUNDOCOLLECTION(bool collectUndo)

SCI_SETUNDOCURRENT = 2797
SCI_SETUNDODETACH = 2793
SCI_SETUNDOSAVEPOINT = 2791
SCI_SETUNDOSELECTIONHISTORY = 2782

SCI_SETUNDOSELECTIONHISTORY(int undoSelectionHistory)

SCI_SETUNDOTENTATIVE = 2795
SCI_SETUSETABS = 2124

SCI_SETUSETABS(bool useTabs)

SCI_SETVIEWEOL = 2356

SCI_SETVIEWEOL(bool visible)

SCI_SETVIEWWS = 2021

SCI_SETVIEWWS(int viewWS)

SCI_SETVIRTUALSPACEOPTIONS = 2596

SCI_SETVIRTUALSPACEOPTIONS(int virtualSpaceOptions)

SCI_SETVISIBLEPOLICY = 2394

SCI_SETVISIBLEPOLICY(int visiblePolicy, int visibleSlop)
This determines how the vertical positioning is determined when SCI_ENSUREVISIBLEENFORCEPOLICY is called. It takes VISIBLE_SLOP and VISIBLE_STRICT flags for the visiblePolicy parameter. It is similar in operation to SCI_SETYCARETPOLICY(int caretPolicy, int caretSlop) .

SCI_SETVSCROLLBAR = 2280

SCI_SETVSCROLLBAR(bool visible)

SCI_SETWHITESPACEBACK = 2085

SCI_SETWHITESPACEBACK(bool useSetting, colour back)
By default, the colour of visible white space is determined by the lexer in use. The foreground and/or background colour of all visible white space can be set globally, overriding the lexer's colours with SC_ELEMENT_WHITE_SPACE and SC_ELEMENT_WHITE_SPACE_BACK. . SCI_SETWHITESPACEFORE and SCI_SETWHITESPACEBACK also change the white space colours but the element APIs are preferred with SC_ELEMENT_WHITE_SPACE allowing translucency.

SCI_SETWHITESPACECHARS = 2443

SCI_SETWHITESPACECHARS(<unused>, const char *characters)

SCI_SETWHITESPACEFORE = 2084

SCI_SETWHITESPACEFORE(bool useSetting, colour fore)

SCI_SETWHITESPACESIZE = 2086

SCI_SETWHITESPACESIZE(int size)

SCI_SETWORDCHARS = 2077

SCI_SETWORDCHARS(<unused>, const char *characters)
This message defines which characters are members of the word category. The character categories are set to default values before processing this function. For example, if you don't allow '_' in your set of characters use: SCI_SETWORDCHARS(0, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") ;

SCI_SETWRAPINDENTMODE = 2472

SCI_SETWRAPINDENTMODE(int wrapIndentMode)

SCI_SETWRAPMODE = 2268

SCI_SETWRAPMODE(int wrapMode)

SCI_SETWRAPSTARTINDENT = 2464

SCI_SETWRAPSTARTINDENT(int indent)

SCI_SETWRAPVISUALFLAGS = 2460

SCI_SETWRAPVISUALFLAGS(int wrapVisualFlags)

SCI_SETWRAPVISUALFLAGSLOCATION = 2462

SCI_SETWRAPVISUALFLAGSLOCATION(int wrapVisualFlagsLocation)

SCI_SETXCARETPOLICY = 2402

SCI_SETXCARETPOLICY(int caretPolicy, int caretSlop)

SCI_SETXOFFSET = 2397

SCI_SETXOFFSET(int xOffset)

SCI_SETYCARETPOLICY = 2403

SCI_SETYCARETPOLICY(int caretPolicy, int caretSlop)
These set the caret policy. The value of caretPolicy is a combination of CARET_SLOP, CARET_STRICT , CARET_JUMPS and CARET_EVEN .

SCI_SETZOOM = 2373

SCI_SETZOOM(int zoomInPoints)

SCI_SHOWLINES = 2226

SCI_SHOWLINES(line lineStart, line lineEnd)

SCI_START = 2000
SCI_STARTRECORD = 3001
SCI_STARTSTYLING = 2032

SCI_STARTSTYLING(position start, int unused)
This prepares for styling by setting the styling position start to start at. The unused argument was used in earlier versions but is now ignored. After SCI_STARTSTYLING, send multiple SCI_SETSTYLING messages for each lexical entity to style or send SCI_SETSTYLINGEX to style in blocks.

SCI_STOPRECORD = 3002
SCI_STUTTEREDPAGEDOWN = 2437
SCI_STUTTEREDPAGEDOWNEXTEND = 2438
SCI_STUTTEREDPAGEUP = 2435
SCI_STUTTEREDPAGEUPEXTEND = 2436
SCI_STYLECLEARALL = 2050
SCI_STYLEGETBACK = 2482

SCI_STYLEGETBACK(int style) -> colour
Text is drawn in the foreground colour. The space in each character cell that is not occupied by the character is drawn in the background colour.

SCI_STYLEGETBOLD = 2483

SCI_STYLEGETBOLD(int style) -> bool

SCI_STYLEGETCASE = 2489

SCI_STYLEGETCASE(int style) -> int
The value of caseVisible determines how text is displayed. You can set upper case( SC_CASE_UPPER, 1) or lower case( SC_CASE_LOWER, 2) or camel case( SC_CASE_CAMEL, 3) or display normally( SC_CASE_MIXED, 0). This does not change the stored text, only how it is displayed.

SCI_STYLEGETCHANGEABLE = 2492

SCI_STYLEGETCHANGEABLE(int style) -> bool
This is an experimental and incompletely implemented style attribute. The default setting is changeable set true but when set false it makes text read-only. The user can not move the caret within not-changeable text and not- changeable text may not be deleted by the user. The application may delete not-changeable text by calling SCI_DELETERANGE .

SCI_STYLEGETCHARACTERSET = 2490

SCI_STYLEGETCHARACTERSET(int style) -> int
You can set a style to use a different character set than the default. The places where such characters sets are likely to be useful are comments and literal strings. For example, SCI_STYLESETCHARACTERSET(SCE_C_STRING, SC_CHARSET_RUSSIAN) would ensure that strings in Russian would display correctly in C and C++( SCE_C_STRING is the style number used by the C and C++ lexer to display literal strings; it has the value 6). This feature works differently on Windows and GTK. The default character set is SC_CHARSET_DEFAULT .

SCI_STYLEGETCHECKMONOSPACED = 2255

SCI_STYLEGETCHECKMONOSPACED(int style) -> bool
This attribute indicates that the font may be monospaced over the ASCII graphics characters ('' … '~', including letters ('a'…'z', 'A'…'Z') and numbers ('0'…'9')). This allows optimizing speed and memory use for some common scenarios where documents are mostly composed from ASCII characters.

SCI_STYLEGETEOLFILLED = 2487

SCI_STYLEGETEOLFILLED(int style) -> bool
If the last character in the line has a style with this attribute set, the remainder of the line up to the right edge of the window is filled with the background colour set for the last character. This is useful when a document contains embedded sections in another language such as HTML pages with embedded JavaScript. By setting eolFilled to true and a consistent background colour (different from the background colour set for the HTML styles) to all JavaScript styles then JavaScript sections will be easily distinguished from HTML.

SCI_STYLEGETFONT = 2486

SCI_STYLEGETFONT(int style, char *fontName NUL-terminated) -> int

SCI_STYLEGETFORE = 2481

SCI_STYLEGETFORE(int style) -> colour

SCI_STYLEGETHOTSPOT = 2493

SCI_STYLEGETHOTSPOT(int style) -> bool
This style is used to mark ranges of text that can detect mouse clicks. The cursor changes to a hand over hotspots, and the foreground, and background colours may change and an underline appear to indicate that these areas are sensitive to clicking. This may be used to allow hyperlinks to other documents.

SCI_STYLEGETINVISIBLEREPRESENTATION = 2257

SCI_STYLEGETINVISIBLEREPRESENTATION(int style, char *representation NUL-terminated) -> int
When a style is made invisible with SCI_STYLESETVISIBLE, text is difficult to edit as the cursor can be at both sides of the invisible text segment. With these messages invisible text segements can be made visible with a single UTF8 characater giving the user an indication if the cursor is left or right of the invisible text. The character is displayed using the current style.

SCI_STYLEGETITALIC = 2484

SCI_STYLEGETITALIC(int style) -> bool
These messages (plus SCI_STYLESETCHARACTERSET) set the font attributes that are used to match the fonts you request to those available.

SCI_STYLEGETSIZE = 2485

SCI_STYLEGETSIZE(int style) -> int

SCI_STYLEGETSIZEFRACTIONAL = 2062

SCI_STYLEGETSIZEFRACTIONAL(int style) -> int

SCI_STYLEGETSTRETCH = 2259

SCI_STYLEGETSTRETCH(int style) -> int

SCI_STYLEGETUNDERLINE = 2488

SCI_STYLEGETUNDERLINE(int style) -> bool
You can set a style to be underlined. The underline is drawn in the foreground colour. All characters with a style that includes the underline attribute are underlined, even if they are white space.

SCI_STYLEGETVISIBLE = 2491

SCI_STYLEGETVISIBLE(int style) -> bool
Text is normally visible. However, you can completely hide it by giving it a style with the visible set to 0. This could be used to hide embedded formatting instructions or hypertext keywords in HTML or XML. Invisible text may not be deleted by user actions but the application may delete invisible text by calling SCI_DELETERANGE .

SCI_STYLEGETWEIGHT = 2064

SCI_STYLEGETWEIGHT(int style) -> int

SCI_STYLERESETDEFAULT = 2058
SCI_STYLESETBACK = 2052

SCI_STYLESETBACK(int style, colour back)

SCI_STYLESETBOLD = 2053

SCI_STYLESETBOLD(int style, bool bold)

SCI_STYLESETCASE = 2060

SCI_STYLESETCASE(int style, int caseVisible)

SCI_STYLESETCHANGEABLE = 2099

SCI_STYLESETCHANGEABLE(int style, bool changeable)

SCI_STYLESETCHARACTERSET = 2066

SCI_STYLESETCHARACTERSET(int style, int characterSet)

SCI_STYLESETCHECKMONOSPACED = 2254

SCI_STYLESETCHECKMONOSPACED(int style, bool checkMonospaced)

SCI_STYLESETEOLFILLED = 2057

SCI_STYLESETEOLFILLED(int style, bool eolFilled)

SCI_STYLESETFONT = 2056

SCI_STYLESETFONT(int style, const char *fontName)

SCI_STYLESETFORE = 2051

SCI_STYLESETFORE(int style, colour fore)

SCI_STYLESETHOTSPOT = 2409

SCI_STYLESETHOTSPOT(int style, bool hotspot)

SCI_STYLESETINVISIBLEREPRESENTATION = 2256

SCI_STYLESETINVISIBLEREPRESENTATION(int style, const char *representation)

SCI_STYLESETITALIC = 2054

SCI_STYLESETITALIC(int style, bool italic)

SCI_STYLESETSIZE = 2055

SCI_STYLESETSIZE(int style, int sizePoints)

SCI_STYLESETSIZEFRACTIONAL = 2061

SCI_STYLESETSIZEFRACTIONAL(int style, int sizeHundredthPoints)

SCI_STYLESETSTRETCH = 2258

SCI_STYLESETSTRETCH(int style, int stretch)

SCI_STYLESETUNDERLINE = 2059

SCI_STYLESETUNDERLINE(int style, bool underline)

SCI_STYLESETVISIBLE = 2074

SCI_STYLESETVISIBLE(int style, bool visible)

SCI_STYLESETWEIGHT = 2063

SCI_STYLESETWEIGHT(int style, int weight)

SCI_SUPPORTSFEATURE = 2750

SCI_SUPPORTSFEATURE(int feature) -> bool
Different platforms support different features and SCI_SUPPORTSFEATURE can be used to check which are currently available. For example, on Win32, Direct2D supports drawing translucent lines but GDI does not so SCI_SUPPORTSFEATURE(SC_SUPPORTS_TRANSLUCENT_STROKE) will return 1 for Direct2D and 0 for GDI. Its possible that translucent line drawing will be implemented in a future revision to the GDI platform layer or will be implemented on particular Windows versions. This call allows applications to tailor their settings: perhaps displaying a box with translucent coloured fill on Direct2D but a hollow box on GDI.

SCI_SWAPMAINANCHORCARET = 2607
SCI_TAB = 2327
SCI_TAGSOFSTYLE = 4031

SCI_TAGSOFSTYLE(int style, char *tags NUL-terminated) -> int
Retrieve the tags of a style. This is a space-separated set of words like "comment documentation".

SCI_TARGETASUTF8 = 2447

SCI_TARGETASUTF8(<unused>, char *s) -> position
This method retrieves the value of the target encoded as UTF-8 which is the default encoding of GTK so is useful for retrieving text for use in other parts of the user interface, such as find and replace dialogs. The length of the encoded text in bytes is returned. Cocoa uses UTF-16 which is easily converted from UTF-8 so this method can be used to perform the more complex work of transcoding from the various encodings supported.

SCI_TARGETFROMSELECTION = 2287
SCI_TARGETWHOLEDOCUMENT = 2690
SCI_TEXTHEIGHT = 2279

SCI_TEXTHEIGHT(line line) -> int
This returns the height in pixels of a particular line. Currently all lines are the same height.

SCI_TEXTWIDTH = 2276

SCI_TEXTWIDTH(int style, const char *text) -> int
This returns the pixel width of a string drawn in the given style which can be used, for example, to decide how wide to make the line number margin in order to display a given number of numerals.

SCI_TOGGLECARETSTICKY = 2459
SCI_TOGGLEFOLD = 2231

SCI_TOGGLEFOLD(line line)

SCI_TOGGLEFOLDSHOWTEXT = 2700

SCI_TOGGLEFOLDSHOWTEXT(line line, const char *text)
Each fold point may be either expanded, displaying all its child lines, or contracted, hiding all the child lines. These messages toggle the folding state of the given line as long as it has the SC_FOLDLEVELHEADERFLAG set. These messages take care of folding or expanding all the lines that depend on the line. The display updates after this message.

SCI_UNDO = 2176
SCI_UPPERCASE = 2341
SCI_USEPOPUP = 2371

SCI_USEPOPUP(int popUpMode)
Clicking the wrong button on the mouse pops up a short default editing menu. This may be turned off with SCI_USEPOPUP(SC_POPUP_NEVER). If you turn it off, context menu commands (in Windows, WM_CONTEXTMENU) will not be handled by Scintilla, so the parent of the Scintilla window will have the opportunity to handle the message.

SCI_USERLISTSHOW = 2117

SCI_USERLISTSHOW(int listType, const char *itemList)
The listType parameter is returned to the container as the wParam field of the SCNotification structure. It must be greater than 0 as this is how Scintilla tells the difference between an autocompletion list and a user list. If you have different types of list, for example a list of buffers and a list of macros, you can use listType to tell which one has returned a selection.

SCI_VCHOME = 2331
SCI_VCHOMEDISPLAY = 2652
SCI_VCHOMEDISPLAYEXTEND = 2653
SCI_VCHOMEEXTEND = 2332
SCI_VCHOMERECTEXTEND = 2431
SCI_VCHOMEWRAP = 2453
SCI_VCHOMEWRAPEXTEND = 2454
SCI_VERTICALCENTRECARET = 2619
SCI_VISIBLEFROMDOCLINE = 2220

SCI_VISIBLEFROMDOCLINE(line docLine) -> line
When some lines are hidden and/or annotations are displayed, then a particular line in the document may be displayed at a different position to its document position. If no lines are hidden and there are no annotations, this message returns docLine. Otherwise, this returns the display line (counting the very first visible line as 0). The display line of an invisible line is the same as the previous visible line. The display line number of the first line in the document is 0. If lines are hidden and docLine is outside the range of lines in the document, the return value is -1. Lines can occupy more than one display line if they wrap.

SCI_WORDENDPOSITION = 2267

SCI_WORDENDPOSITION(position pos, bool onlyWordCharacters) -> position

SCI_WORDLEFT = 2308
SCI_WORDLEFTEND = 2439
SCI_WORDLEFTENDEXTEND = 2440
SCI_WORDLEFTEXTEND = 2309
SCI_WORDPARTLEFT = 2390
SCI_WORDPARTLEFTEXTEND = 2391
SCI_WORDPARTRIGHT = 2392
SCI_WORDPARTRIGHTEXTEND = 2393
SCI_WORDRIGHT = 2310
SCI_WORDRIGHTEND = 2441
SCI_WORDRIGHTENDEXTEND = 2442
SCI_WORDRIGHTEXTEND = 2311
SCI_WORDSTARTPOSITION = 2266

SCI_WORDSTARTPOSITION(position pos, bool onlyWordCharacters) -> position
These messages return the start and end of words using the same definition of words as used internally within Scintilla. You can set your own list of characters that count as words with SCI_SETWORDCHARS. The position sets the start or the search, which is forwards when searching for the end and backwards when searching for the start.

SCI_WRAPCOUNT = 2235

SCI_WRAPCOUNT(line docLine) -> line
Document lines can occupy more than one display line if they wrap and this returns the number of display lines needed to wrap a document line.

SCI_ZOOMIN = 2333
SCI_ZOOMOUT = 2334
SCK_ADD = 310
SCK_BACK = 8
SCK_DELETE = 308
SCK_DIVIDE = 312
SCK_DOWN = 300
SCK_END = 305
SCK_ESCAPE = 7
SCK_HOME = 304
SCK_INSERT = 309
SCK_LEFT = 302
SCK_MENU = 315
SCK_NEXT = 307
SCK_PRIOR = 306
SCK_RETURN = 13
SCK_RIGHT = 303
SCK_RWIN = 314
SCK_SUBTRACT = 311
SCK_TAB = 9
SCK_UP = 301
SCK_WIN = 313
SCMOD_ALT = 4
SCMOD_CTRL = 2
SCMOD_META = 16
SCMOD_NORM = 0
SCMOD_SHIFT = 1
SCMOD_SUPER = 8
SCN_AUTOCCANCELLED = 2025
SCN_AUTOCCHARDELETED = 2026
SCN_AUTOCCOMPLETED = 2030
SCN_AUTOCSELECTION = 2022
SCN_AUTOCSELECTIONCHANGE = 2032
SCN_CALLTIPCLICK = 2021
SCN_CHARADDED = 2001
SCN_DOUBLECLICK = 2006
SCN_DWELLEND = 2017
SCN_DWELLSTART = 2016
SCN_FOCUSIN = 2028
SCN_FOCUSOUT = 2029
SCN_FOLDINGSTATECHANGED = 2081
SCN_HOTSPOTCLICK = 2019
SCN_HOTSPOTDOUBLECLICK = 2020
SCN_HOTSPOTRELEASECLICK = 2027
SCN_INDICATORCLICK = 2023
SCN_INDICATORRELEASE = 2024
SCN_KEY = 2005
SCN_MACRORECORD = 2009
SCN_MARGINCLICK = 2010
SCN_MARGINRIGHTCLICK = 2031
SCN_MODIFIED = 2008
SCN_MODIFYATTEMPTRO = 2004
SCN_NEEDSHOWN = 2011
SCN_PAINTED = 2013
SCN_SAVEPOINTLEFT = 2003
SCN_SAVEPOINTREACHED = 2002
SCN_STYLENEEDED = 2000
SCN_UPDATEUI = 2007
SCN_URIDROPPED = 2015
SCN_USERLISTSELECTION = 2014
SCN_ZOOM = 2018
SCTD_LONGARROW = 0
SCTD_STRIKEOUT = 1
SCVS_NONE = 0
SCVS_NOWRAPLINESTART = 4
SCVS_RECTANGULARSELECTION = 1
SCVS_USERACCESSIBLE = 2
SCWS_INVISIBLE = 0
SCWS_VISIBLEAFTERINDENT = 2
SCWS_VISIBLEALWAYS = 1
SCWS_VISIBLEONLYININDENT = 3
SC_ACCESSIBILITY_DISABLED = 0
SC_ACCESSIBILITY_ENABLED = 1
SC_AC_COMMAND = 5
SC_AC_DOUBLECLICK = 2
SC_AC_FILLUP = 1
SC_AC_NEWLINE = 4
SC_AC_SINGLE_CHOICE = 6
SC_AC_TAB = 3
[Obsolete("Use SCI_SETSELECTIONLAYER instead: https://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONLAYER")] SC_ALPHA_NOALPHA = 256
SC_ALPHA_OPAQUE = 255
SC_ALPHA_TRANSPARENT = 0
SC_AUTOCOMPLETE_FIXED_SIZE = 1
SC_AUTOCOMPLETE_NORMAL = 0
SC_AUTOCOMPLETE_SELECT_FIRST_ITEM = 2
SC_AUTOMATICFOLD_CHANGE = 4
SC_AUTOMATICFOLD_CLICK = 2
SC_AUTOMATICFOLD_NONE = 0
SC_AUTOMATICFOLD_SHOW = 1
SC_CACHE_CARET = 1
SC_CACHE_DOCUMENT = 3
SC_CACHE_NONE = 0
SC_CACHE_PAGE = 2
SC_CARETSTICKY_OFF = 0
SC_CARETSTICKY_ON = 1
SC_CARETSTICKY_WHITESPACE = 2
SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE = 1
SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE = 0
SC_CASE_CAMEL = 3
SC_CASE_LOWER = 2
SC_CASE_MIXED = 0
SC_CASE_UPPER = 1
SC_CHANGE_HISTORY_DISABLED = 0
SC_CHANGE_HISTORY_ENABLED = 1
SC_CHANGE_HISTORY_INDICATORS = 4
SC_CHANGE_HISTORY_MARKERS = 2
SC_CHARACTERSOURCE_DIRECT_INPUT = 0
SC_CHARACTERSOURCE_IME_RESULT = 2
SC_CHARACTERSOURCE_TENTATIVE_INPUT = 1
SC_CHARSET_8859_15 = 1000
SC_CHARSET_ANSI = 0
SC_CHARSET_ARABIC = 178
SC_CHARSET_BALTIC = 186
SC_CHARSET_CHINESEBIG5 = 136
SC_CHARSET_CYRILLIC = 1251
SC_CHARSET_DEFAULT = 1
SC_CHARSET_EASTEUROPE = 238
SC_CHARSET_GB2312 = 134
SC_CHARSET_GREEK = 161
SC_CHARSET_HANGUL = 129
SC_CHARSET_HEBREW = 177
SC_CHARSET_JOHAB = 130
SC_CHARSET_MAC = 77
SC_CHARSET_OEM = 255
SC_CHARSET_OEM866 = 866
SC_CHARSET_RUSSIAN = 204
SC_CHARSET_SHIFTJIS = 128
SC_CHARSET_SYMBOL = 2
SC_CHARSET_THAI = 222
SC_CHARSET_TURKISH = 162
SC_CHARSET_VIETNAMESE = 163
SC_CP_UTF8 = 65001
SC_CURSORARROW = 2
SC_CURSORNORMAL = 4294967295
SC_CURSORREVERSEARROW = 7
SC_CURSORWAIT = 4
SC_DOCUMENTOPTION_DEFAULT = 0
SC_DOCUMENTOPTION_STYLES_NONE = 1
SC_DOCUMENTOPTION_TEXT_LARGE = 256
SC_EFF_QUALITY_ANTIALIASED = 2
SC_EFF_QUALITY_DEFAULT = 0
SC_EFF_QUALITY_LCD_OPTIMIZED = 3
SC_EFF_QUALITY_MASK = 15
SC_EFF_QUALITY_NON_ANTIALIASED = 1
SC_ELEMENT_CARET = 40

SC_ELEMENT_CARET : colouralpha

SC_ELEMENT_CARET_ADDITIONAL = 41

SC_ELEMENT_CARET_ADDITIONAL : colouralpha

SC_ELEMENT_CARET_LINE_BACK = 50

SC_ELEMENT_CARET_LINE_BACK : colouralpha

SC_ELEMENT_FOLD_LINE = 80

SC_ELEMENT_FOLD_LINE : colouralpha
In addition to showing markers in the folding margin, you can indicate folds to the user by drawing lines in the text area. The lines are drawn in the SC_ELEMENT_FOLD_LINE colour if set. If it is not set then the foreground colour set for STYLE_DEFAULT is used. Bits set in flags determine where folding lines are drawn:

SC_ELEMENT_HIDDEN_LINE = 81

SC_ELEMENT_HIDDEN_LINE : colouralpha

SC_ELEMENT_HOT_SPOT_ACTIVE = 70

SC_ELEMENT_HOT_SPOT_ACTIVE : colouralpha

SC_ELEMENT_HOT_SPOT_ACTIVE_BACK = 71

SC_ELEMENT_HOT_SPOT_ACTIVE_BACK : colouralpha

SC_ELEMENT_LIST = 0

SC_ELEMENT_LIST : colouralpha

SC_ELEMENT_LIST_BACK = 1

SC_ELEMENT_LIST_BACK : colouralpha

SC_ELEMENT_LIST_SELECTED = 2

SC_ELEMENT_LIST_SELECTED : colouralpha

SC_ELEMENT_LIST_SELECTED_BACK = 3

SC_ELEMENT_LIST_SELECTED_BACK : colouralpha
The colours used for autocompletion lists may be customised on Win32 using SCI_SETELEMENTCOLOUR .

SC_ELEMENT_SELECTION_ADDITIONAL_BACK = 13

SC_ELEMENT_SELECTION_ADDITIONAL_BACK : colouralpha

SC_ELEMENT_SELECTION_ADDITIONAL_TEXT = 12

SC_ELEMENT_SELECTION_ADDITIONAL_TEXT : colouralpha

SC_ELEMENT_SELECTION_BACK = 11

SC_ELEMENT_SELECTION_BACK : colouralpha

SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK = 19

SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK : colouralpha
When a window no longer has the keyboard focus, it is customary to make its selection less noticeable by colouring it grey. These elements define the colours to be used for selections without focus. When the ADDITIONAL elements are not set then the standard values are used: SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT -> SC_ELEMENT_SELECTION_INACTIVE_TEXT and SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK -> SC_ELEMENT_SELECTION_INACTIVE_BACK .

SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT = 18

SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT : colouralpha

SC_ELEMENT_SELECTION_INACTIVE_BACK = 17

SC_ELEMENT_SELECTION_INACTIVE_BACK : colouralpha

SC_ELEMENT_SELECTION_INACTIVE_TEXT = 16

SC_ELEMENT_SELECTION_INACTIVE_TEXT : colouralpha

SC_ELEMENT_SELECTION_SECONDARY_BACK = 15

SC_ELEMENT_SELECTION_SECONDARY_BACK : colouralpha
On Unix systems running with the X window system or Wayland there is a 'primary selection' which is the text most recently selected in any application and which can be pasted by a middle button click. When working with a selection, it is commonly the primary selection so Scintilla draws the primary selection with the main and additional colours defined earlier. When another application takes over the primary selection, these _SECONDARY colours are used. They are commonly defined as grey to highlight that it is the selection in the other application that is now available as primary.

SC_ELEMENT_SELECTION_SECONDARY_TEXT = 14

SC_ELEMENT_SELECTION_SECONDARY_TEXT : colouralpha

SC_ELEMENT_SELECTION_TEXT = 10

SC_ELEMENT_SELECTION_TEXT : colouralpha

SC_ELEMENT_WHITE_SPACE = 60

SC_ELEMENT_WHITE_SPACE : colouralpha

SC_ELEMENT_WHITE_SPACE_BACK = 61

SC_ELEMENT_WHITE_SPACE_BACK : colouralpha

SC_EOL_CR = 1
SC_EOL_CRLF = 0
SC_EOL_LF = 2
SC_FOLDACTION_CONTRACT = 0
SC_FOLDACTION_CONTRACT_EVERY_LEVEL = 4
SC_FOLDACTION_EXPAND = 1
SC_FOLDACTION_TOGGLE = 2
SC_FOLDDISPLAYTEXT_BOXED = 2
SC_FOLDDISPLAYTEXT_HIDDEN = 0
SC_FOLDDISPLAYTEXT_STANDARD = 1
SC_FOLDFLAG_LEVELNUMBERS = 64
SC_FOLDFLAG_LINEAFTER_CONTRACTED = 16
SC_FOLDFLAG_LINEAFTER_EXPANDED = 8
SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 4
SC_FOLDFLAG_LINEBEFORE_EXPANDED = 2
SC_FOLDFLAG_LINESTATE = 128
SC_FOLDFLAG_NONE = 0
SC_FOLDLEVELBASE = 1024
SC_FOLDLEVELHEADERFLAG = 8192
SC_FOLDLEVELNONE = 0
SC_FOLDLEVELNUMBERMASK = 4095
SC_FOLDLEVELWHITEFLAG = 4096
SC_FONT_SIZE_MULTIPLIER = 100
SC_IDLESTYLING_AFTERVISIBLE = 2
SC_IDLESTYLING_ALL = 3
SC_IDLESTYLING_NONE = 0
SC_IDLESTYLING_TOVISIBLE = 1
SC_IME_INLINE = 1
SC_IME_WINDOWED = 0
SC_INDICFLAG_NONE = 0
SC_INDICFLAG_VALUEFORE = 1
SC_INDICVALUEBIT = 16777216
SC_INDICVALUEMASK = 16777215
SC_IV_LOOKBOTH = 3
SC_IV_LOOKFORWARD = 2
SC_IV_NONE = 0
SC_IV_REAL = 1
SC_LASTSTEPINUNDOREDO = 256
SC_LAYER_BASE = 0
SC_LAYER_OVER_TEXT = 2
SC_LAYER_UNDER_TEXT = 1
SC_LINECHARACTERINDEX_NONE = 0
SC_LINECHARACTERINDEX_UTF16 = 2
SC_LINECHARACTERINDEX_UTF32 = 1
SC_LINE_END_TYPE_DEFAULT = 0
SC_LINE_END_TYPE_UNICODE = 1
SC_MARGINOPTION_NONE = 0
SC_MARGINOPTION_SUBLINESELECT = 1
SC_MARGIN_BACK = 2
SC_MARGIN_COLOUR = 6
SC_MARGIN_FORE = 3
SC_MARGIN_NUMBER = 1
SC_MARGIN_RTEXT = 5
SC_MARGIN_SYMBOL = 0
SC_MARGIN_TEXT = 4
SC_MARKNUM_FOLDER = 30
SC_MARKNUM_FOLDEREND = 25
SC_MARKNUM_FOLDERMIDTAIL = 27
SC_MARKNUM_FOLDEROPEN = 31
SC_MARKNUM_FOLDEROPENMID = 26
SC_MARKNUM_FOLDERSUB = 29
SC_MARKNUM_FOLDERTAIL = 28
SC_MARKNUM_HISTORY_MODIFIED = 23
SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED = 24
SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN = 21
SC_MARKNUM_HISTORY_SAVED = 22
SC_MARK_ARROW = 2
SC_MARK_ARROWDOWN = 6
SC_MARK_ARROWS = 24
SC_MARK_AVAILABLE = 28
SC_MARK_BACKGROUND = 22
SC_MARK_BAR = 33
SC_MARK_BOOKMARK = 31
SC_MARK_BOXMINUS = 14
SC_MARK_BOXMINUSCONNECTED = 15
SC_MARK_BOXPLUS = 12
SC_MARK_BOXPLUSCONNECTED = 13
SC_MARK_CHARACTER = 10000
SC_MARK_CIRCLE = 0
SC_MARK_CIRCLEMINUS = 20
SC_MARK_CIRCLEMINUSCONNECTED = 21
SC_MARK_CIRCLEPLUS = 18
SC_MARK_CIRCLEPLUSCONNECTED = 19
SC_MARK_DOTDOTDOT = 23
SC_MARK_EMPTY = 5
SC_MARK_FULLRECT = 26
SC_MARK_LCORNER = 10
SC_MARK_LCORNERCURVE = 16
SC_MARK_LEFTRECT = 27
SC_MARK_MINUS = 7
SC_MARK_PIXMAP = 25
SC_MARK_PLUS = 8
SC_MARK_RGBAIMAGE = 30
SC_MARK_ROUNDRECT = 1
SC_MARK_SHORTARROW = 4
SC_MARK_SMALLRECT = 3
SC_MARK_TCORNER = 11
SC_MARK_TCORNERCURVE = 17
SC_MARK_UNDERLINE = 29
SC_MARK_VERTICALBOOKMARK = 32
SC_MARK_VLINE = 9
SC_MASK_FOLDERS = 4261412864
SC_MASK_HISTORY = 31457280
SC_MAX_MARGIN = 4
SC_MODEVENTMASKALL = 8388607
SC_MOD_BEFOREDELETE = 2048
SC_MOD_BEFOREINSERT = 1024
SC_MOD_CHANGEANNOTATION = 131072

SC_MOD_CHANGEANNOTATION line

SC_MOD_CHANGEEOLANNOTATION = 4194304

SC_MOD_CHANGEEOLANNOTATION line

SC_MOD_CHANGEFOLD = 8
SC_MOD_CHANGEINDICATOR = 16384
SC_MOD_CHANGELINESTATE = 32768

SC_MOD_CHANGELINESTATE SCI_SETLINESTATE was called. line

SC_MOD_CHANGEMARGIN = 65536

SC_MOD_CHANGEMARGIN line

SC_MOD_CHANGEMARKER = 512
SC_MOD_CHANGESTYLE = 4
SC_MOD_CHANGETABSTOPS = 2097152

SC_MOD_CHANGETABSTOPS SCI_CLEARTABSTOPS or SCI_ADDTABSTOP was called. line

SC_MOD_CONTAINER = 262144

SC_MOD_CONTAINER SCI_ADDUNDOACTION . SC_MODEVENTMASKALL SCI_SETMODEVENTMASK . SCEN_CHANGE
SCEN_CHANGE (768) is fired when the text (not the style) of the document changes. This notification is sent using the WM_COMMAND message on Windows and the "command" signal on GTK as this is the behaviour of the standard Edit control( SCEN_CHANGE has the same value as the Windows Edit control EN_CHANGE ). No other information is sent. If you need more detailed information use SCN_MODIFIED. You can filter the types of changes you are notified about with SCI_SETMODEVENTMASK and SCI_SETCOMMANDEVENTS .

SC_MOD_DELETETEXT = 2
SC_MOD_INSERTCHECK = 1048576

SC_MOD_INSERTCHECK SCI_CHANGEINSERTION . No other modifications may be made in this handler. position, length, text SC_MULTILINEUNDOREDO SC_STARTACTION

SC_MOD_INSERTTEXT = 1
SC_MOD_LEXERSTATE = 524288

SC_MOD_LEXERSTATE position, length

SC_MOD_NONE = 0
SC_MULTIAUTOC_EACH = 1
SC_MULTIAUTOC_ONCE = 0
SC_MULTILINEUNDOREDO = 4096
SC_MULTIPASTE_EACH = 1
SC_MULTIPASTE_ONCE = 0
SC_MULTISTEPUNDOREDO = 128
SC_ORDER_CUSTOM = 2
SC_ORDER_PERFORMSORT = 1
SC_ORDER_PRESORTED = 0
SC_PERFORMED_REDO = 64
SC_PERFORMED_UNDO = 32
SC_PERFORMED_USER = 16
SC_PHASES_MULTIPLE = 2
[Obsolete("Use SC_PHASES_TWO or SC_PHASES_MULTIPLE instead: https://www.scintilla.org/ScintillaDoc.html#SCI_GETTWOPHASEDRAW")] SC_PHASES_ONE = 0
SC_PHASES_TWO = 1
SC_POPUP_ALL = 1
SC_POPUP_NEVER = 0
SC_POPUP_TEXT = 2
SC_PRINT_BLACKONWHITE = 2
SC_PRINT_COLOURONWHITE = 3
SC_PRINT_COLOURONWHITEDEFAULTBG = 4
SC_PRINT_INVERTLIGHT = 1
SC_PRINT_NORMAL = 0
SC_PRINT_SCREENCOLOURS = 5
SC_REPRESENTATION_BLOB = 1
SC_REPRESENTATION_COLOUR = 16
SC_REPRESENTATION_PLAIN = 0
SC_SEARCHRESULT_LINEBUFFERMAXLENGTH = 2048
SC_SEL_LINES = 2
SC_SEL_RECTANGLE = 1
SC_SEL_STREAM = 0
SC_SEL_THIN = 3
SC_STARTACTION = 8192
SC_STATUS_BADALLOC = 2
SC_STATUS_FAILURE = 1
SC_STATUS_OK = 0
SC_STATUS_WARN_REGEX = 1001
SC_STATUS_WARN_START = 1000
SC_STRETCH_CONDENSED = 3
SC_STRETCH_EXPANDED = 7
SC_STRETCH_EXTRA_CONDENSED = 2
SC_STRETCH_EXTRA_EXPANDED = 8
SC_STRETCH_NORMAL = 5
SC_STRETCH_SEMI_CONDENSED = 4
SC_STRETCH_SEMI_EXPANDED = 6
SC_STRETCH_ULTRA_CONDENSED = 1
SC_STRETCH_ULTRA_EXPANDED = 9
SC_SUPPORTS_FRACTIONAL_STROKE_WIDTH = 2
SC_SUPPORTS_LINE_DRAWS_FINAL = 0
SC_SUPPORTS_PIXEL_DIVISIONS = 1
SC_SUPPORTS_PIXEL_MODIFICATION = 4
SC_SUPPORTS_THREAD_SAFE_MEASURE_WIDTHS = 5
SC_SUPPORTS_TRANSLUCENT_STROKE = 3
SC_TECHNOLOGY_DEFAULT = 0
SC_TECHNOLOGY_DIRECTWRITE = 1
SC_TECHNOLOGY_DIRECTWRITEDC = 3
SC_TECHNOLOGY_DIRECTWRITERETAIN = 2
SC_TECHNOLOGY_DIRECT_WRITE_1 = 4
SC_TIME_FOREVER = 10000000
SC_TYPE_BOOLEAN = 0
SC_TYPE_INTEGER = 1
SC_TYPE_STRING = 2
SC_UNDO_SELECTION_HISTORY_DISABLED = 0
SC_UNDO_SELECTION_HISTORY_ENABLED = 1
SC_UPDATE_CONTENT = 1
SC_UPDATE_H_SCROLL = 8
SC_UPDATE_NONE = 0
SC_UPDATE_SELECTION = 2
SC_UPDATE_V_SCROLL = 4
SC_WEIGHT_BOLD = 700
SC_WEIGHT_NORMAL = 400
SC_WEIGHT_SEMIBOLD = 600
SC_WRAPINDENT_DEEPINDENT = 3
SC_WRAPINDENT_FIXED = 0
SC_WRAPINDENT_INDENT = 2
SC_WRAPINDENT_SAME = 1
SC_WRAPVISUALFLAGLOC_DEFAULT = 0
SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 1
SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 2
SC_WRAPVISUALFLAG_END = 1
SC_WRAPVISUALFLAG_MARGIN = 4
SC_WRAPVISUALFLAG_NONE = 0
SC_WRAPVISUALFLAG_START = 2
SC_WRAP_CHAR = 2
SC_WRAP_NONE = 0
SC_WRAP_WHITESPACE = 3
SC_WRAP_WORD = 1
STYLE_BRACEBAD = 35
STYLE_BRACELIGHT = 34
STYLE_CALLTIP = 38
STYLE_CONTROLCHAR = 36
STYLE_DEFAULT = 32
STYLE_FOLDDISPLAYTEXT = 39
STYLE_INDENTGUIDE = 37
STYLE_LASTPREDEFINED = 39
STYLE_LINENUMBER = 33
STYLE_MAX = 255
UNDO_MAY_COALESCE = 1
UNDO_NONE = 0
VISIBLE_SLOP = 1
VISIBLE_STRICT = 4

Remarks

Autogenerated 2025-05-06