News for hackers. Stuff that matters.
Re:Slate JS – A customizable framework for building rich tex... by playworker on Thursday November 15, 2018 @04:29AM (#18457995)
Yes, you probably want something like CodeMirror https://codemirror.net/
Re:Slate JS – A customizable framework for building rich tex... by joshmarlow on Thursday November 15, 2018 @08:05PM (#18465239)
I'd second CodeMirror - I've been tinkering with it (v2 - https://codemirror.net/2/) for a couple of weeks and it's pretty nice to use. I'm using a bit of simple syntax highlighting.

There's also a react wrapper (for versions 1 and 2).