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

14 lines
329 B
JavaScript
Raw Normal View History

/*global CodeMirror*/
jQuery( document ).ready( function ( $ ) {
CodeMirror.fromTextArea( $( '#wpTextbox1' )[0], {
styleActiveLine: true,
//lineNumbers: true,
lineWrapping: true,
//indentUnit: 4,
//indentWithTabs: true
//matchBrackets: true,
//autoCloseBrackets: true,
mode: 'text/mediawiki'
} );
} );