Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Would this be overkill to use just for a textbox with realtime code highlight (for SQL)? That's the only feature I'm interested in.


Yes, you probably want something like CodeMirror https://codemirror.net/


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


Check out Ace Editor too: https://ace.c9.io/




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: