Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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