SyntaxColoring.SetCodeFoldingEnabled
------------------------------------

Sets whether to enable code folding.

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

MBS( "SyntaxColoring.SetCodeFoldingEnabled"; Value ) 

**MBS**( **"SyntaxColoring.SetCodeFoldingEnabled";** /\* Sets whether to enable code folding. \*/  
**$Value**) /\* Pass 1 to enable or 0 to disable.e.g. 1 \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Sets whether to enable code folding.  
### See also

- [SyntaxColoring.GetCodeFoldingEnabled](SyntaxColoringGetCodeFoldingEnabled.md)
- [SyntaxColoring.SetExportTooltipsEnabled](SyntaxColoringSetExportTooltipsEnabled.md)

### Release notes

- **Version 14.0**
    - Added [SyntaxColoring.GetCodeFoldingEnabled](https://www.mbsplugins.eu/SyntaxColoringGetCodeFoldingEnabled.shtml) and [SyntaxColoring.SetCodeFoldingEnabled](https://www.mbsplugins.eu/SyntaxColoringSetCodeFoldingEnabled.shtml) function.

### Blog Entries

- [Goodies 20: Code Folding](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/20-CodeFolding.shtml)
- [New in MBS FileMaker Plugin 14.0](https://www.mbsplugins.de/archive/2024-01-23/New_in_MBS_FileMaker_Plugin_14/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.6pr1](https://www.mbsplugins.de/archive/2023-12-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 16th November 2023 , last changed 16th November 2023

  
[SyntaxColoring.SetAddFindbars](SyntaxColoringSetAddFindbars.md) - [SyntaxColoring.SetCustomFunctionToolsEnabled](SyntaxColoringSetCustomFunctionToolsEnabled.md)

[HTML Version](SyntaxColoringSetCodeFoldingEnabled.shtml)