Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.