SyntaxColoring.GetTag
---------------------

Queries the color for a tag.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SyntaxColoring](component_SyntaxColoring.md) | [3.0](newinversion30.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SyntaxColoring.GetTag"; Text ) 

**MBS**( **"SyntaxColoring.GetTag";** /\* Queries the color for a tag. \*/  
**$Text**) /\* The name of the item. Up to five words from the left name of the command.e.g. "If" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The name of the item. Up to five words from the left name of the command. | "If" |

### Result

Returns the color in hex style (e.g. #FF0000 for red)

### Description

Queries the color for a tag.  
### Examples

Queries the color for plus sign:

 MBS ( "SyntaxColoring.GetTag"; "+" )  
### See also

- [SyntaxColoring.AddTag](SyntaxColoringAddTag.md)
- [SyntaxColoring.Clear](SyntaxColoringClear.md)
- [SyntaxColoring.Enable](SyntaxColoringEnable.md)
- [SyntaxColoring.Format](SyntaxColoringFormat.md)
- [SyntaxColoring.GetTags](SyntaxColoringGetTags.md)
- [SyntaxColoring.RemoveTag](SyntaxColoringRemoveTag.md)

### Example Databases

- [Mac only/SyntaxColoring for Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/SyntaxColoring%20for%20Mac.shtml#8ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 3.0pr6](https://www.mbsplugins.de/archive/2012-10-30/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[SyntaxColoring.GetShowValueListIDs](SyntaxColoringGetShowValueListIDs.md) - [SyntaxColoring.GetTags](SyntaxColoringGetTags.md)

[HTML Version](SyntaxColoringGetTag.shtml)