react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

Codemirror 6 runmode

Open chema97ic opened this issue 3 years ago • 3 comments

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

chema97ic avatar Jun 09 '22 11:06 chema97ic

This requires you to encapsulate similar functionality yourself @chema97ic

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

jaywcjlove avatar Jun 09 '22 17:06 jaywcjlove

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...

chema97ic avatar Jun 09 '22 17:06 chema97ic

There is currently no built-in functionality for this.

jaywcjlove avatar Jun 09 '22 18:06 jaywcjlove