SyntaxColoring.Enable
---------------------

Enables Syntax coloring in FileMaker Scripts.

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

MBS( "SyntaxColoring.Enable" ) ### Parameters

none

### Result

Returns OK on success.

### Description

Enables Syntax coloring in FileMaker Scripts.  
Our color syntax code is very careful. It registers a callback to change the color just before FileMaker draws a text in the table in script editor. If future FileMaker versions, change something there, it's most likely the plugin will simply stop coloring and FileMaker works as before.  
Settings are saved in preferences files and you can use different settings in different FileMaker versions.  
Works with FileMaker 11 or newer.  
Syntax color can only be enabled in FileMaker Pro, not in server or runtime versions.  
See also [SyntaxColoring.Disable](SyntaxColoringDisable.md).  
This setting can be set via the preferences dialog, too.  
### Examples

Enable or disable syntax coloring:

 If (Enable)  
 Set Variable \[$r ; MBS ( "SyntaxColoring.Enable" )\]  
else  
 Set Variable \[$r ; MBS ( "[SyntaxColoring.Disable](SyntaxColoringDisable.md)" )\]  
end if  
### See also

- [SyntaxColoring.AddTag](SyntaxColoringAddTag.md)
- [SyntaxColoring.Disable](SyntaxColoringDisable.md)
- [SyntaxColoring.Enabled](SyntaxColoringEnabled.md)
- [SyntaxColoring.Format](SyntaxColoringFormat.md)
- [SyntaxColoring.GetTag](SyntaxColoringGetTag.md)

### Example Databases

- [Mac only/SyntaxColoring for Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/SyntaxColoring%20for%20Mac.shtml#2ScriptAnchor_)

### Blog Entries

- [Goodies 35: See invisible characters in FileMaker calculations](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/35-SeeinvisiblecharactersinFileMakercalculations.shtml)
- [Goodies 18: MBS Function calls in blue](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/18-MBSFunctioncallsinblue.shtml)
- [MBS Function calls in blue](https://www.mbsplugins.de/archive/2023-11-20/MBS_Function_calls_in_blue/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 11st November 2019

  
[SyntaxColoring.DontOpenManageDatabaseDialogWithRelations.SetEnabled](SyntaxColoringDontOpenManageDatabaseDialogWithRelationsSetEnabled.md) - [SyntaxColoring.Enabled](SyntaxColoringEnabled.md)

[HTML Version](SyntaxColoringEnable.shtml)