nodebox / seed

Procedural Content Generator
https://seed.emrg.be/
MIT License
22 stars 8 forks source link

Integrating a code editor like CodeMirror. #19

Closed stebanos closed 6 years ago

stebanos commented 6 years ago

The error messages often show that there's an error in a particular line number but we don't have numbered lines. An editor like CodeMirror will help.

kunal-mohta commented 6 years ago

I tried integrating CodeMirror to the editor, but didn't make any difference, just added display : none; property to the textarea. But I did the same to some other html file with a textarea and it worked. My best guess is that rendering the editor like this interferes with how CodeMirror functions.

fdb commented 6 years ago

Actually we use Preact + CodeMirror in another project as well.

kunal-mohta commented 6 years ago

Okay I get it now what I was doing wrong :sweat_smile: