Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SyntaxColoring.Format
Applies formatting rules to the formula text and returns styled text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SyntaxColoring | 3.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "SyntaxColoring.Format"; Text; Copy ) More
Parameters
Parameter | Description | Example |
---|---|---|
Text | The formula text to format. | "5+6+cos($test)" |
Copy | Pass 1 to copy result to clipboard. This preserves links and all formatting. |
Result
Returns formatted text.
Description
Applies formatting rules to the formula text and returns styled text.Examples
Format a line:
$r = MBS( "SyntaxColoring.Format"; "5+6+cos($test)" )
See also
- SyntaxColoring.AddTag
- SyntaxColoring.Clear
- SyntaxColoring.Enable
- SyntaxColoring.FormatCalculation
- SyntaxColoring.GetTag
- SyntaxColoring.GetTags
Release notes
- Version 14.1
- Added SyntaxColoring.FormatCalculation function.
- Version 12.5
- Fixed a problem in SyntaxColoring.Format function.
- Version 12.4
- Fixed a bug in SyntaxColoring.Format raising exception if a color is not defined.
- Version 11.3
- Removed text size limit for SyntaxColoring.Format function.
- Version 10.0
- Fixed problem with SyntaxColoring.Format function.
Example Databases
- Utility functions/Evaluate
- Utility functions/FileMaker Custom Functions
- Utility functions/Formula Formatting
Blog Entries
- MBS FileMaker Plugin, version 12.5pr1
- MBS FileMaker Plugin, version 12.4pr4
- MBS FileMaker Plugin, version 11.3pr7
- Formatting and error checking expressions in FileMaker
- MBS FileMaker Plugin, version 9.6pr1
- Define hot keys for functions in the FileMaker development
- MBS Filemaker Plugin, version 3.0pr10
This function is free to use.
Created 18th August 2014, last changed 12nd December 2016
SyntaxColoring.FactoryDefaults - SyntaxColoring.FormatCalculation