-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Emmet does not use correct syntax highlighting #15
Comments
You should pass syntax highlighting as option: |
Do you have an example of how exactly that should be used?
|
You should pass an extension factory function, which will be invoked when preview widget is created. E.g. import { html } from '@codemirror/lang-html';
abbreviationTracker({
preview: {
html: html
}
}); |
Hm. But is that the way to actually load a theme? That would just be for the language syntax |
AFAIK there’s no such thing as theme or language syntax, only extensions. From factory function, you may return an extension or array of extensions, I think you may just define which extensions (syntax highlight, theme etc) you want to use in preview. |
I'm currently using
@codemirror/theme-one-dark
on Codemirror 6 alongside Emmet (implemented using theabbreviationTracker
extension) and I've noticed that the syntax highlighting is incorrect. See below for images.How it should look:
How it looks:
Thanks.
The text was updated successfully, but these errors were encountered: