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.