SyntaxColoring.FactoryDefaults
------------------------------

Resets all rules to the default settings.

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

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

none

### Result

Returns OK on success.

### Description

Resets all rules to the default settings.  
This only applies the color rules. You may still need to enable other features like copy button.  
  
You may want to customize rules with SyntaxColoring.Add function.  
For dark/light mode only resets current set.  
### Examples

Resets syntax coloring to defaults:

 MBS ( "SyntaxColoring.FactoryDefaults" )  
### See also

- [SyntaxColoring.AddTag](SyntaxColoringAddTag.md)

### Release notes

- **Version 14.0**
    - Improved [SyntaxColoring.FactoryDefaults](https://www.mbsplugins.eu/SyntaxColoringFactoryDefaults.shtml) function to reset both dark and light colors.
- **Version 11.1**
    - Fixed a text encoding problem with our built-in default rules for [SyntaxColoring.FactoryDefaults](https://www.mbsplugins.eu/SyntaxColoringFactoryDefaults.shtml), so they work better with asian languages.
- **Version 11.0**
    - Changed coloring scheme for Dark mode to show set variable a bit lighter. You may need to run [SyntaxColoring.FactoryDefaults](https://www.mbsplugins.eu/SyntaxColoringFactoryDefaults.shtml) to see changes.
- **Version 10.3**
    - Tuned the syntax coloring rules for dark mode. You may need to use [SyntaxColoring.FactoryDefaults](https://www.mbsplugins.eu/SyntaxColoringFactoryDefaults.shtml) to reset settings for dark mode.

### Blog Entries

- [Goodies 1: Script Coloring](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/01-ScriptColoring.shtml)
- [MBS FileMaker Plugin, version 14.0pr6](https://www.mbsplugins.de/archive/2024-01-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.1pr1](https://www.mbsplugins.de/archive/2021-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.0 - More than 6400 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-01-19/MBS_FileMaker_Plugin_110_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.6pr1](https://www.mbsplugins.de/archive/2020-12-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Dark Mode in FileMaker](https://www.mbsplugins.de/archive/2020-08-05/Dark_Mode_in_FileMaker/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.3pr3](https://www.mbsplugins.de/archive/2020-06-12/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.3pr2](https://www.mbsplugins.de/archive/2020-06-08/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.2pr5](https://www.mbsplugins.de/archive/2014-05-10/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.0pr6](https://www.mbsplugins.de/archive/2012-10-30/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 31st July 2025

  
[SyntaxColoring.Enabled](SyntaxColoringEnabled.md) - [SyntaxColoring.Format](SyntaxColoringFormat.md)

[HTML Version](SyntaxColoringFactoryDefaults.shtml)