Collaborative Editing in CodeMirror (2020)
marijnhaverbeke.nl
Collaborative Editing in CodeMirror (2020)
1–10 of 11 posts
Re: Collaborative Editing in CodeMirror (2020)
#2Edit: I just realized I didn't even mention his most famous work, Eloquent JavaScript [1]! This book is incredible. I couldn't finish it the first time, so I'm not sure if it's the best book for beginners, but I learned so much when I picked it back up a few years later that I think that every JavaScript programmer should read through it and do the exercises at least once.
Re: Collaborative Editing in CodeMirror (2020)
#3Re: Collaborative Editing in CodeMirror (2020)
#4Re: Collaborative Editing in CodeMirror (2020)
#5Re: Collaborative Editing in CodeMirror (2020)
#6Re: Collaborative Editing in CodeMirror (2020)
#7Re: Collaborative Editing in CodeMirror (2020)
#8CodeMirror is great, but still requires a lot of clientside JavaScript. I wonder if it would be possible to create a code editor in the same style OverType[0], where the editor is basically just an HTML textarea. You would need 70% less JavaScript code to do exactly the same thing, and it supports syntax highlighting out of the box[1]. [0]: https://github.com/panphora/overtype [1]: https://github.com/panphora/overtyp…
https://github.com/bikeshaving/revise https://revise.js.org https://revise.js.org/blog/introducing-revise/
Re: Collaborative Editing in CodeMirror (2020)
#9CodeMirror is great, but still requires a lot of clientside JavaScript. I wonder if it would be possible to create a code editor in the same style OverType[0], where the editor is basically just an HTML textarea. You would need 70% less JavaScript code to do exactly the same thing, and it supports syntax highlighting out of the box[1]. [0]: https://github.com/panphora/overtype [1]: https://github.com/panphora/overtyp…
I’ve tried to create the minimalist version of this with Revise.js. The main surface area is a custom element called a ` `. The OverType library you linked to uses a time-old technique where you essentially put a duplicate copy of the content over a ` ` to highlight it but this doesn’t really work in mobile and it messes with the selection. I’ve tried to grapple with `contenteditable` directly with my solution, but i…