MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / getPreviewSetup

Function getPreviewSetup

app/utilities/codeMirrorSetup.ts:14–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12import { lineNumbers } from "@codemirror/gutter";
13
14export function getPreviewSetup(): Array<Extension> {
15 return [
16 jsonLang(),
17 highlightSpecialChars(),
18 drawSelection(),
19 dropCursor(),
20 bracketMatching(),
21 highlightSelectionMatches(),
22 lineNumbers(),
23 ];
24}
25
26export function getViewerSetup(): Array<Extension> {
27 return [drawSelection(), dropCursor(), bracketMatching(), lineNumbers()];

Callers 1

JsonPreviewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected