Hi, I want to upgrade the codemirror from v5 to v6, but I got some states configuration of defineSimpleMode in v5. how can I migrate the defineSimpleMode part into v6? thanks!
You should be able to import from
@codemirror/legacy-modes/mode/simple-mode.js and use it like this in your definition.
Great thanks! It works!
But I also got another question about registerHelper for hint and lint. Do we have some workarounds in v6?