@@ -37,35 +37,36 @@ To use `svelte-codemirror-editor`, you need to import the package and use it as
3737
3838## Properties
3939
40- | Property | Type | Description | Default value |
41- | ---------------------- | -------------------- | --------------------------------------------------------------------- | ------------- |
42- | ` value ` | ` string ` | The value that will be displayed and edited in the CodeMirror editor. | ` "" ` |
43- | ` class ` | ` ClassValue ` | Class value to add additional css classes to CodeMirror editor. | ` "" ` |
44- | ` lang ` | ` LanguageSupport ` | The language extension that will parse and highlight the value. | ` undefined ` |
45- | ` theme ` | ` Extension ` | The theme extension to customize the appearence of the editor. | ` undefined ` |
46- | ` extensions ` | ` Extension[] ` | Additional extensions to inject in the editor. | ` [] ` |
47- | ` allowMultiSelect ` | ` boolean ` | Whether to allow multi-selecting text. | ` true ` |
48- | ` useTab ` | ` boolean ` | Whether to use the ` Tab ` shortcut to handle indentation. | ` true ` |
49- | ` tabSize ` | ` number ` | The number of space of an indentation level. | ` 2 ` |
50- | ` editable ` | ` boolean ` | Whether to make the editor editable or not. | ` true ` |
51- | ` readonly ` | ` boolean ` | Whether to make the editor readonly or not. | ` false ` |
52- | ` lineWrapping ` | ` boolean ` | Whether to wrap lines in the editor or not. | ` false ` |
53- | ` lineNumbers ` | ` boolean ` | Whether to show line numbers or not. | ` true ` |
54- | ` highlight ` | ` object ` | Hightlighting options. | ` {} ` |
40+ | Property | Type | Description | Default value |
41+ | ---------------------- | --------------------- | --------------------------------------------------------------------- | ------------- |
42+ | ` value ` | ` string ` | The value that will be displayed and edited in the CodeMirror editor. | ` "" ` |
43+ | ` class ` | ` ClassValue ` | Class value to add additional css classes to CodeMirror editor. | ` "" ` |
44+ | ` lang ` | ` LanguageSupport ` | The language extension that will parse and highlight the value. | ` undefined ` |
45+ | ` theme ` | ` Extension ` | The theme extension to customize the appearence of the editor. | ` undefined ` |
46+ | ` extensions ` | ` Extension[] ` | Additional extensions to inject in the editor. | ` [] ` |
47+ | ` keybinding ` | ` KeyBinding[] ` | Additional keybindings to register. | ` [] ` |
48+ | ` allowMultiSelect ` | ` boolean ` | Whether to allow multi-selecting text. | ` true ` |
49+ | ` useTab ` | ` boolean ` | Whether to use the ` Tab ` shortcut to handle indentation. | ` true ` |
50+ | ` tabSize ` | ` number ` | The number of space of an indentation level. | ` 2 ` |
51+ | ` editable ` | ` boolean ` | Whether to make the editor editable or not. | ` true ` |
52+ | ` readonly ` | ` boolean ` | Whether to make the editor readonly or not. | ` false ` |
53+ | ` lineWrapping ` | ` boolean ` | Whether to wrap lines in the editor or not. | ` false ` |
54+ | ` lineNumbers ` | ` boolean ` | Whether to show line numbers or not. | ` true ` |
55+ | ` highlight ` | ` object ` | Hightlighting options. | ` {} ` |
5556| ` history ` | ` boolean ` \| ` object ` | Enable/Disable and/or configure history. | ` true ` |
5657| ` foldGutter ` | ` boolean ` \| ` object ` | Enable/disable and/or configure fold gutter. | ` true ` |
5758| ` drawSelection ` | ` boolean ` \| ` object ` | Enable/disable and/or configure draw selection. | ` true ` |
58- | ` dropCursor ` | ` boolean ` | Whether to show the drop cursor. | ` true ` |
59- | ` indentOnInput ` | ` boolean ` | Whether to indent on input. | ` true ` |
59+ | ` dropCursor ` | ` boolean ` | Whether to show the drop cursor. | ` true ` |
60+ | ` indentOnInput ` | ` boolean ` | Whether to indent on input. | ` true ` |
6061| ` syntaxHighlighting ` | ` boolean ` \| ` object ` | Enable/disable and/or configure syntax highlighting. | ` true ` |
6162| ` bracketMatching ` | ` boolean ` \| ` object ` | Enable/disable and/or configure bracket matching. | ` true ` |
62- | ` closeBrackets ` | ` boolean ` | Whether to close brackets automatically. | ` true ` |
63+ | ` closeBrackets ` | ` boolean ` | Whether to close brackets automatically. | ` true ` |
6364| ` autocompletion ` | ` boolean ` \| ` object ` | Enable/disable and/or configure autocompletion. | ` true ` |
6465| ` rectangularSelection ` | ` boolean ` \| ` object ` | Enable/disable and/or configure rectangular selection. | ` true ` |
6566| ` crosshairCursor ` | ` boolean ` \| ` object ` | Enable/disable and/or configure crosshair cursor. | ` true ` |
66- | ` placeholder ` | ` string ` | The placeholder text or element to show when the editor is empty. | ` undefined ` |
67- | ` nodebounce ` | ` boolean ` | Disable onchange debounce for value updates. (may impact performance) | ` false ` |
68- | ` styles ` | ` ThemeSpec ` | In-place theme configuration. _ See exemple below_ . | ` undefined ` |
67+ | ` placeholder ` | ` string ` | The placeholder text or element to show when the editor is empty. | ` undefined ` |
68+ | ` nodebounce ` | ` boolean ` | Disable onchange debounce for value updates. (may impact performance) | ` false ` |
69+ | ` styles ` | ` ThemeSpec ` | In-place theme configuration. _ See exemple below_ . | ` undefined ` |
6970
7071## Events
7172
0 commit comments