Skip to content

Instantly share code, notes, and snippets.

View sergzach's full-sized avatar

Sergey sergzach

  • Ngenix
  • Russia, Moscow
View GitHub Profile
@sergzach
sergzach / codemirror.
Created December 2, 2012 21:35
codemirror.
var editor;
$(function(){
editor = CodeMirror.fromTextArea(document.getElementById("id_body"), {
lineNumbers: true,
indentUnit: 4,
tabMode: "shift",
matchBrackets: true
});