encodeJson( self::getPygmentsLanguages() ) . ');' . 've.dm.MWSyntaxHighlightNode.static.addGeshiToPygmentsMap(' . $context->encodeJson( SyntaxHighlightGeSHiCompat::getGeSHiToPygmentsMap() ) . ');' . 've.dm.MWSyntaxHighlightNode.static.addPygmentsToAceMap(' . $context->encodeJson( SyntaxHighlightAce::getPygmentsToAceMap() ) . ');'; } /** * Get a full list of available languages * @return string[] */ private static function getPygmentsLanguages(): array { return array_keys( require __DIR__ . '/../SyntaxHighlight.lexers.php' ); } }