LiveExampleHighlighting
type LiveExampleHighlighting =
| TreeSitterHighlighting
| DefaultHighlighting| Assembly | Nacara.Plugin.LiveExample |
How a live snippet colours itself once the reader is editing it.
Cases
TreeSitterHighlighting
TreeSitterHighlightingThe 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
DefaultHighlightingThe editor's own F# mode.
Already inside the editor, so nothing is fetched. Colours a little differently from the static blocks around it.