SyntaxColoring.SetScriptHighlightColor
--------------------------------------

Sets the highlight color.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SyntaxColoring](component_SyntaxColoring.md) | [5.4](newinversion54.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SyntaxColoring.SetScriptHighlightColor"; Color ) 

**MBS**( **"SyntaxColoring.SetScriptHighlightColor";** /\* Sets the highlight color. \*/  
**$Color**) /\* The color value.   
Can be one of a few english color names or "#123456" notation like in html.e.g. "red" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| 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](SyntaxColoringCopyButtonSetEnabled.md)"; 1)  
MBS ("[SyntaxColoring.ScriptSearchBox.SetEnabled](SyntaxColoringScriptSearchBoxSetEnabled.md)"; 1)  
MBS ("[SyntaxColoring.ScriptGoToBox.SetEnabled](SyntaxColoringScriptGoToBoxSetEnabled.md)"; 1)  
MBS ("[SyntaxColoring.RelationshipGraphSearchBox.SetEnabled](SyntaxColoringRelationshipGraphSearchBoxSetEnabled.md)"; 1)  
MBS ( "[SyntaxColoring.CheckVariableDeclaration.Enable](SyntaxColoringCheckVariableDeclarationEnable.md)" )  
MBS ( "[SyntaxColoring.LineNumbers.Enable](SyntaxColoringLineNumbersEnable.md)" )  
MBS ( "SyntaxColoring.SetScriptHighlightColor"; "#CCCCFF" )  
Turn it off:

 MBS ( "SyntaxColoring.SetScriptHighlightColor"; "" )  
### See also

- [SyntaxColoring.CheckVariableDeclaration.Enabled](SyntaxColoringCheckVariableDeclarationEnabled.md)
- [SyntaxColoring.CopyButton.SetEnabled](SyntaxColoringCopyButtonSetEnabled.md)
- [SyntaxColoring.GetScriptHighlightColor](SyntaxColoringGetScriptHighlightColor.md)
- [SyntaxColoring.GetScriptSearchColor](SyntaxColoringGetScriptSearchColor.md)
- [SyntaxColoring.LineNumbers.Enable](SyntaxColoringLineNumbersEnable.md)
- [SyntaxColoring.RelationshipGraphSearchBox.SetEnabled](SyntaxColoringRelationshipGraphSearchBoxSetEnabled.md)
- [SyntaxColoring.ScriptGoToBox.SetEnabled](SyntaxColoringScriptGoToBoxSetEnabled.md)
- [SyntaxColoring.ScriptSearchBox.SetEnabled](SyntaxColoringScriptSearchBoxSetEnabled.md)
- [SyntaxColoring.SetScriptLoopColor](SyntaxColoringSetScriptLoopColor.md)
- [SyntaxColoring.SetScriptSearchColor](SyntaxColoringSetScriptSearchColor.md)

### Blog Entries

- [Goodies 19: Script highlight color](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/19-Scripthighlightcolor.shtml)
- [MBS FileMaker Plugin, version 5.4pr1](https://www.mbsplugins.de/archive/2015-10-11/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2015, Seite 30](https://filemaker-magazin.de/neuigkeit/3845-Appetithappen-FMM_201505)

This function is free to use.

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

  
[SyntaxColoring.SetRememberColumnWidths](SyntaxColoringSetRememberColumnWidths.md) - [SyntaxColoring.SetScriptIfColor](SyntaxColoringSetScriptIfColor.md)

[HTML Version](SyntaxColoringSetScriptHighlightColor.shtml)