Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

SyntaxColoring.ColorizeScript

Colorises a script text.

Component Version macOS Windows Linux Server iOS SDK
SyntaxColoring 12.1 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "SyntaxColoring.ColorizeScript"; Script )   More

Parameters

Parameter Description Example
Script The script text to colorize.
Existing styles are ignored.
"Set Variable [ $r; Value: 123 ]"

Result

Returns styled text or error.

Description

Colorises a script text.
If you store FileMaker scripts as text, you can use the function here to add some color.
We apply the same rules as for syntax colouring in the script.

Examples

Colorize text in a field:

Set Field [ test::output ; MBS("SyntaxColoring.ColorizeScript"; test::input) ]

Release notes

Blog Entries

This function is free to use.

Created 25th February 2022, last changed 25th February 2022


SyntaxColoring.ClearContextMenuCommands - SyntaxColoring.CommentLinks.GetEnabled

💬 Ask a question or report a problem