Editor.hasHighlight method
Editor › hasHighlight
Unofficial
Checks whether the editor has a highlight of specified class.Signature:
hasHighlight(style?: string | undefined): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| style? | string | undefined | The highlight style class to check for. |
Returns: boolean — Whether the editor has the specified highlight.
Remarks:
If no style is specified, checks whether the editor has unknown highlights.