getPygmentsLanguages() ], ResourceLoader::inDebugMode() ) . Xml::encodeJsCall( 've.dm.MWSyntaxHighlightNode.static.addGeshiToPygmentsMap', [ SyntaxHighlightGeSHiCompat::getGeSHiToPygmentsMap() ], ResourceLoader::inDebugMode() ) . Xml::encodeJsCall( 've.dm.MWSyntaxHighlightNode.static.addPygmentsToAceMap', [ SyntaxHighlightAce::getPygmentsToAceMap() ], ResourceLoader::inDebugMode() ); } /** * Don't break debug mode by only showing file URLs * @param ResourceLoaderContext $context * @return array */ public function getScriptURLsForDebug( ResourceLoaderContext $context ) { return ResourceLoaderModule::getScriptURLsForDebug( $context ); } /** * Get a full list of available languages * @return array */ private function getPygmentsLanguages() { $lexers = require __DIR__ . '/../SyntaxHighlight.lexers.php'; return $lexers; } public function enableModuleContentVersion() { return true; } }