CodeMirror

A powerful JavaScript library that can be used to create a relatively pleasant editor interface for code-like content, with support for multiple programming languages

description

download

specifications

changelog

If a parser is available for the programming language of the edited code, CodeMirror will handle syntax highlighting and indentation.

Usage:

To use CodeMirror in a document, a script tag to load codemirror.js must be added.This adds two objects to the environment, CodeMirror and CodeMirrorConfig.The first is the interface to the editor, the second can be used to configure it.