mediawiki-extensions-CodeMi.../resources/ext.CodeMirror.js

13 lines
317 B
JavaScript
Raw Normal View History

$( document ).ready( function () {
var myCodeMirror = CodeMirror.fromTextArea(document.getElementById("wpTextbox1"), {
mode: "text/mediawiki",
styleActiveLine: true,
lineNumbers: true,
lineWrapping: true,
indentUnit: 4,
indentWithTabs: true
//matchBrackets: true,
//autoCloseBrackets: true
});
} );