CodeMirror is a JavaScript library that can convert any element on a web page into an interface for editing code.

It supports most of the popular languages (HTML, CSS, PHP, Python, Ruby, Java, C#, SQL, XML, etc.) and works cross-browser.

CodeMirror

There are many options offered like enabling undo, line numbers, the behaviour of "tab" and "enter" commands.

Also, with the help of its API, the editor can be totally manipulated.

WebResourcesDepot Feed