Platforms to show: All Mac Windows Linux Cross-Platform
Back to ScintillaControlMBS control.
ScintillaControlMBS.EnsureVisibleEnforcePolicy(line as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
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 EnsureVisibleEnforcePolicy(), the vertical caret policy set by VisiblePolicy() is then applied.
ScintillaControlMBS.EOLAnnotationClearAll
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
All the lines can be cleared of end of line annotations with EOLAnnotationClearAll which is equivalent to clearing each line (setting to 0) and then deleting other memory used for this feature.
ScintillaControlMBS.EOLAnnotationStyle(line as Integer) as ScintillaStyleMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
(Read and Write computed property)
ScintillaControlMBS.EOLAnnotationText(line as Integer) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
To clear end of line annotations assign EOLAnnotationText with a empty string. The whole of the text EOLANNOTATION on a line may be displayed in a particular style with
EOLAnnotationStyle(). Setting an end of line annotation will cause a kModificationFlagsChangeEOLAnnotation notification to be sent.
Only some style attributes are active in end of line annotations: font, size/sizeFractional, bold/weight, italics, fore, back, and characterSet.
End of Line Annotations are read-only lines of text at the end of each line of editable text. End of Line Annotations can be used to display an assembler version of code for debugging or to show diagnostic messages inline or to line up different versions of text in a merge tool.
(Read and Write computed property)
ScintillaControlMBS.ExpandChildren(Line as Integer, FoldLevel as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
By the time the container has received the notification that the line has changed, the fold level has already been set, so the container has to use the previous level in this call so that any range hidden underneath this line can be shown.
ScintillaControlMBS.FindColumn(line as Integer, column as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
It treats a multi-byte character as a single column. Column numbers, like lines start at 0.
ScintillaControlMBS.FindIndicatorFlash(start as Integer, ende as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
The indicator remains visible with FindIndicatorShow and fades out after showing for half a second with FindIndicatorFlash. FindIndicatorShow behaves similarly to the OS X TextEdit and Safari applications and is best suited to editing documentation where the search target is often a word. 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.
ScintillaControlMBS.FindIndicatorHide
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
ScintillaControlMBS.FindIndicatorShow(start as Integer, ende as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
The indicator remains visible with FindIndicatorShow and fades out after showing for half a second with FindIndicatorFlash. FindIndicatorShow behaves similarly to the OS X TextEdit and Safari applications and is best suited to editing documentation where the search target is often a word. 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.
ScintillaControlMBS.FindText(searchFlags as Integer, Text as String, byref RangeStart as Integer, byref RangeEnd as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
It does not use or move the current selection. The searchFlags argument controls the search type, which includes regular expression searches.
See kFindOption* constants.
You can search backwards to find the previous occurrence of a search string by setting the end of the search range before the start.
RangeStart and RangeEnd provide the range of positions in the document to search. You can search backwards by setting RangeEnd less than RangeStart. The text parameter holds the search pattern. If your language makes the use of _TextToFind difficult, you should consider using SearchInTarget instead.
The return value is -1 if the search fails or the position of the start of the found text if it succeeds. The RangeStart and RangeEnd parameters of TextToFind are filled in with the start and end positions of the found text.
ScintillaControlMBS.FoldAll(FoldAction as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Provides a higher-level approach to folding instead of setting expanded flags and showing or hiding individual lines.
An individual fold can be contracted/expanded/toggled with FoldLine(). To affect all child folds as well call FoldChildren().
To affect the entire document call FoldAll(). With kFoldActionToggle the first fold header in the document is examined to decide whether to expand or contract.
ScintillaControlMBS.FoldChildren(Line as Integer, FoldAction as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Provides a higher-level approach to folding instead of setting expanded flags and showing or hiding individual lines.
An individual fold can be contracted/expanded/toggled with FoldLine(). To affect all child folds as well call FoldChildren().
To affect the entire document call FoldAll(). With kFoldActionToggle the first fold header in the document is examined to decide whether to expand or contract.
ScintillaControlMBS.FoldExpanded(line as Integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
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).
If you just want to toggle the fold state of one line and handle all the lines that are dependent on it, it is much easier to use ToggleFold. You would use the FolderExpanded() method to process many folds without updating the display until you had finished. See FoldAll() and Expand() for examples of the use of these methods.
(Read and Write computed property)
ScintillaControlMBS.FoldLevel(line as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
The fold level is a number in the range 0 to kFoldLevelNumberMask (&h0FFF). However, the initial fold level is set to kFoldLevelBase (&h400) to allow unsigned arithmetic on folding levels. There are two addition flag bits. kFoldLevelWhiteFlag 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. kFoldLevelHeaderFlag indicates that the line is a header (fold point). kFoldLevelNone is a default level that may occur before folding.
Use FoldLevel(line) AND kFoldLevelNumberMask to get the fold level of a line. Likewise, use FoldLevel(line) AND kFoldLevelNumber*Flag to get the state of the flags. To set the fold level you must or in the associated flags. For instance, to set the level to thisLevel and mark a line as being a fold point use: FoldLevel(line) = thisLevel OR kFoldLevelHeaderFlag.
This method causes the display to redraw.
(Read and Write computed property)
ScintillaControlMBS.FoldLine(Line as Integer, FoldAction as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Provides a higher-level approach to folding instead of setting expanded flags and showing or hiding individual lines.
An individual fold can be contracted/expanded/toggled with FoldLine(). To affect all child folds as well call FoldChildren().
To affect the entire document call FoldAll(). With kFoldActionToggle the first fold header in the document is examined to decide whether to expand or contract.
ScintillaControlMBS.FoldParent(line as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
If no line is found, or if the header flags and fold levels are inconsistent, the return value is -1.
ScintillaControlMBS.FormatRange(draw as boolean, range as ScintillaRangeToFormatMBS) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 23.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Printed output shows text styling as on the screen, but it hides all margins except a line number margin. Markers do not appear in a margin but will change line background colour. The selection and caret are hidden.
Different platforms use different display surface ID types to print on. On Windows, these are HDCs., on GTK 3.x cairo_t *, and on Cocoa CGContextRef is used.
For macOS use Integer(g.Handle(Graphics.HandleTypes.CGContextRef)), for windows use Integer(g.Handle(Graphics.HandleTypes.HDC)), for Linux use Integer(g.Handle(Graphics.HandleTypes.CairoContext)) to get the handle.
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. 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.
The draw parameter controls if any output is done. Set this to false if you are paginating.
On Windows, hdc and hdcTarget should both be set to the device context handle of the output device (usually a printer). If you print to a metafile these will not be the same as Windows metafiles (unlike extended metafiles) do not implement the full API for returning information. In this case, set hdcTarget to the screen DC.
Page* properties define the rectangle {0, 0, maxX, maxY} where maxX+1 and maxY+1 are the number of physically printable pixels in x and y.
Area* properties define the rectangle to render the text in (which will, of course, fit within the rectangle defined by Page*).
CharacterRangePosition and CharacterRangeEnd define the start position and maximum position of characters to output. All of each line within this character range is drawn.
On Cocoa, the surface IDs for printing (draw=1) should be the graphics port of the current context (CGContextRef) when the view's drawRect method is called. The Surface IDs are not really used for measurement (draw=0) but can be set to a bitmap context to avoid runtime warnings.
On GTK, the surface IDs to use can be found from the printing context.
CharacterRangePosition and CharacterRangeEnd define the start position and maximum position of characters to output. All of each line within this character range is drawn.
When printing, the most tedious part is always working out what the margins should be to allow for the non-printable area of the paper and printing a header and footer. If you look at the printing code in SciTE, you will find that most of it is taken up with this. The loop that causes Scintilla to render text is quite simple if you strip out all the margin, non-printable area, header and footer code.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
ScintillaControlMBS.GetLineSelEndPosition(line as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
ScintillaControlMBS.GetLineSelStartPosition(line as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
ScintillaControlMBS.GetNextTabStop(line as Integer, x as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
ScintillaControlMBS.GetStyledText(RangeStart as Integer, RangeEnd as Integer, byref Styledtext as MemoryBlock) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Characters between the positions RangeStart and RangeEnd are copied to new MemoryBlock and put into Styledtext.
Positions outside the document return character codes and style bytes of 0.
ScintillaControlMBS.GetTextRange(RangeStart as Integer, RangeEnd as Integer, byref Text as String) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
If RangeEnd is -1, text is returned to the end of the document.
The return value is the length of the returned text.
ScintillaControlMBS.GotoLine(line as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
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.
ScintillaControlMBS.GotoPos(pos as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
It is equivalent to SetSel(caret, caret). The anchor position is set the same as the current position.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
This is needed more on GTK where focus handling is more complicated than on Windows.
ScintillaControlMBS.HideLines(lineStart as Integer, lineEnd as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
If kElementHiddenLine 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.
ScintillaControlMBS.HideSelection(hide as Boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
However, if you hide the selection, it is drawn as normal text.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
ScintillaControlMBS.HomeDisplay
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
ScintillaControlMBS.HomeDisplayExtend
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
ScintillaControlMBS.HomeExtend
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
ScintillaControlMBS.HomeRectExtend
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
ScintillaControlMBS.HomeWrapExtend
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
ScintillaControlMBS.IndexPositionFromLine(line as Integer, lineCharacterIndex as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
The document line of a particular character or code unit may be found by calling LineFromIndexPosition with one of kLineCharacterIndexTypeUtf32 (1) or kLineCharacterIndexTypeUtf16 (2). The inverse action, finds the starting position of a document line either in characters or code units from the document start by calling IndexPositionFromLine with the same lineCharacterIndex argument.
ScintillaControlMBS.Indicator(index as Integer) as ScintillaIndicatorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Index is from 0 to 35.
ScintillaControlMBS.IndicatorAllOnFor(pos as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Only the first 32 indicators are represented in the result so no IME indicators are included.
ScintillaControlMBS.IndicatorClearRange(start as Integer, lengthClear as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
ScintillaControlMBS.IndicatorFillRange(start as Integer, lengthFill as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
See IndicatorValue property.
ScintillaControlMBS.InitializeLexer(Lexer as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
To style files in different languages, different 'lexers' are used. These are objects that are called by Scintilla with a range of text and some context information and which then set styles and folding information for that range. Lexers for Scintilla are now provided by the Lexilla project.
Current list of buit-in lexers is:
a68k, abaqus, ada, apdl, as, asm, asn1, asy, au3, ave, avs, baan, bash, batch, bib, blitzbasic, bullant, caml, cil, clarion, clarionnocase, cmake, COBOL, coffeescript, conf, cpp, cppnocase, csound, css, d, dataflex, diff, DMAP, DMIS, ecl, edifact, eiffel, eiffelkw, erlang, errorlist, escript, f77, flagship, forth, fortran, freebasic, fsharp, gap, gui4cli, haskell, hollywood, hypertext, ihex, indent, inno, json, julia, kix, kvirc, latex, lisp, literatehaskell, lot, lout, lua, magiksf, makefile, markdown, matlab, maxima, metapost, mmixal, modula, mssql, mysql, nim, nimrod, nncrontab, nsis, null, octave, opal, oscript, pascal, powerbasic, perl, phpscript, PL/M, po, pov, powerpro, powershell, abl, props, ps, purebasic, python, r, raku, rebol, registry, ruby, rust, sas, scriptol, smalltalk, SML, sorcins, specman, spice, sql, srec, stata, fcST, TACL, tads3, TAL, tcl, tcmd, tehex, tex, txt2tags, vb, vbscript, verilog, vhdl, visualprolog, x12, xml, yaml, xojo
ScintillaControlMBS.InsertText(Text as String, atPosition as Integer = -1)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
If the current position is after the insertion point then it is moved along with its surrounding text but no scrolling is performed.
ScintillaControlMBS.IsRangeWord(start as Integer, ende as Integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
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.
ScintillaControlMBS.KeyWords(keyWordSet as Integer) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
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).
How these keywords are used is entirely up to the lexer. Some languages, such as HTML may contain embedded languages, VBScript and JavaScript are common for HTML. For HTML, key word set 0 is for HTML, 1 is for JavaScript and 2 is for VBScript, 3 is for Python, 4 is for PHP and 5 is for SGML and DTD keywords. Review the lexer code to see examples of keyword list. A fully conforming lexer sets the fourth argument of the LexerModule constructor to be a list of strings that describe the uses of the keyword lists.
Alternatively, you might use set 0 for general keywords, set 1 for keywords that cause indentation and set 2 for keywords that cause unindentation. Yet again, you might have a simple lexer that colours keywords and you could change languages by changing the keywords in set 0. There is nothing to stop you building your own keyword lists into the lexer, but this means that the lexer must be rebuilt if more keywords are added.
(Read and Write computed property)
ScintillaControlMBS.LastChild(line as Integer, level as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
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, LastChild(from, -1) returns the last line that would be in made visible or hidden by toggling the fold state.
ScintillaControlMBS.Line(line as Integer) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
ScintillaControlMBS.LineDelete
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
You can call it directly to perform this action if needed, e.g. from toolbar or menu command.
The items on this page are in the following plugins: MBS Scintilla Plugin.
