Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

SyntaxColoring.SetScriptHighlightColor

Sets the highlight color.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SyntaxColoring 5.4 Yes No No No No

MBS( "SyntaxColoring.SetScriptHighlightColor"; Color )

Parameters

Parameter Description Example value
Color The color value. Can be one of a few english color names or "#123456" notation like in html. "red"

Result

Returns OK or error.

Description

Sets the highlight color.
If a color is set, the MBS Plugin overlays the selections in FileMaker script editor with this color.
Set to nothing to clear color.
Only for FileMaker 14 and newer.
Does not work if Syntax Highlighting is off.

Examples

Set to red with hex color:

MBS("SyntaxColoring.SetScriptHighlightColor"; "#FF0000")

Set to dark blue:

MBS("SyntaxColoring.SetScriptHighlightColor"; "blue")

Set to red:

MBS( "SyntaxColoring.SetScriptHighlightColor"; "#FF8888" )

Set to blue:

MBS( "SyntaxColoring.SetScriptHighlightColor"; "#CCCCFF" )

Enable all the plugin enhancements for FileMaker:

MBS("SyntaxColoring.CopyButton.SetEnabled"; 1)
MBS("SyntaxColoring.ScriptSearchBox.SetEnabled"; 1)
MBS("SyntaxColoring.ScriptGoToBox.SetEnabled"; 1)
MBS("SyntaxColoring.RelationGraphSearchBox.SetEnabled"; 1)
MBS( "SyntaxColoring.CheckVariableDeclaration.Enable" )
MBS( "SyntaxColoring.LineNumbers.Enable" )
MBS( "SyntaxColoring.SetScriptHighlightColor"; "#CCCCFF" )

See also

Created 9th October 2015, last changed 11st October 2015


SyntaxColoring.SetResizeFieldPicker   -   SyntaxColoring.SetScriptIfColor

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins