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