
Codemirror is a javascript library that can be used to create a relatively pleasant editor interface for code-like content -- computer programs, html markup, and similar. if a mode has been written for the language you are editing, the code will be coloured, and the editor will optionally help you with indentation.