uiwjs / react-codemirror

CodeMirror 6 component for React. @codemirror https://uiwjs.github.io/react-codemirror/
https://uiwjs.github.io/react-codemirror/
MIT License
1.7k stars 135 forks source link

Codemirror 6 runmode #328

Open chema97ic opened 2 years ago

chema97ic commented 2 years ago

Is there anyway to pass a string and highlight it in codemirror 6? Would i have to downgrade to the v3 of this package to get such functionality? Something similar to the runMode that was in previous versions

jaywcjlove commented 2 years ago

This requires you to encapsulate similar functionality yourself @chema97ic

Is this a feature of this example? https://codemirror.net/5/demo/runmode.html

chema97ic commented 2 years ago

thats exactly what i want yes! so it is not available as of now in codemirror 6? If i go back to v3 of react-codemirror would i be able to use it? Implementing it myself seems kindda difficult and redundant when there was one already built in...

jaywcjlove commented 2 years ago

There is currently no built-in functionality for this.