highlight(view:settings:range:)

static func highlight(
    view: NSTextView,
    settings: Editor.Settings,
    range: NSRange
)

Highlight the text in the editor

Parameters

view

The NSTextView

settings

The Settings of the editor

range

The range in the text that needs highlighting

  • Check if a found directive is known

    Declaration

    Swift

    func directiveIsKnown(range: NSRange) -> Bool

    Parameters

    range

    The range of the directive

    Return Value

    True or False