A <textarea>
with benefits:
- Syntax highlighting based on arbitrary regular expressions, with arbitrary CSS.
- Keyboard shortcuts to insert any text, or to surround the selected text with anything.
- Events to inform you when the user's cursor has entered or left something.
Requires jQuery, which it expects to find in the $
variable.
Includes the Autoresize script by Jack Moore.