Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to edit some scripts from a web app, at the moment i'm using a plain textarea and it works. The main problem is that these scripts have indentations so i'd like to simply press TAB to control the indentation level when writing some new code and possibly automatically start next lines with the same indentation. In a normal textarea pressing TAB switches the focus to the next object.

I'm looking for something like tinyMCE but that is made specifically for scripts. The minimum required functionality is to handle the indentation level, other cool things would be syntax highlighting and hinting/completition but they're not really necessary.

share|improve this question
Like jsFiddle? – Alex Mar 30 '12 at 11:21
Yes, exactly like that "Javascript" frame. How can i get it? – Zmaster Mar 30 '12 at 12:30
up vote 0 down vote accepted

Found it, CodeMirror is the library used by jsFiddle and it works very well. It supports many languages and has a lot of options like keymaps and markers. Awesome!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.