Table of Contents

Method GetAttributeForScope

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

GetAttributeForScope(MarkdownStyleRole)

Returns a theme-derived Attribute for the given markdown style role, or null if this highlighter has no specific styling for that role.

public Attribute? GetAttributeForScope(MarkdownStyleRole role)

Parameters

role MarkdownStyleRole

The markdown style role to resolve.

Returns

Attribute?

An Attribute with colors from the active syntax theme, or null to fall back to the default MarkdownStyleRole-based text style.