{"id":20297061,"url":"https://github.com/mtmeyer/codemirror-svelte-modules","last_synced_at":"2025-04-11T12:14:34.507Z","repository":{"id":40336691,"uuid":"490273036","full_name":"mtmeyer/codemirror-svelte-modules","owner":"mtmeyer","description":"Svelte wrapper for Codemirror 6","archived":false,"fork":false,"pushed_at":"2022-05-14T06:29:19.000Z","size":310,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T13:00:51.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtmeyer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-09T12:27:36.000Z","updated_at":"2023-08-12T14:02:06.000Z","dependencies_parsed_at":"2022-08-18T19:20:13.225Z","dependency_job_id":null,"html_url":"https://github.com/mtmeyer/codemirror-svelte-modules","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtmeyer%2Fcodemirror-svelte-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtmeyer%2Fcodemirror-svelte-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtmeyer%2Fcodemirror-svelte-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtmeyer%2Fcodemirror-svelte-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtmeyer","download_url":"https://codeload.github.com/mtmeyer/codemirror-svelte-modules/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248399094,"owners_count":21097295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T15:43:45.620Z","updated_at":"2025-04-11T12:14:34.488Z","avatar_url":"https://github.com/mtmeyer.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeMirror Svelte Modules\n\nThis is a simple wrapper around Codemirror using their new architecture in v6.\n\nThis library was heavily inspired by a similar React library [`@uiw/react-codemirror`](https://uiwjs.github.io/react-codemirror/)\n\n## CodeMirror Documentation\n\nIn version 6 CodeMirror only exports modules as described here: [CodeMirror v6 Guide](https://codemirror.net/6/docs/guide/)\n\nFor all the v6 documentation go here: [CodeMirror v6 Documentation](https://codemirror.net/6/docs/)\n\n## Example\n\n```html\n\u003cscript\u003e\n  import CodeMirror from 'codemirror-svelte-modules';\n\u003c/script\u003e\n\n\u003cCodeMirror basicSetup /\u003e\n```\n\n### Props\n\nMore details on props and their types coming soon\n\n- extensions: `Extensions[]`\n- height: `string`\n- minHeight: `string`\n- maxHeight: `string`\n- width: `string`\n- minWidth: `string`\n- maxWidth: `string`\n- editable: `boolean`\n- readOnly: `boolean`\n- autoFocus: `boolean`\n- theme: `Extension`\n- basicSetup: `boolean`\n- initialValue: `string`\n\n### Adding extensions\n\n```html\n\u003cscript\u003e\n  import CodeMirror from 'codemirror-svelte-modules'; \n  import { syntaxHighlighting, defaultHighlightStyle } from '@codemirror/language';\n  import { javascript } from '@codemirror/lang-javascript';\n\u003c/script\u003e\n\n\u003cCodeMirror extensions={[javascript(), syntaxHighlighting(defaultHighlightStyle)]} /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtmeyer%2Fcodemirror-svelte-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtmeyer%2Fcodemirror-svelte-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtmeyer%2Fcodemirror-svelte-modules/lists"}