Javascript() language support doesn't work in custom config

Hello, just started to use Codemirror and I don’t understand why the highlighting of Javascript language doesn’t work.


This is not working, I mean language highlighting.

Also I do not understand how to add allowMultipleSelections and defaultHighlightStyle to extensions.

Working example (obviously)

The code below works fine.


My package.json fragment:


Thank you for your help in advance.

The fact that you’re not adding a highlight style would explain the lack of highlighting. You can look at this file to see what basicSetup is adding. In this case, you want syntaxHighlighting(defaultHighlightStyle).

1 Like

This is the line of code I was looking for but couldn’t find it in docs! Thank you very much.