SyntaxColoring.CommentLinks.SetEnabled
--------------------------------------

Sets whether comment links are enabled.

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

MBS( "SyntaxColoring.CommentLinks.SetEnabled"; Value ) 

**MBS**( **"SyntaxColoring.CommentLinks.SetEnabled";** /\* Sets whether comment links are enabled. \*/  
**$Value**) /\* The new setting.  
Pass 1 to enable or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting.   Pass 1 to enable or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Sets whether comment links are enabled.  
If enabled, the plugin will scan comments in script lines for URLs and add a little arrow with earth icon on the right. Once clicked, the URL is opened in the default browser.  
  
Works for http://, https://, mailto: and fmp:// URLs. Text before/after is ignored if there is at least a space between. Invalid URLs are ignored, e.g. with non URL component encoded accent characters.  
  
When the URL starts with "fmp://$/?", we insert the current file name as file name before the ?.  
  
In version 13.5 we added goto: and script: URL support. Goto can have a line number or the keyword start or end to jump to the start of the script or the end. The script: URL contains the perfect encoded script name.  
### Examples

Sample Script with links:

 # There is a link in the next line:   
\# https://www.mbsplugins.de/filemaker ➜🌍   
\# There can be text before the link http://www.mbsplugins.de and text behind ➜🌍   
\#   
\# other URLs with fmp://test work, too. ➜🌍   
\# or email links with mailto prefix: mailto:test@test.test ➜🌍   
### See also

- [SyntaxColoring.CommentLinks.GetEnabled](SyntaxColoringCommentLinksGetEnabled.md)
- [SyntaxColoring.CopyButton.GetEnabled](SyntaxColoringCopyButtonGetEnabled.md)
- [SyntaxColoring.CopyButton.SetEnabled](SyntaxColoringCopyButtonSetEnabled.md)
- [SyntaxColoring.HelpMenu.SetEnabled](SyntaxColoringHelpMenuSetEnabled.md)
- [SyntaxColoring.SortMenuEntries.GetEnabled](SyntaxColoringSortMenuEntriesGetEnabled.md)
- [SyntaxColoring.SortMenuEntries.SetEnabled](SyntaxColoringSortMenuEntriesSetEnabled.md)
- [SyntaxColoring.ZoomButton.GetEnabled](SyntaxColoringZoomButtonGetEnabled.md)
- [SyntaxColoring.ZoomButton.SetEnabled](SyntaxColoringZoomButtonSetEnabled.md)

### Release notes

- **Version 12.3**
    - Added [SyntaxColoring.CommentLinks.GetEnabled](https://www.mbsplugins.eu/SyntaxColoringCommentLinksGetEnabled.shtml) and [SyntaxColoring.CommentLinks.SetEnabled](https://www.mbsplugins.eu/SyntaxColoringCommentLinksSetEnabled.shtml) functions.

### Blog Entries

- [Goodies 21: Comment Links](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/21-CommentLinks.shtml)
- [Comment links with goto and script scheme](https://www.mbsplugins.de/archive/2025-07-21/Comment_links_with_goto_and_sc/monkeybreadsoftware_blog_filemaker)
- [Comment links with goto and script scheme](https://www.mbsplugins.de/archive/2023-11-02/Comment_links_with_goto_and_sc/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 12.3 für Claris FileMaker](https://www.mbsplugins.de/archive/2022-07-12/Neues_MBS_Plugin_123_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 12.3 for Claris FileMaker](https://www.mbsplugins.de/archive/2022-07-12/MBS_Plugin_123_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [Comment Links in FileMaker ScriptWorkspace](https://www.mbsplugins.de/archive/2022-06-07/Comment_Links_in_FileMaker_Scr/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.3pr2](https://www.mbsplugins.de/archive/2022-06-06/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 3th June 2022 , last changed 25th January 2024

  
[SyntaxColoring.CommentLinks.GetEnabled](SyntaxColoringCommentLinksGetEnabled.md) - [SyntaxColoring.ContextualMenuEnabled.GetEnabled](SyntaxColoringContextualMenuEnabledGetEnabled.md)

[HTML Version](SyntaxColoringCommentLinksSetEnabled.shtml)