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.

Problem

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.

image

My package.json fragment:

image

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.