Platforms to show: All Mac Windows Linux Cross-Platform

ScintillaStyleMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Scintilla MBS Scintilla Plugin 22.0 ✅ Yes ✅ Yes ❌ No ❌ No Desktop only
Function: The class for style definitions.
Styles are used to style the various text parts found via the lexer.
The lexer classifies words and assigns them a style, so you can now define how to style the words, e.g. bold keywords.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

Case Visibility

Constant Value Description
kCaseVisibleCamel 3 Camel case.
kCaseVisibleLower 2 Uppercase letters.
kCaseVisibleMixed 0 Mixed case.
kCaseVisibleUpper 1 Uppercase letters.

Font Weights

Constant Value Description
kFontWeightBold 700 Bold font.
kFontWeightNormal 400 Normal font, not bold.
kFontWeightSemiBold 600 Semi bold.

Common Styles

Constant Value Description
kStylesCommonBraceBad 35 This style sets the display attributes used when marking an unmatched brace with the BraceBadLight method.
kStylesCommonBraceLight 34 This style sets the attributes used when highlighting braces with the BraceHighlight method and when highlighting the corresponding indentation with HighlightGuide.
kStylesCommonCallTip 38 Call tips normally use the font attributes defined by kStylesCommonDefault. Use of CallTipUseStyle causes call tips to use this style instead. Only the font face name, font size, foreground and background colours and character set attributes are used.
kStylesCommonControlChar 36 This style sets the font used when drawing control characters. Only the font, size, bold, italics, and character set attributes are used and not the colour attributes. See also: ControlCharSymbol method.
kStylesCommonDefault 32 This style defines the attributes that all styles receive when the StyleClearAll method is used.
kStylesCommonFoldDisplayText 39 This is the style used for drawing text tags attached to folded text.
kStylesCommonIndentGuide 37 This style sets the foreground and background colours used when drawing the indentation guides.
kStylesCommonLastPredefined 39 To make it easier for client code to discover the range of styles that are predefined, this is set to the style number of the last predefined style.
kStylesCommonLineNumber 33 This style sets the attributes of the text used to display line numbers in a line number margin. The background colour set for this style also sets the background colour for all margins that do not have any folding mask bits set. That is, any margin for which mask & kMaskFolders is 0. See Mask in ScintillaMarginMBS class for more about masks.
kStylesCommonMax 255 This is not a style but is the number of the maximum style that can be set. Styles between kStylesCommonLastPredefined and kStylesCommonMax may be used.

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries

The items on this page are in the following plugins: MBS Scintilla Plugin.

ScintillaSpanMBS   -   SCNAccelerationConstraintMBS

The biggest plugin in space...

MBS Xojo Plugins

Start Chat