Code editor field type

It would be awesome if a code editor was an option for textarea fields. Line numbers, tab-indents, formatting, etc. Something like this (or actually this): https://codemirror.net/