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


Sets the highlight color for if block in a script.

Component Version macOS Windows Linux Server iOS SDK
SyntaxColoring 6.1 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "SyntaxColoring.SetScriptLoopColor"; Color )   More


Parameter Description Example
Color The color value. Can be one of a few english color names or "#123456" notation like in html. "red"


Returns OK or error.


Sets the highlight color for if block in a script.
Uses to highlight the script lines (loop, end loop and exif loop if) for the current loop if one of those steps is selected.
Set to nothing to use default color.
Does not work if Syntax Highlighting is off.

Also used to highlight transactions in FileMaker Pro 19.6 and newer.


Set to red:

MBS( "SyntaxColoring.SetScriptLoopColor"; "#FF8888" )

See also

Blog Entries

This function is free to use.

Created 1st February 2016, last changed 12nd June 2022

SyntaxColoring.SetScriptIfColor - SyntaxColoring.SetScriptSearchColor