Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2    Statistic  

XML.Colorize

Formats a XML string with color.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
XML 8.2 Yes Yes Yes Yes Yes

MBS( "XML.Colorize"; XML )

Parameters

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

Result

Returns formatted text or error.

Description

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.

Examples

Colorize a field:

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


XML.ClearVariables   -   XML.DeletePath

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins