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: 10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0    Statistic    FMM    Blog  


Formats a XML string with color.

Component Version macOS Windows Linux Server iOS SDK
XML 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XML.Colorize"; XML )   More


Parameter Description Example
XML The XML text to process. "<test>Hello</test>"


Returns formatted text or error.


Formats a XML string with color.
This colorizes an existing XML text to show to user.
Keys get blue, text value black, attributes in purple.

Text is returned only with colors. You can apply text font and font size with normal FileMaker functions.
Processing time is linear to length, so should be faster than custom functions.


Colorize a field:

Set Field [ Data::XML ; MBS("XML.Colorize"; Data::XML) ]

Line numbers, color and format:

MBS( "Text.AddLineNumbers"; MBS( "XML.Colorize"; MBS( "XML.Format"; Buckets::Listing)))

See also

Release notes

Example Databases

Blog Entries


Created 8th April 2018, last changed 12nd November 2018

XML.ClearVariables - XML.Compact

Feedback: Report problem or ask question.

MBS Xojo Plugins

Start Chat