mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 18:49:22 +00:00
39f0b85229
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
87 lines
1.9 KiB
JSON
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
|
|
}
|