SyntaxColoring.ScriptIfLoopHighlight.SetEnabled
-----------------------------------------------

Sets whether to highlight if/loop blocks in script editor.

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

MBS( "SyntaxColoring.ScriptIfLoopHighlight.SetEnabled"; Value ) 

**MBS**( **"SyntaxColoring.ScriptIfLoopHighlight.SetEnabled";** /\* Sets whether to highlight if/loop blocks in script editor. \*/  
**$Value**) /\* The new setting.  
Pass 1 to enable or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting.   Pass 1 to enable or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Sets whether to highlight if/loop blocks in script editor.  
Default is enabled.  
This setting can be set via the preferences dialog, too.  
  
Supports transactions in FileMaker Pro 19.6 and newer.  
### Examples

Turn if/loop highlighting on:

 MBS ( "SyntaxColoring.ScriptIfLoopHighlight.SetEnabled"; 1 )  
Turn if/loop highlighting off:

 MBS ( "SyntaxColoring.ScriptIfLoopHighlight.SetEnabled"; 0 )  
### See also

- [SyntaxColoring.ScriptIfLoopHighlight.GetEnabled](SyntaxColoringScriptIfLoopHighlightGetEnabled.md)

### Blog Entries

- [Goodies 1: Script Coloring](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/01-ScriptColoring.shtml)
- [MBS FileMaker Plugin, version 6.5pr9](https://www.mbsplugins.de/archive/2016-12-05/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 22nd November 2016 , last changed 12nd June 2022

  
[SyntaxColoring.ScriptIfLoopHighlight.GetEnabled](SyntaxColoringScriptIfLoopHighlightGetEnabled.md) - [SyntaxColoring.ScriptSearchBox.GetEnabled](SyntaxColoringScriptSearchBoxGetEnabled.md)

[HTML Version](SyntaxColoringScriptIfLoopHighlightSetEnabled.shtml)