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 */ public function getScriptURLsForDebug( ResourceLoaderContext $context ) { return ResourceLoaderModule::getScriptURLsForDebug( $context ); } /** * Get a full list of available langauges * @return array */ private function getPygmentsLanguages() { $lexers = require __DIR__ . '/SyntaxHighlight.lexers.php'; return $lexers; } public function enableModuleContentVersion() { return true; } } class_alias( ResourceLoaderSyntaxHighlightVisualEditorModule::class, 'ResourceLoaderGeSHiVisualEditorModule' );