Enum SciMsg
Definitions for Scintilla 5.5.7
public enum SciMsg : uint
Fields
ANNOTATION_BOXED = 2ANNOTATION_HIDDEN = 0ANNOTATION_INDENTED = 3ANNOTATION_STANDARD = 1CARETSTYLE_BLOCK = 2CARETSTYLE_BLOCK_AFTER = 256CARETSTYLE_CURSES = 32CARETSTYLE_INS_MASK = 15CARETSTYLE_INVISIBLE = 0CARETSTYLE_LINE = 1CARETSTYLE_OVERSTRIKE_BAR = 0CARETSTYLE_OVERSTRIKE_BLOCK = 16CARET_EVEN = 8CARET_JUMPS = 16CARET_SLOP = 1CARET_STRICT = 4EDGE_BACKGROUND = 2EDGE_LINE = 1EDGE_MULTILINE = 3EDGE_NONE = 0EOLANNOTATION_ANGLES = 290EOLANNOTATION_ANGLE_CIRCLE = 258EOLANNOTATION_ANGLE_FLAT = 274EOLANNOTATION_BOXED = 2EOLANNOTATION_CIRCLE_ANGLE = 288EOLANNOTATION_CIRCLE_FLAT = 272EOLANNOTATION_FLATS = 273EOLANNOTATION_FLAT_ANGLE = 289EOLANNOTATION_FLAT_CIRCLE = 257EOLANNOTATION_HIDDEN = 0EOLANNOTATION_STADIUM = 256EOLANNOTATION_STANDARD = 1INDICATOR_CONTAINER = 8INDICATOR_HISTORY_MODIFIED_DELETION = 41INDICATOR_HISTORY_MODIFIED_INSERTION = 40INDICATOR_HISTORY_REVERTED_TO_MODIFIED_DELETION = 43INDICATOR_HISTORY_REVERTED_TO_MODIFIED_INSERTION = 42INDICATOR_HISTORY_REVERTED_TO_ORIGIN_DELETION = 37INDICATOR_HISTORY_REVERTED_TO_ORIGIN_INSERTION = 36INDICATOR_HISTORY_SAVED_DELETION = 39INDICATOR_HISTORY_SAVED_INSERTION = 38INDICATOR_IME = 32INDICATOR_IME_MAX = 35INDICATOR_MAX = 43INDIC_BOX = 6INDIC_COMPOSITIONTHICK = 14INDIC_COMPOSITIONTHIN = 15INDIC_DASH = 9INDIC_DIAGONAL = 3INDIC_DOTBOX = 12INDIC_DOTS = 10INDIC_EXPLORERLINK = 23INDIC_FULLBOX = 16INDIC_GRADIENT = 20INDIC_GRADIENTCENTRE = 21INDIC_HIDDEN = 5INDIC_PLAIN = 0INDIC_POINT = 18INDIC_POINTCHARACTER = 19INDIC_POINT_TOP = 22INDIC_ROUNDBOX = 7INDIC_SQUIGGLE = 1INDIC_SQUIGGLELOW = 11INDIC_SQUIGGLEPIXMAP = 13INDIC_STRAIGHTBOX = 8INDIC_STRIKE = 4INDIC_TEXTFORE = 17INDIC_TT = 2INVALID_POSITION = 4294967295KEYWORDSET_MAX = 30MARKER_MAX = 31SCEN_CHANGE = 768SCEN_KILLFOCUS = 256SCEN_SETFOCUS = 512SCFIND_CXX11REGEX = 8388608SCFIND_MATCHCASE = 4SCFIND_NONE = 0SCFIND_POSIX = 4194304SCFIND_REGEXP = 2097152SCFIND_WHOLEWORD = 2SCFIND_WORDSTART = 1048576SCI_ADDREFDOCUMENT = 2376SCI_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 = 2573SCI_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_ADDSELECTIONSCI_ADDSTYLEDTEXT = 2002SCI_ADDSTYLEDTEXT(position length, cell *c)
This behaves just like SCI_ADDTEXT, but inserts styled text.SCI_ADDTABSTOP = 2676SCI_ADDTABSTOP(line line, int x)
SCI_ADDTEXT = 2001SCI_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 = 2560SCI_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 = 2446SCI_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 = 2553SCI_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 = 2711SCI_ALLOCATELINECHARACTERINDEX(int lineCharacterIndex)
SCI_ALLOCATELINES = 2089SCI_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 = 4020SCI_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 = 2547SCI_ANNOTATIONGETLINES = 2546SCI_ANNOTATIONGETLINES(line line) -> int
SCI_ANNOTATIONGETSTYLE = 2543SCI_ANNOTATIONGETSTYLE(line line) -> int
SCI_ANNOTATIONGETSTYLEOFFSET = 2551SCI_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 = 2545SCI_ANNOTATIONGETSTYLES(line line, char *styles) -> int
SCI_ANNOTATIONGETTEXT = 2541SCI_ANNOTATIONGETTEXT(line line, char *text) -> int
SCI_ANNOTATIONGETVISIBLE = 2549SCI_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 = 2542SCI_ANNOTATIONSETSTYLE(line line, int style)
SCI_ANNOTATIONSETSTYLEOFFSET = 2550SCI_ANNOTATIONSETSTYLEOFFSET(int style)
SCI_ANNOTATIONSETSTYLES = 2544SCI_ANNOTATIONSETSTYLES(line line, const char *styles)
SCI_ANNOTATIONSETTEXT = 2540SCI_ANNOTATIONSETTEXT(line line, const char *text)
SCI_ANNOTATIONSETVISIBLE = 2548SCI_ANNOTATIONSETVISIBLE(int visible)
SCI_APPENDTEXT = 2282SCI_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 = 2070SCI_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 = 2102SCI_AUTOCACTIVE -> bool
This message returns non-zero if there is an active autocompletion list and zero if there is not.SCI_AUTOCCANCEL = 2101SCI_AUTOCCOMPLETE = 2104SCI_AUTOCGETAUTOHIDE = 2119SCI_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 = 2111SCI_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 = 2635SCI_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 = 2114SCI_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 = 2445SCI_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 = 2610SCI_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 = 2271SCI_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 = 2116SCI_AUTOCGETIGNORECASE -> bool
By default, matching of characters to list members is case sensitive. These messages let you set and get case sensitivity.SCI_AUTOCGETIMAGESCALE = 2816SCI_AUTOCGETIMAGESCALE -> int
Get or set the scale factor in percent for all autocompletion list images. This is useful on macOS with a retina display where each display unit is 2 pixels: use a factor of 200 so that each image pixel is displayed using a screen pixel. The default scale, 100, will stretch each image pixel to cover 4 screen pixels on a retina display.SCI_AUTOCGETMAXHEIGHT = 2211SCI_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 = 2209SCI_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 = 2637SCI_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 = 2639SCI_AUTOCGETOPTIONS -> int
Set options for autocompletion from the following list.SCI_AUTOCGETORDER = 2661SCI_AUTOCGETORDER -> int
The default setting SC_ORDER_PRESORTED (0) requires that the list be provided in alphabetical sorted order.SCI_AUTOCGETSEPARATOR = 2107SCI_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 = 2120SCI_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 = 2285SCI_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 = 2103SCI_AUTOCPOSSTART -> position
This returns the value of the current position when SCI_AUTOCSHOW started display of the list.SCI_AUTOCSELECT = 2108SCI_AUTOCSELECT(<unused>, const char *select)
SCI_AUTOCSETAUTOHIDE = 2118SCI_AUTOCSETAUTOHIDE(bool autoHide)
SCI_AUTOCSETCANCELATSTART = 2110SCI_AUTOCSETCANCELATSTART(bool cancel)
SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR = 2634SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR(int behaviour)
SCI_AUTOCSETCHOOSESINGLE = 2113SCI_AUTOCSETCHOOSESINGLE(bool chooseSingle)
SCI_AUTOCSETDROPRESTOFWORD = 2270SCI_AUTOCSETDROPRESTOFWORD(bool dropRestOfWord)
SCI_AUTOCSETFILLUPS = 2112SCI_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 = 2115SCI_AUTOCSETIGNORECASE(bool ignoreCase)
SCI_AUTOCSETIMAGESCALE = 2815SCI_AUTOCSETIMAGESCALE(int scalePercent)
SCI_AUTOCSETMAXHEIGHT = 2210SCI_AUTOCSETMAXHEIGHT(int rowCount)
SCI_AUTOCSETMAXWIDTH = 2208SCI_AUTOCSETMAXWIDTH(int characterCount)
SCI_AUTOCSETMULTI = 2636SCI_AUTOCSETMULTI(int multi)
SCI_AUTOCSETOPTIONS = 2638SCI_AUTOCSETOPTIONS(int options)
SCI_AUTOCSETORDER = 2660SCI_AUTOCSETORDER(int order)
SCI_AUTOCSETSEPARATOR = 2106SCI_AUTOCSETSEPARATOR(int separatorCharacter)
SCI_AUTOCSETSTYLE = 2109SCI_AUTOCSETSTYLE(int style)
SCI_AUTOCSETTYPESEPARATOR = 2286SCI_AUTOCSETTYPESEPARATOR(int separatorCharacter)
SCI_AUTOCSHOW = 2100SCI_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 = 2105SCI_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 = 2328SCI_BEGINUNDOACTION = 2078SCI_BRACEBADLIGHT = 2352SCI_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 = 2499SCI_BRACEBADLIGHTINDICATOR(bool useSetting, int indicator)
Use specified indicator to highlight non matching brace instead of changing its style.SCI_BRACEHIGHLIGHT = 2351SCI_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 = 2498SCI_BRACEHIGHLIGHTINDICATOR(bool useSetting, int indicator)
Use specified indicator to highlight matching braces instead of changing their style.SCI_BRACEMATCH = 2353SCI_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 = 2369SCI_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 = 2202SCI_CALLTIPACTIVE -> bool
This returns 1 if a call tip is active and 0 if it is not active.SCI_CALLTIPCANCEL = 2201SCI_CALLTIPPOSSTART = 2203SCI_CALLTIPPOSSTART -> position
SCI_CALLTIPSETBACK = 2205SCI_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 = 2206SCI_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 = 2207SCI_CALLTIPSETFOREHLT( colour fore)
The colour of highlighted call tip text can be set with this message; the default colour is dark blue.SCI_CALLTIPSETHLT = 2204SCI_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 = 2213SCI_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 = 2214SCI_CALLTIPSETPOSSTART(position posStart)
This message returns or sets the value of the current position when SCI_CALLTIPSHOW started to display the tip.SCI_CALLTIPSHOW = 2200SCI_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 = 2212SCI_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 = 2325SCI_CANPASTE = 2173SCI_CANPASTE -> bool
SCI_CANREDO = 2016SCI_CANREDO -> bool
SCI_REDO undoes the effect of the last SCI_UNDO operation.SCI_CANUNDO = 2174SCI_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 = 2672SCI_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 = 2801SCI_CHANGELEXERSTATE = 2617SCI_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 = 2659SCI_CHANGESELECTIONMODE(int selectionMode)
SCI_CHARLEFT = 2304SCI_CHARLEFTEXTEND = 2305SCI_CHARLEFTRECTEXTEND = 2428SCI_CHARPOSITIONFROMPOINT = 2561SCI_CHARPOSITIONFROMPOINT(int x, int y) -> position
SCI_CHARPOSITIONFROMPOINTCLOSE = 2562SCI_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 = 2306SCI_CHARRIGHTEXTEND = 2307SCI_CHARRIGHTRECTEXTEND = 2429SCI_CHOOSECARETX = 2399SCI_CLEAR = 2180SCI_CLEARALL = 2004SCI_CLEARALLCMDKEYS = 2072SCI_CLEARALLREPRESENTATIONS = 2770SCI_CLEARCMDKEY = 2071SCI_CLEARCMDKEY(int keyDefinition )
This makes the given key definition do nothing by assigning the action SCI_NULL to it.SCI_CLEARDOCUMENTSTYLE = 2005SCI_CLEARREGISTEREDIMAGES = 2408SCI_CLEARREPRESENTATION = 2667SCI_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 = 2571SCI_CLEARTABSTOPS = 2675SCI_CLEARTABSTOPS(line line)
SCI_COLOURISE = 4003SCI_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 = 2618SCI_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 = 2029SCI_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 = 2178SCI_COPYALLOWLINE = 2519SCI_COPYRANGE = 2419SCI_COPYRANGE(position start, position end)
SCI_COPYTEXT = 2420SCI_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 = 2633SCI_COUNTCHARACTERS(position start, position end) -> position
Returns the number of whole characters between two positions.SCI_COUNTCODEUNITS = 2715SCI_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 = 2375SCI_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 = 2632SCI_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 = 2177SCI_CUTALLOWLINE = 2810SCI_DELETEBACK = 2326SCI_DELETEBACKNOTLINE = 2344SCI_DELETERANGE = 2645SCI_DELETERANGE(position start, position lengthDelete)
Deletes a range of text in the document.SCI_DELLINELEFT = 2395SCI_DELLINERIGHT = 2396SCI_DELWORDLEFT = 2335SCI_DELWORDRIGHT = 2336SCI_DELWORDRIGHTEND = 2518SCI_DESCRIBEKEYWORDSETS = 4017SCI_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 = 4016SCI_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 = 4032SCI_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 = 4025SCI_DISTANCETOSECONDARYSTYLES -> int
Returns the distance between a primary style and its corresponding secondary style.SCI_DOCLINEFROMVISIBLE = 2221SCI_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 = 2318SCI_DOCUMENTENDEXTEND = 2319SCI_DOCUMENTSTART = 2316SCI_DOCUMENTSTARTEXTEND = 2317SCI_DROPSELECTIONN = 2671SCI_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 = 2324SCI_EMPTYUNDOBUFFER = 2175SCI_ENCODEDFROMUTF8 = 2449SCI_ENCODEDFROMUTF8(const char *utf8, char *encoded) -> position
SCI_ENDUNDOACTION = 2079SCI_ENSUREVISIBLE = 2232SCI_ENSUREVISIBLE(line line)
SCI_ENSUREVISIBLEENFORCEPOLICY = 2234SCI_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 = 2744SCI_EOLANNOTATIONGETSTYLE = 2743SCI_EOLANNOTATIONGETSTYLE(line line) -> int
SCI_EOLANNOTATIONGETSTYLEOFFSET = 2748SCI_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 = 2741SCI_EOLANNOTATIONGETTEXT(line line, char *text) -> int
SCI_EOLANNOTATIONGETVISIBLE = 2746SCI_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 = 2742SCI_EOLANNOTATIONSETSTYLE(line line, int style)
SCI_EOLANNOTATIONSETSTYLEOFFSET = 2747SCI_EOLANNOTATIONSETSTYLEOFFSET(int style)
SCI_EOLANNOTATIONSETTEXT = 2740SCI_EOLANNOTATIONSETTEXT(line line, const char *text)
SCI_EOLANNOTATIONSETVISIBLE = 2745SCI_EOLANNOTATIONSETVISIBLE(int visible)
SCI_EXPANDCHILDREN = 2239SCI_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 = 2456SCI_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 = 2641SCI_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 = 2642SCI_FINDINDICATORSHOW = 2640SCI_FINDINDICATORSHOW(position start, position end)
SCI_FINDTEXTFULL = 2196SCI_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 = 2662SCI_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 = 2238SCI_FOLDCHILDREN(line line, int action)
SCI_FOLDDISPLAYTEXTGETSTYLE = 2707SCI_FOLDDISPLAYTEXTGETSTYLE -> int
These message changes the appearance of fold text tags.SCI_FOLDDISPLAYTEXTSETSTYLE = 2701SCI_FOLDDISPLAYTEXTSETSTYLE(int style)
SCI_FOLDLINE = 2237SCI_FOLDLINE(line line, int action)
SCI_FORMATRANGEFULL = 2777SCI_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 = 2330SCI_FREESUBSTYLES = 4023SCI_GETACCESSIBILITY = 2703SCI_GETACCESSIBILITY -> int
These messages may enable or disable accessibility and report its current status.SCI_GETADDITIONALCARETSBLINK = 2568SCI_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 = 2609SCI_GETADDITIONALCARETSVISIBLE -> bool
Determine whether to show additional carets (defaults to true ).SCI_GETADDITIONALSELECTIONTYPING = 2566SCI_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 = 2236SCI_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 = 2009SCI_GETANCHOR -> position
This returns the current anchor position.SCI_GETAUTOMATICFOLD = 2664SCI_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 = 2263SCI_GETBACKSPACEUNINDENTS -> bool
SCI_GETBOOSTREGEXERRMSG = 5000SCI_GETBUFFEREDDRAW = 2034SCI_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.SCI_GETCARETLINEFRAME = 2704SCI_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 = 2773SCI_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 = 2764SCI_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:SCI_GETCARETLINEVISIBLEALWAYS = 2654SCI_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 = 2075SCI_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 = 2457SCI_GETCARETSTICKY -> int
SCI_GETCARETSTYLE = 2513SCI_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 = 2189SCI_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 = 2781SCI_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 = 2721SCI_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 = 2520SCI_GETCHARACTERPOINTER -> pointer
SCI_GETCHARAT = 2007SCI_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 = 2137SCI_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 = 2129SCI_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 = 2718SCI_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 = 2389SCI_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 = 2812SCI_GETCOPYSEPARATOR(<unused>, char *separator) -> int
When a multiple selection is copied, this string property is added between each part. Defaults to empty.SCI_GETCURLINE = 2027SCI_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 = 2008SCI_GETCURRENTPOS -> position
This returns the current position.SCI_GETCURSOR = 2387SCI_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 = 2723SCI_GETDEFAULTFOLDDISPLAYTEXT(<unused>, char *text) -> int
These messages set and get the default text displayed at the right of the folded text.SCI_GETDIRECTFUNCTION = 2184SCI_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 = 2185SCI_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 = 2772SCI_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 = 2357SCI_GETDOCPOINTER -> pointer
This returns a pointer to the document currently in use by the window. It has no other effect.SCI_GETDOCUMENTOPTIONS = 2379SCI_GETDOCUMENTOPTIONS -> int
Returns the options that were used to create the document.SCI_GETEDGECOLOUR = 2364SCI_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 = 2360SCI_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 = 2362SCI_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 = 2757SCI_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 = 2758SCI_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 systemSCI_GETELEMENTCOLOUR = 2754SCI_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 = 2756SCI_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 = 2278SCI_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 = 2028SCI_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 = 2030SCI_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 = 2526SCI_GETEXTRAASCENT -> int
SCI_GETEXTRADESCENT = 2528SCI_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 = 2152SCI_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 = 2381SCI_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 = 2230SCI_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 = 2223SCI_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 = 2225SCI_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 = 2761SCI_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 = 2612SCI_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 = 2644SCI_GETGAPPOSITION -> position
Grant temporary direct read-only access to the memory used by Scintilla to store the document.SCI_GETHIGHLIGHTGUIDE = 2135SCI_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.SCI_GETHOTSPOTACTIVEUNDERLINE = 2496SCI_GETHOTSPOTACTIVEUNDERLINE -> bool
SCI_GETHOTSPOTSINGLELINE = 2497SCI_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 = 2131SCI_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 = 2623SCI_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 = 2693SCI_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 = 2678SCI_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 = 2123SCI_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 = 2133SCI_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 = 2501SCI_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 = 2503SCI_GETINDICATORVALUE -> int
These two messages set and get the value that will be set by calls to SCI_INDICATORFILLRANGE .SCI_GETLASTCHILD = 2224SCI_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 = 2273SCI_GETLAYOUTCACHE -> int
You can set cacheMode to one of the symbols in the table:SCI_GETLAYOUTTHREADS = 2776SCI_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 = 2006SCI_GETLENGTH -> position
Both these messages return the length of the document in bytes.SCI_GETLEXER = 4002SCI_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 = 4012SCI_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 = 2153SCI_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 = 2710SCI_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 = 2154SCI_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 = 2136SCI_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 = 2658SCI_GETLINEENDTYPESACTIVE -> int
SCI_GETLINEENDTYPESACTIVE reports the set of line ends currently interpreted by Scintilla. It is SCI_GETLINEENDTYPESSUPPORTED & SCI_GETLINEENDTYPESALLOWED .SCI_GETLINEENDTYPESALLOWED = 2657SCI_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 = 4018SCI_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 = 2127SCI_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 = 2128SCI_GETLINEINDENTPOSITION(line line) -> position
This returns the position at the end of indentation of a line.SCI_GETLINESELENDPOSITION = 2425SCI_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 = 2424SCI_GETLINESELSTARTPOSITION(line line) -> position
SCI_GETLINESTATE = 2093SCI_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 = 2228SCI_GETLINEVISIBLE(line line) -> bool
SCI_GETMAINSELECTION = 2575SCI_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 = 2251SCI_GETMARGINBACKN(int margin) -> colour
A margin of type SC_MARGIN_COLOUR may have its colour set with SCI_SETMARGINBACKN .SCI_GETMARGINCURSORN = 2249SCI_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 = 2156SCI_GETMARGINLEFT -> int
SCI_GETMARGINMASKN = 2245SCI_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 = 2557SCI_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 = 2158SCI_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 = 2253SCI_GETMARGINS -> int
Allocate the number of margins or find the number of margins currently allocated.SCI_GETMARGINSENSITIVEN = 2247SCI_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 = 2241SCI_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 = 2243SCI_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 = 2094SCI_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 = 2378SCI_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 = 2159SCI_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 = 2385SCI_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 = 2265SCI_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 = 2669SCI_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 = 2697SCI_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 = 2706SCI_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 = 2749SCI_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 = 2615SCI_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 = 2564SCI_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 = 4029SCI_GETNAMEDSTYLES -> int
Retrieve the number of named styles for the lexer.SCI_GETNEXTTABSTOP = 2677SCI_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 = 2187SCI_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 = 2468SCI_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 = 2673SCI_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 = 2515SCI_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 = 4028SCI_GETPRIMARYSTYLEFROMSTYLE(int style) -> int
For a secondary style, return the primary style, else return the argument.SCI_GETPRINTCOLOURMODE = 2149SCI_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 = 2147SCI_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 = 2407SCI_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 = 4008SCI_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_GETPROPERTYINT = 4010SCI_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 = 2649SCI_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 = 2643SCI_GETRANGEPOINTER(position start, position lengthRange) -> pointer
SCI_GETREADONLY = 2140SCI_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 = 2591SCI_GETRECTANGULARSELECTIONANCHOR -> position
SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2595SCI_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 = 2589SCI_GETRECTANGULARSELECTIONCARET -> position
SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2593SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE -> position
SCI_GETRECTANGULARSELECTIONMODIFIER = 2599SCI_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 = 2666SCI_GETREPRESENTATION(const char *encodedCharacter, char *representation NUL-terminated) -> int
SCI_GETREPRESENTATIONAPPEARANCE = 2767SCI_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 = 2769SCI_GETREPRESENTATIONCOLOUR(const char *encodedCharacter) -> colouralpha
The colour and translucency of a representation may be set.SCI_GETSCROLLWIDTH = 2275SCI_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_SETSCROLLWIDTHTRACKINGSCI_GETSCROLLWIDTHTRACKING = 2517SCI_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 = 2199SCI_GETSEARCHFLAGS -> int
These get and set the searchFlags used by SCI_SEARCHINTARGET. There are several option flags including a simple regular expression search.SCI_GETSELECTIONEMPTY = 2650SCI_GETSELECTIONEMPTY -> bool
Return 1 if every selected range is empty else 0.SCI_GETSELECTIONEND = 2145SCI_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 = 2088SCI_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 = 2762SCI_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 = 2423SCI_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 = 2579SCI_GETSELECTIONNANCHOR(int selection) -> position
SCI_GETSELECTIONNANCHORVIRTUALSPACE = 2583SCI_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 = 2577SCI_GETSELECTIONNCARET(int selection) -> position
SCI_GETSELECTIONNCARETVIRTUALSPACE = 2581SCI_GETSELECTIONNCARETVIRTUALSPACE(int selection) -> position
SCI_GETSELECTIONNEND = 2587SCI_GETSELECTIONNEND(int selection) -> position
SCI_GETSELECTIONNENDVIRTUALSPACE = 2727SCI_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 = 2585SCI_GETSELECTIONNSTART(int selection) -> position
SCI_GETSELECTIONNSTARTVIRTUALSPACE = 2726SCI_GETSELECTIONNSTARTVIRTUALSPACE(int selection) -> position
SCI_GETSELECTIONS = 2570SCI_GETSELECTIONS -> int
Return the number of selections currently active. There is always at least one selection.SCI_GETSELECTIONSERIALIZED = 2785SCI_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 = 2143SCI_GETSELECTIONSTART -> position
SCI_GETSELEOLFILLED = 2479SCI_GETSELEOLFILLED -> bool
The selection can be drawn up to the right hand border by setting this property.SCI_GETSELTEXT = 2161SCI_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 = 2383SCI_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 = 2010SCI_GETSTYLEAT(position pos) -> int
SCI_GETSTYLEDTEXTFULL = 2778SCI_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 = 4027SCI_GETSTYLEFROMSUBSTYLE(int subStyle) -> int
For a sub style, return the base style, else return the argument.SCI_GETSTYLEINDEXAT = 2038SCI_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 = 4026SCI_GETSUBSTYLEBASES(<unused>, char *styles NUL-terminated) -> int
Fill styles with a byte for each style that can be split into substyles.SCI_GETSUBSTYLESLENGTH = 4022SCI_GETSUBSTYLESLENGTH(int styleBase) -> int
Return the start and length of the substyles allocated for a base style.SCI_GETSUBSTYLESSTART = 4021SCI_GETSUBSTYLESSTART(int styleBase) -> int
SCI_GETTABDRAWMODE = 2698SCI_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 = 2261SCI_GETTABINDENTS -> bool
SCI_GETTABMINIMUMWIDTH = 2725SCI_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 = 2121SCI_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 = 2616SCI_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 = 2193SCI_GETTARGETEND -> position
SCI_GETTARGETENDVIRTUALSPACE = 2731SCI_GETTARGETENDVIRTUALSPACE -> position
SCI_GETTARGETSTART = 2191SCI_GETTARGETSTART -> position
SCI_GETTARGETSTARTVIRTUALSPACE = 2729SCI_GETTARGETSTARTVIRTUALSPACE -> position
SCI_GETTARGETTEXT = 2687SCI_GETTARGETTEXT(<unused>, char *text) -> position
Retrieve the value in the target.SCI_GETTECHNOLOGY = 2631SCI_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 = 2182SCI_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 = 2183SCI_GETTEXTLENGTH -> position
SCI_GETTEXTRANGEFULL = 2039SCI_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 = 2803SCI_GETUNDOACTIONS = 2790SCI_GETUNDOACTIONTEXT = 2804SCI_GETUNDOACTIONTYPE = 2802SCI_GETUNDOCOLLECTION = 2019SCI_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 = 2798SCI_GETUNDODETACH = 2794SCI_GETUNDOSAVEPOINT = 2792SCI_GETUNDOSELECTIONHISTORY = 2783SCI_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 = 2799SCI_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 = 2796SCI_GETUSETABS = 2125SCI_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 = 2355SCI_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 = 2020SCI_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 = 2597SCI_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 = 2281SCI_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 = 2647SCI_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 = 2087SCI_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 = 2646SCI_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 = 2473SCI_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 = 2269SCI_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 = 2465SCI_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 = 2461SCI_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 = 2463SCI_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 = 2398SCI_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 = 2374SCI_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 = 2024SCI_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 = 2025SCI_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 = 2400SCI_HIDELINES = 2227SCI_HIDELINES(line lineStart, line lineEnd)
SCI_HIDESELECTION = 2163SCI_HIDESELECTION(bool hide)
SCI_HOME = 2312SCI_HOMEDISPLAY = 2345SCI_HOMEDISPLAYEXTEND = 2346SCI_HOMEEXTEND = 2313SCI_HOMERECTEXTEND = 2430SCI_HOMEWRAP = 2349SCI_HOMEWRAPEXTEND = 2450SCI_INDEXPOSITIONFROMLINE = 2714SCI_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 = 2506SCI_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 = 2505SCI_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 = 2509SCI_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 = 2504SCI_INDICATORFILLRANGE(position start, position lengthFill)
SCI_INDICATORSTART = 2508SCI_INDICATORSTART(int indicator, position pos) -> position
SCI_INDICATORVALUEAT = 2507SCI_INDICATORVALUEAT(int indicator, position pos) -> int
Retrieve the value of a particular indicator at a position.SCI_INDICGETALPHA = 2524SCI_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 = 2685SCI_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 = 2083SCI_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 = 2683SCI_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 = 2681SCI_INDICGETHOVERSTYLE(int indicator) -> int
SCI_INDICGETOUTLINEALPHA = 2559SCI_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 = 2752SCI_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 = 2081SCI_INDICGETSTYLE(int indicator) -> int
These two messages set and get the style for a particular indicator. The indicator styles currently available are:SCI_INDICGETUNDER = 2511SCI_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 = 2523SCI_INDICSETALPHA(int indicator, alpha alpha)
SCI_INDICSETFLAGS = 2684SCI_INDICSETFLAGS(int indicator, int flags)
SCI_INDICSETFORE = 2082SCI_INDICSETFORE(int indicator, colour fore)
SCI_INDICSETHOVERFORE = 2682SCI_INDICSETHOVERFORE(int indicator, colour fore)
SCI_INDICSETHOVERSTYLE = 2680SCI_INDICSETHOVERSTYLE(int indicator, int indicatorStyle)
SCI_INDICSETOUTLINEALPHA = 2558SCI_INDICSETOUTLINEALPHA(int indicator, alpha alpha)
SCI_INDICSETSTROKEWIDTH = 2751SCI_INDICSETSTROKEWIDTH(int indicator, int hundredths)
SCI_INDICSETSTYLE = 2080SCI_INDICSETSTYLE(int indicator, int indicatorStyle)
SCI_INDICSETUNDER = 2510SCI_INDICSETUNDER(int indicator, bool under)
SCI_INSERTTEXT = 2003SCI_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 = 2691SCI_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 = 4000SCI_LINECOPY = 2455SCI_LINECUT = 2337SCI_LINEDEDENT = 2814SCI_LINEDELETE = 2338SCI_LINEDOWN = 2300SCI_LINEDOWNEXTEND = 2301SCI_LINEDOWNRECTEXTEND = 2426SCI_LINEDUPLICATE = 2404SCI_LINEEND = 2314SCI_LINEENDDISPLAY = 2347SCI_LINEENDDISPLAYEXTEND = 2348SCI_LINEENDEXTEND = 2315SCI_LINEENDRECTEXTEND = 2432SCI_LINEENDWRAP = 2451SCI_LINEENDWRAPEXTEND = 2452SCI_LINEFROMINDEXPOSITION = 2713SCI_LINEFROMINDEXPOSITION(position pos, int lineCharacterIndex) -> line
SCI_LINEFROMPOSITION = 2166SCI_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 = 2813SCI_LINELENGTH = 2350SCI_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 = 2354SCI_LINESCROLL = 2168SCI_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 = 2342SCI_LINESCROLLUP = 2343SCI_LINESJOIN = 2288SCI_LINESONSCREEN = 2370SCI_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 = 2289SCI_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 = 2339SCI_LINEUP = 2302SCI_LINEUPEXTEND = 2303SCI_LINEUPRECTEXTEND = 2427SCI_LOWERCASE = 2340SCI_MARGINGETSTYLE = 2533SCI_MARGINGETSTYLE(line line) -> int
SCI_MARGINGETSTYLEOFFSET = 2538SCI_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 = 2535SCI_MARGINGETSTYLES(line line, char *styles) -> int
SCI_MARGINGETTEXT = 2531SCI_MARGINGETTEXT(line line, char *text) -> int
SCI_MARGINSETSTYLE = 2532SCI_MARGINSETSTYLE(line line, int style)
SCI_MARGINSETSTYLEOFFSET = 2537SCI_MARGINSETSTYLEOFFSET(int style)
SCI_MARGINSETSTYLES = 2534SCI_MARGINSETSTYLES(line line, const char *styles)
SCI_MARGINSETTEXT = 2530SCI_MARGINSETTEXT(line line, const char *text)
SCI_MARGINTEXTCLEARALL = 2536SCI_MARKERADD = 2043SCI_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 = 2466SCI_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 = 2040SCI_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 = 2049SCI_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 = 2626SCI_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 = 2044SCI_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 = 2045SCI_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 = 2018SCI_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 = 2293SCI_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 = 2046SCI_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 = 2734SCI_MARKERGETLAYER(int markerNumber) -> int
SCI_MARKERHANDLEFROMLINE = 2732SCI_MARKERHANDLEFROMLINE(line line, int which) -> int
SCI_MARKERLINEFROMHANDLE = 2017SCI_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 = 2047SCI_MARKERNEXT(line lineStart, int markerMask) -> line
SCI_MARKERNUMBERFROMLINE = 2733SCI_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 = 2048SCI_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 = 2476SCI_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 = 2042SCI_MARKERSETBACK(int markerNumber, colour back)
SCI_MARKERSETBACKSELECTED = 2292SCI_MARKERSETBACKSELECTED(int markerNumber, colour back)
SCI_MARKERSETBACKSELECTEDTRANSLUCENT = 2296SCI_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 = 2295SCI_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 = 2041SCI_MARKERSETFORE(int markerNumber, colour fore)
SCI_MARKERSETFORETRANSLUCENT = 2294SCI_MARKERSETFORETRANSLUCENT(int markerNumber, colouralpha fore)
SCI_MARKERSETLAYER = 2735SCI_MARKERSETLAYER(int markerNumber, int layer)
SCI_MARKERSETSTROKEWIDTH = 2297SCI_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 = 2529SCI_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 = 2401SCI_MOVESELECTEDLINESDOWN = 2621SCI_MOVESELECTEDLINESUP = 2620SCI_MULTIEDGEADDLINE = 2694SCI_MULTIEDGEADDLINE(position column, colour edgeColour)
SCI_MULTIEDGECLEARALL = 2695SCI_MULTIPLESELECTADDEACH = 2689SCI_MULTIPLESELECTADDNEXT = 2688SCI_NAMEOFSTYLE = 4030SCI_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 = 2329SCI_NULL = 2172SCI_OPTIONAL_START = 3000SCI_PAGEDOWN = 2322SCI_PAGEDOWNEXTEND = 2323SCI_PAGEDOWNRECTEXTEND = 2434SCI_PAGEUP = 2320SCI_PAGEUPEXTEND = 2321SCI_PAGEUPRECTEXTEND = 2433SCI_PARADOWN = 2413SCI_PARADOWNEXTEND = 2414SCI_PARAUP = 2415SCI_PARAUPEXTEND = 2416SCI_PASTE = 2179SCI_POINTXFROMPOSITION = 2164SCI_POINTXFROMPOSITION(<unused>, position pos) -> int
SCI_POINTYFROMPOSITION = 2165SCI_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 = 2418SCI_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 = 2417SCI_POSITIONBEFORE(position pos) -> position
SCI_POSITIONFROMLINE = 2167SCI_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 = 2022SCI_POSITIONFROMPOINT(int x, int y) -> position
SCI_POSITIONFROMPOINTCLOSE = 2023SCI_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 = 2670SCI_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 = 2716SCI_POSITIONRELATIVECODEUNITS(position pos, position relative) -> position
SCI_PRIVATELEXERCALL = 4013SCI_PRIVATELEXERCALL(int operation, pointer pointer) -> pointer
Call into a lexer in a way not understood by Scintilla.SCI_PROPERTYNAMES = 4014SCI_PROPERTYNAMES(<unused>, char *names NUL-terminated) -> int
SCI_PROPERTYTYPE = 4015SCI_PROPERTYTYPE(const char *name) -> int
SCI_PUSHUNDOACTIONTYPE = 2800SCI_REDO = 2011SCI_REGISTERIMAGE = 2405SCI_REGISTERIMAGE(int type, const char *xpmData)
SCI_REGISTERRGBAIMAGE = 2627SCI_REGISTERRGBAIMAGE(int type, const char *pixels)
SCI_RELEASEALLEXTENDEDSTYLES = 2552SCI_RELEASEDOCUMENT = 2377SCI_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 = 2712SCI_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 = 2771SCI_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 = 2170SCI_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 = 2194SCI_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 = 2779SCI_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 = 2195SCI_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 = 2755SCI_RESETELEMENTCOLOUR(int element)
This removes the element colour returning to the default colour or set of colours.SCI_RGBAIMAGESETHEIGHT = 2625SCI_RGBAIMAGESETHEIGHT(int height)
SCI_RGBAIMAGESETSCALE = 2651SCI_RGBAIMAGESETSCALE(int scalePercent)
SCI_RGBAIMAGESETWIDTH = 2624SCI_RGBAIMAGESETWIDTH(int width)
SCI_ROTATESELECTION = 2606SCI_SCROLLCARET = 2169SCI_SCROLLRANGE = 2569SCI_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 = 2629SCI_SCROLLTOSTART = 2628SCI_SCROLLVERTICAL = 2817SCI_SCROLLVERTICAL(line docLine, line subLine)
Sets the vertical scroll position to be the display line for the subLine of the docLine, similar to SCI_SETFIRSTVISIBLELINE(SCI_VISIBLEFROMDOCLINE(docLine)+ subLine) .SCI_SEARCHANCHOR = 2366SCI_SEARCHINTARGET = 2197SCI_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 = 2367SCI_SEARCHNEXT(int searchFlags, const char *text) -> position
SCI_SEARCHPREV = 2368SCI_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 = 2013SCI_SELECTIONDUPLICATE = 2469SCI_SELECTIONFROMPOINT = 2474SCI_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 = 2372SCI_SELECTIONISRECTANGLE -> bool
This returns 1 if the current selection is in rectangle mode, 0 if not.SCI_SETACCESSIBILITY = 2702SCI_SETACCESSIBILITY(int accessibility)
SCI_SETADDITIONALCARETSBLINK = 2567SCI_SETADDITIONALCARETSBLINK(bool additionalCaretsBlink)
SCI_SETADDITIONALCARETSVISIBLE = 2608SCI_SETADDITIONALCARETSVISIBLE(bool additionalCaretsVisible)
SCI_SETADDITIONALSELECTIONTYPING = 2565SCI_SETADDITIONALSELECTIONTYPING(bool additionalSelectionTyping)
SCI_SETANCHOR = 2026SCI_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 = 2663SCI_SETAUTOMATICFOLD(int automaticFold)
SCI_SETBACKSPACEUNINDENTS = 2262SCI_SETBACKSPACEUNINDENTS(bool bsUnIndents)
SCI_SETBUFFEREDDRAW = 2035SCI_SETBUFFEREDDRAW(bool buffered)
SCI_SETCARETLINEFRAME = 2705SCI_SETCARETLINEFRAME(int width)
SCI_SETCARETLINEHIGHLIGHTSUBLINE = 2774SCI_SETCARETLINEHIGHLIGHTSUBLINE(bool subLine)
SCI_SETCARETLINELAYER = 2765SCI_SETCARETLINELAYER(int layer)
SCI_SETCARETLINEVISIBLEALWAYS = 2655SCI_SETCARETLINEVISIBLEALWAYS(bool alwaysVisible)
SCI_SETCARETPERIOD = 2076SCI_SETCARETPERIOD(int periodMilliseconds)
SCI_SETCARETSTICKY = 2458SCI_SETCARETSTICKY(int useCaretStickyBehaviour)
SCI_SETCARETSTYLE = 2512SCI_SETCARETSTYLE(int caretStyle)
SCI_SETCARETWIDTH = 2188SCI_SETCARETWIDTH(int pixelWidth)
SCI_SETCHANGEHISTORY = 2780SCI_SETCHANGEHISTORY(int changeHistory)
SCI_SETCHARACTERCATEGORYOPTIMIZATION = 2720SCI_SETCHARACTERCATEGORYOPTIMIZATION(int countCharacters)
SCI_SETCHARSDEFAULT = 2444SCI_SETCODEPAGE = 2037SCI_SETCODEPAGE(int codePage)
SCI_SETCOMMANDEVENTS = 2717SCI_SETCOMMANDEVENTS(bool commandEvents)
SCI_SETCONTROLCHARSYMBOL = 2388SCI_SETCONTROLCHARSYMBOL(int symbol)
SCI_SETCOPYSEPARATOR = 2811SCI_SETCOPYSEPARATOR(<unused>, const char *separator)
SCI_SETCURRENTPOS = 2141SCI_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 = 2386SCI_SETCURSOR(int cursorType)
SCI_SETDEFAULTFOLDDISPLAYTEXT = 2722SCI_SETDEFAULTFOLDDISPLAYTEXT(<unused>, const char *text)
SCI_SETDOCPOINTER = 2358SCI_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 = 2365SCI_SETEDGECOLOUR( colour edgeColour)
SCI_SETEDGECOLUMN = 2361SCI_SETEDGECOLUMN(position column)
SCI_SETEDGEMODE = 2363SCI_SETEDGEMODE(int edgeMode)
SCI_SETELEMENTCOLOUR = 2753SCI_SETELEMENTCOLOUR(int element, colouralpha colourElement)
SCI_SETEMPTYSELECTION = 2556SCI_SETEMPTYSELECTION(position caret)
This removes any selection and sets the caret at caret. The caret is not scrolled into view.SCI_SETENDATLASTLINE = 2277SCI_SETENDATLASTLINE(bool endAtLastLine)
SCI_SETEOLMODE = 2031SCI_SETEOLMODE(int eolMode)
SCI_SETEXTRAASCENT = 2525SCI_SETEXTRAASCENT(int extraAscent)
SCI_SETEXTRADESCENT = 2527SCI_SETEXTRADESCENT(int extraDescent)
SCI_SETFIRSTVISIBLELINE = 2613SCI_SETFIRSTVISIBLELINE(line displayLine)
SCI_SETFOCUS = 2380SCI_SETFOCUS(bool focus)
SCI_SETFOLDEXPANDED = 2229SCI_SETFOLDEXPANDED(line line, bool expanded)
SCI_SETFOLDFLAGS = 2233SCI_SETFOLDFLAGS(int flags)
SCI_SETFOLDLEVEL = 2222SCI_SETFOLDLEVEL(line line, int level)
SCI_SETFOLDMARGINCOLOUR = 2290SCI_SETFOLDMARGINCOLOUR(bool useSetting, colour back)
SCI_SETFOLDMARGINHICOLOUR = 2291SCI_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 = 2760SCI_SETFONTLOCALE(<unused>, const char *localeName)
SCI_SETFONTQUALITY = 2611SCI_SETFONTQUALITY(int fontQuality)
SCI_SETHIGHLIGHTGUIDE = 2134SCI_SETHIGHLIGHTGUIDE(position column)
SCI_SETHOTSPOTACTIVEUNDERLINE = 2412SCI_SETHOTSPOTACTIVEUNDERLINE(bool underline)
SCI_SETHOTSPOTSINGLELINE = 2421SCI_SETHOTSPOTSINGLELINE(bool singleLine)
SCI_SETHSCROLLBAR = 2130SCI_SETHSCROLLBAR(bool visible)
SCI_SETIDENTIFIER = 2622SCI_SETIDENTIFIER(int identifier)
SCI_SETIDENTIFIERS = 4024SCI_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 = 2692SCI_SETIDLESTYLING(int idleStyling)
SCI_SETILEXER = 4033SCI_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 = 2679SCI_SETIMEINTERACTION(int imeInteraction)
SCI_SETINDENT = 2122SCI_SETINDENT(int indentSize)
SCI_SETINDENTATIONGUIDES = 2132SCI_SETINDENTATIONGUIDES(int indentView)
SCI_SETINDICATORCURRENT = 2500SCI_SETINDICATORCURRENT(int indicator)
SCI_SETINDICATORVALUE = 2502SCI_SETINDICATORVALUE(int value)
SCI_SETKEYWORDS = 4005SCI_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 = 2272SCI_SETLAYOUTCACHE(int cacheMode)
SCI_SETLAYOUTTHREADS = 2775SCI_SETLAYOUTTHREADS(int threads)
SCI_SETLENGTHFORENCODE = 2448SCI_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 = 2656SCI_SETLINEENDTYPESALLOWED(int lineEndBitSet)
SCI_SETLINEINDENTATION = 2126SCI_SETLINEINDENTATION(line line, int indentation)
SCI_SETLINESTATE = 2092SCI_SETLINESTATE(line line, int state)
SCI_SETMAINSELECTION = 2574SCI_SETMAINSELECTION(int selection)
SCI_SETMARGINBACKN = 2250SCI_SETMARGINBACKN(int margin, colour back)
SCI_SETMARGINCURSORN = 2248SCI_SETMARGINCURSORN(int margin, int cursor)
SCI_SETMARGINLEFT = 2155SCI_SETMARGINLEFT(<unused>, int pixelWidth)
SCI_SETMARGINMASKN = 2244SCI_SETMARGINMASKN(int margin, int mask)
SCI_SETMARGINOPTIONS = 2539SCI_SETMARGINOPTIONS(int marginOptions)
SCI_SETMARGINRIGHT = 2157SCI_SETMARGINRIGHT(<unused>, int pixelWidth)
SCI_SETMARGINS = 2252SCI_SETMARGINS(int margins)
SCI_SETMARGINSENSITIVEN = 2246SCI_SETMARGINSENSITIVEN(int margin, bool sensitive)
SCI_SETMARGINTYPEN = 2240SCI_SETMARGINTYPEN(int margin, int marginType)
SCI_SETMARGINWIDTHN = 2242SCI_SETMARGINWIDTHN(int margin, int pixelWidth)
SCI_SETMODEVENTMASK = 2359SCI_SETMODEVENTMASK(int eventMask)
SCI_SETMOUSEDOWNCAPTURES = 2384SCI_SETMOUSEDOWNCAPTURES(bool captures)
SCI_SETMOUSEDWELLTIME = 2264SCI_SETMOUSEDWELLTIME(int periodMilliseconds)
SCI_SETMOUSESELECTIONRECTANGULARSWITCH = 2668SCI_SETMOUSESELECTIONRECTANGULARSWITCH(bool mouseSelectionRectangularSwitch)
SCI_SETMOUSEWHEELCAPTURES = 2696SCI_SETMOUSEWHEELCAPTURES(bool captures)
SCI_SETMOVEEXTENDSSELECTION = 2719SCI_SETMOVEEXTENDSSELECTION(bool moveExtendsSelection)
SCI_SETMULTIPASTE = 2614SCI_SETMULTIPASTE(int multiPaste)
SCI_SETMULTIPLESELECTION = 2563SCI_SETMULTIPLESELECTION(bool multipleSelection)
SCI_SETOVERTYPE = 2186SCI_SETOVERTYPE(bool overType)
SCI_SETPASTECONVERTENDINGS = 2467SCI_SETPASTECONVERTENDINGS(bool convert)
SCI_SETPHASESDRAW = 2674SCI_SETPHASESDRAW(int phases)
SCI_SETPOSITIONCACHE = 2514SCI_SETPOSITIONCACHE(int size)
SCI_SETPRINTCOLOURMODE = 2148SCI_SETPRINTCOLOURMODE(int mode)
SCI_SETPRINTMAGNIFICATION = 2146SCI_SETPRINTMAGNIFICATION(int magnification)
SCI_SETPRINTWRAPMODE = 2406SCI_SETPRINTWRAPMODE(int wrapMode)
SCI_SETPROPERTY = 4004SCI_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 = 2648SCI_SETPUNCTUATIONCHARS(<unused>, const char *characters)
SCI_SETREADONLY = 2171SCI_SETREADONLY(bool readOnly)
SCI_SETRECTANGULARSELECTIONANCHOR = 2590SCI_SETRECTANGULARSELECTIONANCHOR(position anchor)
SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2594SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE(position space)
SCI_SETRECTANGULARSELECTIONCARET = 2588SCI_SETRECTANGULARSELECTIONCARET(position caret)
SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2592SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE(position space)
SCI_SETRECTANGULARSELECTIONMODIFIER = 2598SCI_SETRECTANGULARSELECTIONMODIFIER(int modifier)
SCI_SETREPRESENTATION = 2665SCI_SETREPRESENTATION(const char *encodedCharacter, const char *representation)
SCI_SETREPRESENTATIONAPPEARANCE = 2766SCI_SETREPRESENTATIONAPPEARANCE(const char *encodedCharacter, int appearance)
SCI_SETREPRESENTATIONCOLOUR = 2768SCI_SETREPRESENTATIONCOLOUR(const char *encodedCharacter, colouralpha colour)
SCI_SETSAVEPOINT = 2014SCI_SETSCROLLWIDTH = 2274SCI_SETSCROLLWIDTH(int pixelWidth)
SCI_SETSCROLLWIDTHTRACKING = 2516SCI_SETSCROLLWIDTHTRACKING(bool tracking)
SCI_SETSEARCHFLAGS = 2198SCI_SETSEARCHFLAGS(int searchFlags)
SCI_SETSEL = 2160SCI_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.SCI_SETSELECTION = 2572SCI_SETSELECTION(position caret, position anchor)
Set a single selection from anchor to caret as the only selection.SCI_SETSELECTIONEND = 2144SCI_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 = 2763SCI_SETSELECTIONLAYER(int layer)
SCI_SETSELECTIONMODE = 2422SCI_SETSELECTIONMODE(int selectionMode)
SCI_SETSELECTIONNANCHOR = 2578SCI_SETSELECTIONNANCHOR(int selection, position anchor)
SCI_SETSELECTIONNANCHORVIRTUALSPACE = 2582SCI_SETSELECTIONNANCHORVIRTUALSPACE(int selection, position space)
SCI_SETSELECTIONNCARET = 2576SCI_SETSELECTIONNCARET(int selection, position caret)
SCI_SETSELECTIONNCARETVIRTUALSPACE = 2580SCI_SETSELECTIONNCARETVIRTUALSPACE(int selection, position space)
SCI_SETSELECTIONNEND = 2586SCI_SETSELECTIONNEND(int selection, position caret)
SCI_SETSELECTIONNSTART = 2584SCI_SETSELECTIONNSTART(int selection, position anchor)
SCI_SETSELECTIONSERIALIZED = 2784SCI_SETSELECTIONSERIALIZED(<unused>, const char *selectionString)
SCI_SETSELECTIONSTART = 2142SCI_SETSELECTIONSTART(position anchor)
SCI_SETSELEOLFILLED = 2480SCI_SETSELEOLFILLED(bool filled)
SCI_SETSTATUS = 2382SCI_SETSTATUS(int status)
SCI_SETSTYLING = 2033SCI_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 = 2073SCI_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 = 2699SCI_SETTABDRAWMODE(int tabDrawMode)
SCI_SETTABINDENTS = 2260SCI_SETTABINDENTS(bool tabIndents)
SCI_SETTABMINIMUMWIDTH = 2724SCI_SETTABMINIMUMWIDTH(int pixels)
SCI_SETTABWIDTH = 2036SCI_SETTABWIDTH(int tabWidth)
SCI_SETTARGETEND = 2192SCI_SETTARGETEND(position end)
SCI_SETTARGETENDVIRTUALSPACE = 2730SCI_SETTARGETENDVIRTUALSPACE(position space)
SCI_SETTARGETRANGE = 2686SCI_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 = 2190SCI_SETTARGETSTART(position start)
SCI_SETTARGETSTARTVIRTUALSPACE = 2728SCI_SETTARGETSTARTVIRTUALSPACE(position space)
SCI_SETTECHNOLOGY = 2630SCI_SETTECHNOLOGY(int technology)
SCI_SETTEXT = 2181SCI_SETTEXT(<unused>, const char *text)
This replaces all the text in the document with the zero terminated text string you pass in.SCI_SETUNDOCOLLECTION = 2012SCI_SETUNDOCOLLECTION(bool collectUndo)
SCI_SETUNDOCURRENT = 2797SCI_SETUNDODETACH = 2793SCI_SETUNDOSAVEPOINT = 2791SCI_SETUNDOSELECTIONHISTORY = 2782SCI_SETUNDOSELECTIONHISTORY(int undoSelectionHistory)
SCI_SETUNDOTENTATIVE = 2795SCI_SETUSETABS = 2124SCI_SETUSETABS(bool useTabs)
SCI_SETVIEWEOL = 2356SCI_SETVIEWEOL(bool visible)
SCI_SETVIEWWS = 2021SCI_SETVIEWWS(int viewWS)
SCI_SETVIRTUALSPACEOPTIONS = 2596SCI_SETVIRTUALSPACEOPTIONS(int virtualSpaceOptions)
SCI_SETVISIBLEPOLICY = 2394SCI_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 = 2280SCI_SETVSCROLLBAR(bool visible)
SCI_SETWHITESPACEBACK = 2085SCI_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 = 2443SCI_SETWHITESPACECHARS(<unused>, const char *characters)
SCI_SETWHITESPACEFORE = 2084SCI_SETWHITESPACEFORE(bool useSetting, colour fore)
SCI_SETWHITESPACESIZE = 2086SCI_SETWHITESPACESIZE(int size)
SCI_SETWORDCHARS = 2077SCI_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 = 2472SCI_SETWRAPINDENTMODE(int wrapIndentMode)
SCI_SETWRAPMODE = 2268SCI_SETWRAPMODE(int wrapMode)
SCI_SETWRAPSTARTINDENT = 2464SCI_SETWRAPSTARTINDENT(int indent)
SCI_SETWRAPVISUALFLAGS = 2460SCI_SETWRAPVISUALFLAGS(int wrapVisualFlags)
SCI_SETWRAPVISUALFLAGSLOCATION = 2462SCI_SETWRAPVISUALFLAGSLOCATION(int wrapVisualFlagsLocation)
SCI_SETXCARETPOLICY = 2402SCI_SETXCARETPOLICY(int caretPolicy, int caretSlop)
SCI_SETXOFFSET = 2397SCI_SETXOFFSET(int xOffset)
SCI_SETYCARETPOLICY = 2403SCI_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 = 2373SCI_SETZOOM(int zoomInPoints)
SCI_SHOWLINES = 2226SCI_SHOWLINES(line lineStart, line lineEnd)
SCI_START = 2000SCI_STARTRECORD = 3001SCI_STARTSTYLING = 2032SCI_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 = 3002SCI_STUTTEREDPAGEDOWN = 2437SCI_STUTTEREDPAGEDOWNEXTEND = 2438SCI_STUTTEREDPAGEUP = 2435SCI_STUTTEREDPAGEUPEXTEND = 2436SCI_STYLECLEARALL = 2050SCI_STYLEGETBACK = 2482SCI_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 = 2483SCI_STYLEGETBOLD(int style) -> bool
SCI_STYLEGETCASE = 2489SCI_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 = 2492SCI_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 = 2490SCI_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 = 2255SCI_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 = 2487SCI_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 = 2486SCI_STYLEGETFONT(int style, char *fontName NUL-terminated) -> int
SCI_STYLEGETFORE = 2481SCI_STYLEGETFORE(int style) -> colour
SCI_STYLEGETHOTSPOT = 2493SCI_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 = 2257SCI_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 = 2484SCI_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 = 2485SCI_STYLEGETSIZE(int style) -> int
SCI_STYLEGETSIZEFRACTIONAL = 2062SCI_STYLEGETSIZEFRACTIONAL(int style) -> int
SCI_STYLEGETSTRETCH = 2259SCI_STYLEGETSTRETCH(int style) -> int
SCI_STYLEGETUNDERLINE = 2488SCI_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 = 2491SCI_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 = 2064SCI_STYLEGETWEIGHT(int style) -> int
SCI_STYLERESETDEFAULT = 2058SCI_STYLESETBACK = 2052SCI_STYLESETBACK(int style, colour back)
SCI_STYLESETBOLD = 2053SCI_STYLESETBOLD(int style, bool bold)
SCI_STYLESETCASE = 2060SCI_STYLESETCASE(int style, int caseVisible)
SCI_STYLESETCHANGEABLE = 2099SCI_STYLESETCHANGEABLE(int style, bool changeable)
SCI_STYLESETCHARACTERSET = 2066SCI_STYLESETCHARACTERSET(int style, int characterSet)
SCI_STYLESETCHECKMONOSPACED = 2254SCI_STYLESETCHECKMONOSPACED(int style, bool checkMonospaced)
SCI_STYLESETEOLFILLED = 2057SCI_STYLESETEOLFILLED(int style, bool eolFilled)
SCI_STYLESETFONT = 2056SCI_STYLESETFONT(int style, const char *fontName)
SCI_STYLESETFORE = 2051SCI_STYLESETFORE(int style, colour fore)
SCI_STYLESETHOTSPOT = 2409SCI_STYLESETHOTSPOT(int style, bool hotspot)
SCI_STYLESETINVISIBLEREPRESENTATION = 2256SCI_STYLESETINVISIBLEREPRESENTATION(int style, const char *representation)
SCI_STYLESETITALIC = 2054SCI_STYLESETITALIC(int style, bool italic)
SCI_STYLESETSIZE = 2055SCI_STYLESETSIZE(int style, int sizePoints)
SCI_STYLESETSIZEFRACTIONAL = 2061SCI_STYLESETSIZEFRACTIONAL(int style, int sizeHundredthPoints)
SCI_STYLESETSTRETCH = 2258SCI_STYLESETSTRETCH(int style, int stretch)
SCI_STYLESETUNDERLINE = 2059SCI_STYLESETUNDERLINE(int style, bool underline)
SCI_STYLESETVISIBLE = 2074SCI_STYLESETVISIBLE(int style, bool visible)
SCI_STYLESETWEIGHT = 2063SCI_STYLESETWEIGHT(int style, int weight)
SCI_SUPPORTSFEATURE = 2750SCI_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 = 2607SCI_TAB = 2327SCI_TAGSOFSTYLE = 4031SCI_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 = 2447SCI_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 = 2287SCI_TARGETWHOLEDOCUMENT = 2690SCI_TEXTHEIGHT = 2279SCI_TEXTHEIGHT(line line) -> int
This returns the height in pixels of a particular line. Currently all lines are the same height.SCI_TEXTWIDTH = 2276SCI_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 = 2459SCI_TOGGLEFOLD = 2231SCI_TOGGLEFOLD(line line)
SCI_TOGGLEFOLDSHOWTEXT = 2700SCI_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 = 2176SCI_UPPERCASE = 2341SCI_USEPOPUP = 2371SCI_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 = 2117SCI_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 = 2331SCI_VCHOMEDISPLAY = 2652SCI_VCHOMEDISPLAYEXTEND = 2653SCI_VCHOMEEXTEND = 2332SCI_VCHOMERECTEXTEND = 2431SCI_VCHOMEWRAP = 2453SCI_VCHOMEWRAPEXTEND = 2454SCI_VERTICALCENTRECARET = 2619SCI_VISIBLEFROMDOCLINE = 2220SCI_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 = 2267SCI_WORDENDPOSITION(position pos, bool onlyWordCharacters) -> position
SCI_WORDLEFT = 2308SCI_WORDLEFTEND = 2439SCI_WORDLEFTENDEXTEND = 2440SCI_WORDLEFTEXTEND = 2309SCI_WORDPARTLEFT = 2390SCI_WORDPARTLEFTEXTEND = 2391SCI_WORDPARTRIGHT = 2392SCI_WORDPARTRIGHTEXTEND = 2393SCI_WORDRIGHT = 2310SCI_WORDRIGHTEND = 2441SCI_WORDRIGHTENDEXTEND = 2442SCI_WORDRIGHTEXTEND = 2311SCI_WORDSTARTPOSITION = 2266SCI_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 = 2235SCI_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 = 2333SCI_ZOOMOUT = 2334SCK_ADD = 310SCK_BACK = 8SCK_DELETE = 308SCK_DIVIDE = 312SCK_DOWN = 300SCK_END = 305SCK_ESCAPE = 7SCK_HOME = 304SCK_INSERT = 309SCK_LEFT = 302SCK_MENU = 315SCK_NEXT = 307SCK_PRIOR = 306SCK_RETURN = 13SCK_RIGHT = 303SCK_RWIN = 314SCK_SUBTRACT = 311SCK_TAB = 9SCK_UP = 301SCK_WIN = 313SCMOD_ALT = 4SCMOD_CTRL = 2SCMOD_META = 16SCMOD_NORM = 0SCMOD_SHIFT = 1SCMOD_SUPER = 8SCN_AUTOCCANCELLED = 2025SCN_AUTOCCHARDELETED = 2026SCN_AUTOCCOMPLETED = 2030SCN_AUTOCSELECTION = 2022SCN_AUTOCSELECTIONCHANGE = 2032SCN_CALLTIPCLICK = 2021SCN_CHARADDED = 2001SCN_DOUBLECLICK = 2006SCN_DWELLEND = 2017SCN_DWELLSTART = 2016SCN_FOCUSIN = 2028SCN_FOCUSOUT = 2029SCN_FOLDINGSTATECHANGED = 2081SCN_HOTSPOTCLICK = 2019SCN_HOTSPOTDOUBLECLICK = 2020SCN_HOTSPOTRELEASECLICK = 2027SCN_INDICATORCLICK = 2023SCN_INDICATORRELEASE = 2024SCN_KEY = 2005SCN_MACRORECORD = 2009SCN_MARGINCLICK = 2010SCN_MARGINRIGHTCLICK = 2031SCN_MODIFIED = 2008SCN_MODIFYATTEMPTRO = 2004SCN_NEEDSHOWN = 2011SCN_PAINTED = 2013SCN_SAVEPOINTLEFT = 2003SCN_SAVEPOINTREACHED = 2002SCN_STYLENEEDED = 2000SCN_UPDATEUI = 2007SCN_URIDROPPED = 2015SCN_USERLISTSELECTION = 2014SCN_ZOOM = 2018SCTD_LONGARROW = 0SCTD_STRIKEOUT = 1SCVS_NONE = 0SCVS_NOWRAPLINESTART = 4SCVS_RECTANGULARSELECTION = 1SCVS_USERACCESSIBLE = 2SCWS_INVISIBLE = 0SCWS_VISIBLEAFTERINDENT = 2SCWS_VISIBLEALWAYS = 1SCWS_VISIBLEONLYININDENT = 3SC_ACCESSIBILITY_DISABLED = 0SC_ACCESSIBILITY_ENABLED = 1SC_AC_COMMAND = 5SC_AC_DOUBLECLICK = 2SC_AC_FILLUP = 1SC_AC_NEWLINE = 4SC_AC_SINGLE_CHOICE = 6SC_AC_TAB = 3SC_ALPHA_OPAQUE = 255SC_ALPHA_TRANSPARENT = 0SC_AUTOCOMPLETE_FIXED_SIZE = 1SC_AUTOCOMPLETE_NORMAL = 0SC_AUTOCOMPLETE_SELECT_FIRST_ITEM = 2SC_AUTOMATICFOLD_CHANGE = 4SC_AUTOMATICFOLD_CLICK = 2SC_AUTOMATICFOLD_NONE = 0SC_AUTOMATICFOLD_SHOW = 1SC_CACHE_CARET = 1SC_CACHE_DOCUMENT = 3SC_CACHE_NONE = 0SC_CACHE_PAGE = 2SC_CARETSTICKY_OFF = 0SC_CARETSTICKY_ON = 1SC_CARETSTICKY_WHITESPACE = 2SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE = 1SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE = 0SC_CASE_CAMEL = 3SC_CASE_LOWER = 2SC_CASE_MIXED = 0SC_CASE_UPPER = 1SC_CHANGE_HISTORY_DISABLED = 0SC_CHANGE_HISTORY_ENABLED = 1SC_CHANGE_HISTORY_INDICATORS = 4SC_CHANGE_HISTORY_MARKERS = 2SC_CHARACTERSOURCE_DIRECT_INPUT = 0SC_CHARACTERSOURCE_IME_RESULT = 2SC_CHARACTERSOURCE_TENTATIVE_INPUT = 1SC_CHARSET_8859_15 = 1000SC_CHARSET_ANSI = 0SC_CHARSET_ARABIC = 178SC_CHARSET_BALTIC = 186SC_CHARSET_CHINESEBIG5 = 136SC_CHARSET_CYRILLIC = 1251SC_CHARSET_DEFAULT = 1SC_CHARSET_EASTEUROPE = 238SC_CHARSET_GB2312 = 134SC_CHARSET_GREEK = 161SC_CHARSET_HANGUL = 129SC_CHARSET_HEBREW = 177SC_CHARSET_JOHAB = 130SC_CHARSET_MAC = 77SC_CHARSET_OEM = 255SC_CHARSET_OEM866 = 866SC_CHARSET_RUSSIAN = 204SC_CHARSET_SHIFTJIS = 128SC_CHARSET_SYMBOL = 2SC_CHARSET_THAI = 222SC_CHARSET_TURKISH = 162SC_CHARSET_VIETNAMESE = 163SC_CP_UTF8 = 65001SC_CURSORARROW = 2SC_CURSORNORMAL = 4294967295SC_CURSORREVERSEARROW = 7SC_CURSORWAIT = 4SC_DOCUMENTOPTION_DEFAULT = 0SC_DOCUMENTOPTION_STYLES_NONE = 1SC_DOCUMENTOPTION_TEXT_LARGE = 256SC_EFF_QUALITY_ANTIALIASED = 2SC_EFF_QUALITY_DEFAULT = 0SC_EFF_QUALITY_LCD_OPTIMIZED = 3SC_EFF_QUALITY_MASK = 15SC_EFF_QUALITY_NON_ANTIALIASED = 1SC_ELEMENT_CARET = 40SC_ELEMENT_CARET : colouralpha
SC_ELEMENT_CARET_ADDITIONAL = 41SC_ELEMENT_CARET_ADDITIONAL : colouralpha
SC_ELEMENT_CARET_LINE_BACK = 50SC_ELEMENT_CARET_LINE_BACK : colouralpha
SC_ELEMENT_FOLD_LINE = 80SC_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 = 81SC_ELEMENT_HIDDEN_LINE : colouralpha
SC_ELEMENT_HOT_SPOT_ACTIVE = 70SC_ELEMENT_HOT_SPOT_ACTIVE : colouralpha
SC_ELEMENT_HOT_SPOT_ACTIVE_BACK = 71SC_ELEMENT_HOT_SPOT_ACTIVE_BACK : colouralpha
SC_ELEMENT_LIST = 0SC_ELEMENT_LIST : colouralpha
SC_ELEMENT_LIST_BACK = 1SC_ELEMENT_LIST_BACK : colouralpha
SC_ELEMENT_LIST_SELECTED = 2SC_ELEMENT_LIST_SELECTED : colouralpha
SC_ELEMENT_LIST_SELECTED_BACK = 3SC_ELEMENT_LIST_SELECTED_BACK : colouralpha
The colours used for autocompletion lists may be customised on Win32 using SCI_SETELEMENTCOLOUR .SC_ELEMENT_SELECTION_ADDITIONAL_BACK = 13SC_ELEMENT_SELECTION_ADDITIONAL_BACK : colouralpha
SC_ELEMENT_SELECTION_ADDITIONAL_TEXT = 12SC_ELEMENT_SELECTION_ADDITIONAL_TEXT : colouralpha
SC_ELEMENT_SELECTION_BACK = 11SC_ELEMENT_SELECTION_BACK : colouralpha
SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK = 19SC_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 = 18SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT : colouralpha
SC_ELEMENT_SELECTION_INACTIVE_BACK = 17SC_ELEMENT_SELECTION_INACTIVE_BACK : colouralpha
SC_ELEMENT_SELECTION_INACTIVE_TEXT = 16SC_ELEMENT_SELECTION_INACTIVE_TEXT : colouralpha
SC_ELEMENT_SELECTION_SECONDARY_BACK = 15SC_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 = 14SC_ELEMENT_SELECTION_SECONDARY_TEXT : colouralpha
SC_ELEMENT_SELECTION_TEXT = 10SC_ELEMENT_SELECTION_TEXT : colouralpha
SC_ELEMENT_WHITE_SPACE = 60SC_ELEMENT_WHITE_SPACE : colouralpha
SC_ELEMENT_WHITE_SPACE_BACK = 61SC_ELEMENT_WHITE_SPACE_BACK : colouralpha
SC_EOL_CR = 1SC_EOL_CRLF = 0SC_EOL_LF = 2SC_FOLDACTION_CONTRACT = 0SC_FOLDACTION_CONTRACT_EVERY_LEVEL = 4SC_FOLDACTION_EXPAND = 1SC_FOLDACTION_TOGGLE = 2SC_FOLDDISPLAYTEXT_BOXED = 2SC_FOLDDISPLAYTEXT_HIDDEN = 0SC_FOLDDISPLAYTEXT_STANDARD = 1SC_FOLDFLAG_LEVELNUMBERS = 64SC_FOLDFLAG_LINEAFTER_CONTRACTED = 16SC_FOLDFLAG_LINEAFTER_EXPANDED = 8SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 4SC_FOLDFLAG_LINEBEFORE_EXPANDED = 2SC_FOLDFLAG_LINESTATE = 128SC_FOLDFLAG_NONE = 0SC_FOLDLEVELBASE = 1024SC_FOLDLEVELHEADERFLAG = 8192SC_FOLDLEVELNONE = 0SC_FOLDLEVELNUMBERMASK = 4095SC_FOLDLEVELWHITEFLAG = 4096SC_FONT_SIZE_MULTIPLIER = 100SC_IDLESTYLING_AFTERVISIBLE = 2SC_IDLESTYLING_ALL = 3SC_IDLESTYLING_NONE = 0SC_IDLESTYLING_TOVISIBLE = 1SC_IME_INLINE = 1SC_IME_WINDOWED = 0SC_INDICFLAG_NONE = 0SC_INDICFLAG_VALUEFORE = 1SC_INDICVALUEBIT = 16777216SC_INDICVALUEMASK = 16777215SC_IV_LOOKBOTH = 3SC_IV_LOOKFORWARD = 2SC_IV_NONE = 0SC_IV_REAL = 1SC_LASTSTEPINUNDOREDO = 256SC_LAYER_BASE = 0SC_LAYER_OVER_TEXT = 2SC_LAYER_UNDER_TEXT = 1SC_LINECHARACTERINDEX_NONE = 0SC_LINECHARACTERINDEX_UTF16 = 2SC_LINECHARACTERINDEX_UTF32 = 1SC_LINE_END_TYPE_DEFAULT = 0SC_LINE_END_TYPE_UNICODE = 1SC_MARGINOPTION_NONE = 0SC_MARGINOPTION_SUBLINESELECT = 1SC_MARGIN_BACK = 2SC_MARGIN_COLOUR = 6SC_MARGIN_FORE = 3SC_MARGIN_NUMBER = 1SC_MARGIN_RTEXT = 5SC_MARGIN_SYMBOL = 0SC_MARGIN_TEXT = 4SC_MARKNUM_FOLDER = 30SC_MARKNUM_FOLDEREND = 25SC_MARKNUM_FOLDERMIDTAIL = 27SC_MARKNUM_FOLDEROPEN = 31SC_MARKNUM_FOLDEROPENMID = 26SC_MARKNUM_FOLDERSUB = 29SC_MARKNUM_FOLDERTAIL = 28SC_MARKNUM_HISTORY_MODIFIED = 23SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED = 24SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN = 21SC_MARKNUM_HISTORY_SAVED = 22SC_MARK_ARROW = 2SC_MARK_ARROWDOWN = 6SC_MARK_ARROWS = 24SC_MARK_AVAILABLE = 28SC_MARK_BACKGROUND = 22SC_MARK_BAR = 33SC_MARK_BOOKMARK = 31SC_MARK_BOXMINUS = 14SC_MARK_BOXMINUSCONNECTED = 15SC_MARK_BOXPLUS = 12SC_MARK_BOXPLUSCONNECTED = 13SC_MARK_CHARACTER = 10000SC_MARK_CIRCLE = 0SC_MARK_CIRCLEMINUS = 20SC_MARK_CIRCLEMINUSCONNECTED = 21SC_MARK_CIRCLEPLUS = 18SC_MARK_CIRCLEPLUSCONNECTED = 19SC_MARK_DOTDOTDOT = 23SC_MARK_EMPTY = 5SC_MARK_FULLRECT = 26SC_MARK_LCORNER = 10SC_MARK_LCORNERCURVE = 16SC_MARK_LEFTRECT = 27SC_MARK_MINUS = 7SC_MARK_PIXMAP = 25SC_MARK_PLUS = 8SC_MARK_RGBAIMAGE = 30SC_MARK_ROUNDRECT = 1SC_MARK_SHORTARROW = 4SC_MARK_SMALLRECT = 3SC_MARK_TCORNER = 11SC_MARK_TCORNERCURVE = 17SC_MARK_UNDERLINE = 29SC_MARK_VERTICALBOOKMARK = 32SC_MARK_VLINE = 9SC_MASK_FOLDERS = 4261412864SC_MASK_HISTORY = 31457280SC_MAX_MARGIN = 4SC_MODEVENTMASKALL = 8388607SC_MOD_BEFOREDELETE = 2048SC_MOD_BEFOREINSERT = 1024SC_MOD_CHANGEANNOTATION = 131072SC_MOD_CHANGEANNOTATION line
SC_MOD_CHANGEEOLANNOTATION = 4194304SC_MOD_CHANGEEOLANNOTATION line
SC_MOD_CHANGEFOLD = 8SC_MOD_CHANGEINDICATOR = 16384SC_MOD_CHANGELINESTATE = 32768SC_MOD_CHANGELINESTATE SCI_SETLINESTATE was called. line
SC_MOD_CHANGEMARGIN = 65536SC_MOD_CHANGEMARGIN line
SC_MOD_CHANGEMARKER = 512SC_MOD_CHANGESTYLE = 4SC_MOD_CHANGETABSTOPS = 2097152SC_MOD_CHANGETABSTOPS SCI_CLEARTABSTOPS or SCI_ADDTABSTOP was called. line
SC_MOD_CONTAINER = 262144SC_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 = 2SC_MOD_INSERTCHECK = 1048576SC_MOD_INSERTCHECK SCI_CHANGEINSERTION . No other modifications may be made in this handler. position, length, text SC_MULTILINEUNDOREDO SC_STARTACTION
SC_MOD_INSERTTEXT = 1SC_MOD_LEXERSTATE = 524288SC_MOD_LEXERSTATE position, length
SC_MOD_NONE = 0SC_MULTIAUTOC_EACH = 1SC_MULTIAUTOC_ONCE = 0SC_MULTILINEUNDOREDO = 4096SC_MULTIPASTE_EACH = 1SC_MULTIPASTE_ONCE = 0SC_MULTISTEPUNDOREDO = 128SC_ORDER_CUSTOM = 2SC_ORDER_PERFORMSORT = 1SC_ORDER_PRESORTED = 0SC_PERFORMED_REDO = 64SC_PERFORMED_UNDO = 32SC_PERFORMED_USER = 16SC_PHASES_MULTIPLE = 2SC_PHASES_TWO = 1SC_POPUP_ALL = 1SC_POPUP_NEVER = 0SC_POPUP_TEXT = 2SC_PRINT_BLACKONWHITE = 2SC_PRINT_COLOURONWHITE = 3SC_PRINT_COLOURONWHITEDEFAULTBG = 4SC_PRINT_INVERTLIGHT = 1SC_PRINT_NORMAL = 0SC_PRINT_SCREENCOLOURS = 5SC_REPRESENTATION_BLOB = 1SC_REPRESENTATION_COLOUR = 16SC_REPRESENTATION_PLAIN = 0SC_SEARCHRESULT_LINEBUFFERMAXLENGTH = 2048SC_SEL_LINES = 2SC_SEL_RECTANGLE = 1SC_SEL_STREAM = 0SC_SEL_THIN = 3SC_STARTACTION = 8192SC_STATUS_BADALLOC = 2SC_STATUS_FAILURE = 1SC_STATUS_OK = 0SC_STATUS_WARN_REGEX = 1001SC_STATUS_WARN_START = 1000SC_STRETCH_CONDENSED = 3SC_STRETCH_EXPANDED = 7SC_STRETCH_EXTRA_CONDENSED = 2SC_STRETCH_EXTRA_EXPANDED = 8SC_STRETCH_NORMAL = 5SC_STRETCH_SEMI_CONDENSED = 4SC_STRETCH_SEMI_EXPANDED = 6SC_STRETCH_ULTRA_CONDENSED = 1SC_STRETCH_ULTRA_EXPANDED = 9SC_SUPPORTS_FRACTIONAL_STROKE_WIDTH = 2SC_SUPPORTS_LINE_DRAWS_FINAL = 0SC_SUPPORTS_PIXEL_DIVISIONS = 1SC_SUPPORTS_PIXEL_MODIFICATION = 4SC_SUPPORTS_THREAD_SAFE_MEASURE_WIDTHS = 5SC_SUPPORTS_TRANSLUCENT_STROKE = 3SC_TECHNOLOGY_DEFAULT = 0SC_TECHNOLOGY_DIRECTWRITE = 1SC_TECHNOLOGY_DIRECTWRITEDC = 3SC_TECHNOLOGY_DIRECTWRITERETAIN = 2SC_TECHNOLOGY_DIRECT_WRITE_1 = 4SC_TIME_FOREVER = 10000000SC_TYPE_BOOLEAN = 0SC_TYPE_INTEGER = 1SC_TYPE_STRING = 2SC_UNDO_SELECTION_HISTORY_DISABLED = 0SC_UNDO_SELECTION_HISTORY_ENABLED = 1SC_UNDO_SELECTION_HISTORY_SCROLL = 2SC_UPDATE_CONTENT = 1SC_UPDATE_H_SCROLL = 8SC_UPDATE_NONE = 0SC_UPDATE_SELECTION = 2SC_UPDATE_V_SCROLL = 4SC_WEIGHT_BOLD = 700SC_WEIGHT_NORMAL = 400SC_WEIGHT_SEMIBOLD = 600SC_WRAPINDENT_DEEPINDENT = 3SC_WRAPINDENT_FIXED = 0SC_WRAPINDENT_INDENT = 2SC_WRAPINDENT_SAME = 1SC_WRAPVISUALFLAGLOC_DEFAULT = 0SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 1SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 2SC_WRAPVISUALFLAG_END = 1SC_WRAPVISUALFLAG_MARGIN = 4SC_WRAPVISUALFLAG_NONE = 0SC_WRAPVISUALFLAG_START = 2SC_WRAP_CHAR = 2SC_WRAP_NONE = 0SC_WRAP_WHITESPACE = 3SC_WRAP_WORD = 1STYLE_BRACEBAD = 35STYLE_BRACELIGHT = 34STYLE_CALLTIP = 38STYLE_CONTROLCHAR = 36STYLE_DEFAULT = 32STYLE_FOLDDISPLAYTEXT = 39STYLE_INDENTGUIDE = 37STYLE_LASTPREDEFINED = 39STYLE_LINENUMBER = 33STYLE_MAX = 255UNDO_MAY_COALESCE = 1UNDO_NONE = 0VISIBLE_SLOP = 1VISIBLE_STRICT = 4
Remarks
Autogenerated 2025-10-08