I read the documentation, I read the source code, and I am getting no syntax highlighting.
I am creating the editor like this:
EditorState.create({
doc,
extensions: [
history(),
keymap.of([...defaultKeymap, ...searchKeymap, ...historyKeymap]),
defaultHighlightStyle,
html(),
lineNumbers(), gutter({ class: 'cm-mygutter' }),
search({ top: true })
]
})
What’s the totally obvious think I am missing?