You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I did everything according to the guide, as a result, nothing works.
no code highlighting
there is nothing
Even the out of the box option doesn't work.
Reproduction
<template>
<div>
<Codemirrorv-model="value"basicwraptab:dark="dark":lang="lang":extensions="extensions":options="cmOption"
></Codemirror>
</div>
//....
</template>
<!-- SCRIPT -->
<script lang="ts" setup>
import Codemirror from 'vue-codemirror6';
import { markdown as md } from '@codemirror/lang-markdown';
import type { LanguageSupport } from '@codemirror/language';
import type { Extension } from '@codemirror/state';
import type { ViewUpdate } from '@codemirror/view';
import { oneDark } from '@codemirror/theme-one-dark';
console.log(`[LOG] oneDark`, `<${typeof oneDark}>`, oneDark);
const value = ref(`
adw
da
widthwad
awda
widthawd
awdawdawdwd
`);
/** Dark mode **/
const dark = ref(window.matchMedia('(prefers-color-scheme: dark)').matches);
/**
* CodeMirror Language
*
* @see {@link https://codemirror.net/6/docs/ref/#language | @codemirror/language}
*/
const lang: LanguageSupport = md();
const extensions = [md(), oneDark];
const cmOption = ref({
lineNumbers: true,
});
</script>
Describe the bug
Hi, I did everything according to the guide, as a result, nothing works.
no code highlighting
there is nothing
Even the out of the box option doesn't work.
Reproduction
System Info
Used Package Manager
yarn
The text was updated successfully, but these errors were encountered: