Please don't force my browser to act like a desktop text editor!
There's already problems with seemingly simple things like trying to give the editor keyboard shortcuts.. For example, the code-block command
Ctrl+k invokes the delete-selection emacs'ish command in Camino.
Messing with the inputs indentation really isn't a
<textarea>'s job, and that's all the "editor" really is! I imagine such a feature could easily screw with pasting into the input box, for example.
The editor isn't too bad for writing code.. For single-level-of-indentation code, I generally write it with no indentation, then use the
ctrl+k shortcut to indent the first level, then select the rest of the code and hit
ctrl+k again.. I'll try and demonstrate..
Step 1 (write script with no indentation):
Step 2 (select the lines and
ctrl+k to indent it):
Step 3 (remove the extra two lines, select all the code, press
ctrl+k to make it into the final code-block):
If I want to write code with anything more than one level of indentation, I just copy the answer-text into to a proper text editor (which I'm sure most users have open anyway!)
There's a good Firefox addon for this, actually. "It's All Text!" adds a little "Edit" button to each input box.. When clicked it loads the current text into your editor-of-choice.. When you save the file, the textarea is updated and you can post your answer. Same as the copy-and-paste to a proper editor, with less key-strokes!