We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to use the One Dark theme, but I keep getting the following error:
My implementation is as follows:
<template> <code-mirror v-model="value" basic tab wrap :dark="true" :theme="oneDark" :lang="lang" /> </template> <script> import { ref, defineComponent } from 'vue'; import CodeMirror from 'vue-codemirror6'; import { python } from '@codemirror/lang-python'; import { oneDark } from '@codemirror/theme-one-dark'; export default defineComponent({ components: { CodeMirror, }, setup() { const lang = python(); const value = ref('// start typing Python code or something...'); return { value, lang, oneDark }; }, }); </script>
The text was updated successfully, but these errors were encountered:
UPDATE: Seems to work if I implement the theme via the extensions prop, which isn't as described in the docs/readme:
<template> <code-mirror v-model="value" basic tab wrap :dark="true" :extensions="extensions" :lang="lang" /> </template> <script> import { ref, defineComponent } from 'vue'; import CodeMirror from 'vue-codemirror6'; import { python } from '@codemirror/lang-python'; import { oneDark } from '@codemirror/theme-one-dark'; export default defineComponent({ components: { CodeMirror, }, setup() { const lang = python(); const value = ref('// start typing Python code or something...'); const extensions = [python(), oneDark]; return { value, lang, extensions }; }, }); </script>
Sorry, something went wrong.
No branches or pull requests
I'm trying to use the One Dark theme, but I keep getting the following error:
My implementation is as follows:
The text was updated successfully, but these errors were encountered: