mediawiki-extensions-Syntax.../extension.json
Derk-Jan Hartman 39f0b85229 Do not extend GeSHi class with private modifications
Our GeSHi class is intended for other extensions making use of GeSHi.
However other libraries or extensions can bring their own GeSHi to the
classloader. In those cases, we cannot find our private modifications
like $compatibleLexers on this class. Instead use
SyntaxHighlightGeSHiCompat for our privact modifications and keep GeSHi
closer to the original implementation.

Bug: T139594
Change-Id: I5c2ba9dfb08ec31f6b5cfd90083cbae0ae0ac3c4
2017-05-11 18:11:25 +00:00

87 lines
1.9 KiB
JSON

{
"name": "SyntaxHighlight",
"version": "2.0",
"author": [
"Brion Vibber",
"Tim Starling",
"Rob Church",
"Niklas Laxström",
"Ori Livneh",
"Ed Sanders"
],
"url": "https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi",
"descriptionmsg": "syntaxhighlight-desc",
"license-name": "GPL-2.0+",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.27"
},
"MessagesDirs": {
"SyntaxHighlight_GeSHi": [
"i18n"
]
},
"AutoloadClasses": {
"SyntaxHighlight_GeSHi": "SyntaxHighlight_GeSHi.class.php",
"GeSHi": "SyntaxHighlight_GeSHi.compat.php",
"SyntaxHighlightAce": "SyntaxHighlight_GeSHi.ace.php",
"SyntaxHighlightGeSHiCompat": "SyntaxHighlight_GeSHi.compat.php",
"ResourceLoaderGeSHiVisualEditorModule": "ResourceLoaderGeSHiVisualEditorModule.php"
},
"ExtensionFunctions": [
"SyntaxHighlight_GeSHi::onSetup"
],
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "SyntaxHighlight_GeSHi/modules"
},
"ResourceModules": {
"ext.pygments": {
"position": "top",
"targets": [
"desktop",
"mobile"
],
"styles": [
"pygments.generated.css",
"pygments.wrapper.css"
]
}
},
"Hooks": {
"ParserFirstCallInit": [
"SyntaxHighlight_GeSHi::onParserFirstCallInit"
],
"ContentGetParserOutput": [
"SyntaxHighlight_GeSHi::onContentGetParserOutput"
],
"ApiFormatHighlight": [
"SyntaxHighlight_GeSHi::onApiFormatHighlight"
],
"RejectParserCacheValue": [
"SyntaxHighlight_GeSHi::onRejectParserCacheValue"
],
"ResourceLoaderRegisterModules": [
"SyntaxHighlight_GeSHi::onResourceLoaderRegisterModules"
]
},
"SyntaxHighlightModels": {
"css": "css",
"javascript": "javascript"
},
"VisualEditorPluginModules": [
"ext.geshi.visualEditor"
],
"config": {
"PygmentizePath": false
},
"TrackingCategories": [
"syntaxhighlight-error-category"
],
"ParserTestFiles": [
"tests/parserTests.txt"
],
"load_composer_autoloader": true,
"manifest_version": 1
}