SyntaxColoring.SetScriptSearchColor
-----------------------------------

Sets the search color.

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

MBS( "SyntaxColoring.SetScriptSearchColor"; Color ) 

**MBS**( **"SyntaxColoring.SetScriptSearchColor";** /\* Sets the search 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 search color.  
Uses to highlight the script lines matching the current search terms.  
Set to nothing to use default color.  
Does not work if Syntax Highlighting is off.  
### Examples

Set to red:

 MBS ( "SyntaxColoring.SetScriptSearchColor"; "#FF8888" )  
### See also

- [SyntaxColoring.GetScriptHighlightColor](SyntaxColoringGetScriptHighlightColor.md)
- [SyntaxColoring.GetScriptIfColor](SyntaxColoringGetScriptIfColor.md)
- [SyntaxColoring.GetScriptLoopColor](SyntaxColoringGetScriptLoopColor.md)
- [SyntaxColoring.GetScriptSearchColor](SyntaxColoringGetScriptSearchColor.md)
- [SyntaxColoring.SetScriptHighlightColor](SyntaxColoringSetScriptHighlightColor.md)
- [SyntaxColoring.SetScriptIfColor](SyntaxColoringSetScriptIfColor.md)
- [SyntaxColoring.SetScriptLoopColor](SyntaxColoringSetScriptLoopColor.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.1pr1](https://www.mbsplugins.de/archive/2016-02-02/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 1st February 2016 , last changed 1st February 2016

  
[SyntaxColoring.SetScriptLoopColor](SyntaxColoringSetScriptLoopColor.md) - [SyntaxColoring.SetShowFieldAndTableIDs](SyntaxColoringSetShowFieldAndTableIDs.md)

[HTML Version](SyntaxColoringSetScriptSearchColor.shtml)