wfLoadExtension( 'CodeMirror' ); $wgDefaultUserOptions['usecodemirror'] = 1; # Enable bracket matching in CodeMirror $wgCodeMirrorEnableBracketMatching = true; # Enable accessible colors in CodeMirror $wgCodeMirrorAccessibilityColors = true; #Enable line numbering in CodeMirror #defaults to the template namespace `[ NS_TEMPLATE ]` #`null` enables it for all namespace #[] for disabling everywhere $wgCodeMirrorLineNumberingNamespaces = [];
seems to have no effect on editing templates, I still see the line numbers. (Unfortunately, this forum prevents me from attaching screenshots.)
MediaWiki 1.36.1, PHP 7.4.15 (cgi-fcgi), MySQL 5.7.28-log, ICU 60.2, Apache 2.4.29-1ubuntu4.16 Extensions: Echo – (1a15ef8), VisualEditor 0.1.2, MyVariables 3.5.1, NoTitle 0.4.0 (780dbb6), DynamicSidebar 1.1 (b2f3feb), Lockdown – (2409546), MassMessage0.4.0 (c9b6e87), CodeMirror4.0.0 (508b9f6) 15:59, 22 July 2021.