A super tiny textarea code editor
- Auto height
- Tab insert
- Auto bracket
- Auto indent
- range indent
- TA.ah( HTMLTextAreaElement ) -> undefined
updates textarea height according to the content. - TA.sizer( HTMLTextAreaElement ) -> undefined
adds TA.ah() to input eventlistner and execute instant.
use this if you only need auto height feature. - TA.editor( HTMLTextAreaElement ) -> undefined
setup the editor. TA.sizer() also executed.
- TA.brkt=['()','{}','[]',''','"','`']
defines bracket pairs and quotations.
MIT License. see LICENSE