SyntaxColoring.LineNumbers.GetColor
-----------------------------------

Queries the current color for line numbers.

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

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "SyntaxColoring.LineNumbers.GetColor" { ; ReturnAsNumbers } ) 

**MBS**( **"SyntaxColoring.LineNumbers.GetColor";** /\* Queries the current color for line numbers. \*/  
**$ReturnAsNumbers**) /\* Optional; Pass 1 to return color as list of red, green and blue, e.g. "123¶234¶56"  
Pass 0 (default) for return as hex value, e.g. "7788FF".e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ReturnAsNumbers | Pass 1 to return color as list of red, green and blue, e.g. "123¶234¶56"   Pass 0 (default) for return as hex value, e.g. "7788FF". | 0 | Optional      Added in version **8.3**. |

### Result

Returns color or error.

### Description

Queries the current color for line numbers.  
Color is returned in hex notation like with HTML. e.g. "#123456"  
### See also

- [SyntaxColoring.LineNumbers.Disable](SyntaxColoringLineNumbersDisable.md)
- [SyntaxColoring.LineNumbers.Enable](SyntaxColoringLineNumbersEnable.md)
- [SyntaxColoring.LineNumbers.Enabled](SyntaxColoringLineNumbersEnabled.md)
- [SyntaxColoring.LineNumbers.SetColor](SyntaxColoringLineNumbersSetColor.md)

### Release notes

- **Version 13.0**
    - Deprecated [SyntaxColoring.LineNumbers.Disable](https://www.mbsplugins.eu/SyntaxColoringLineNumbersDisable.shtml), [SyntaxColoring.LineNumbers.Enable](https://www.mbsplugins.eu/SyntaxColoringLineNumbersEnable.shtml), [SyntaxColoring.LineNumbers.Enabled](https://www.mbsplugins.eu/SyntaxColoringLineNumbersEnabled.shtml), [SyntaxColoring.LineNumbers.GetColor](https://www.mbsplugins.eu/SyntaxColoringLineNumbersGetColor.shtml) and [SyntaxColoring.LineNumbers.SetColor](https://www.mbsplugins.eu/SyntaxColoringLineNumbersSetColor.shtml) functions.
- **Version 8.3**
    - Added ReturnAsNumbers parameter for [Calendar.Calendar.GetColor](http://www.mbsplugins.eu/CalendarCalendarGetColor.shtml), [Events.Calendar.GetColor](http://www.mbsplugins.eu/EventsCalendarGetColor.shtml), [SyntaxColoring.GetScriptHighlightColor](http://www.mbsplugins.eu/SyntaxColoringGetScriptHighlightColor.shtml), [SyntaxColoring.GetScriptIfColor](http://www.mbsplugins.eu/SyntaxColoringGetScriptIfColor.shtml), [SyntaxColoring.GetScriptLoopColor](http://www.mbsplugins.eu/SyntaxColoringGetScriptLoopColor.shtml), [SyntaxColoring.GetScriptSearchColor](http://www.mbsplugins.eu/SyntaxColoringGetScriptSearchColor.shtml) and [SyntaxColoring.LineNumbers.GetColor](http://www.mbsplugins.eu/SyntaxColoringLineNumbersGetColor.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 13.0pr6](https://www.mbsplugins.de/archive/2023-01-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 8.3pr2](https://www.mbsplugins.de/archive/2018-06-18/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.5pr3](https://www.mbsplugins.de/archive/2013-11-01/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 7th January 2023

  
[SyntaxColoring.LineNumbers.Enabled](SyntaxColoringLineNumbersEnabled.md) - [SyntaxColoring.LineNumbers.SetColor](SyntaxColoringLineNumbersSetColor.md)

[HTML Version](SyntaxColoringLineNumbersGetColor.shtml)