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

13 lines
323 B
JavaScript
Raw Normal View History

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