Skip to content

LiveExampleHighlighting

type LiveExampleHighlighting =
    | TreeSitterHighlighting
    | DefaultHighlighting
AssemblyNacara.Plugin.LiveExample

How a live snippet colours itself once the reader is editing it.

Cases

TreeSitterHighlighting

The grammar the rest of the site is coloured with.

An edited snippet looks exactly like the block it replaced: the same grammar, the same queries, the same classes. The grammar costs 728 KB, fetched with the compiler the first time a reader runs something.

DefaultHighlighting

The editor's own F# mode.

Already inside the editor, so nothing is fetched. Colours a little differently from the static blocks around it.

Properties

member IsDefaultHighlighting: bool
member IsTreeSitterHighlighting: bool