Hacker News new | ask | show | jobs
by snitko 4624 days ago
A slightly offtopic question: can anybody point me to a js lib, which converted tabs pressed when inside a textarea into spaces and indented the text below accordingly?
3 comments

http://jakiestfu.github.io/Behave.js/ is a bit more of a lightweight option than a full code editor.
This is great, I've been looking for something like this. Thanks!
http://ace.c9.io/ is probably what you're looking for.
Ace Editor is pretty comfigurable and allows for this as well as syntax highlighting for, say, markdown.