mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-23 22:13:40 +00:00
27b6687848
wfMakeStaticArrayFile() expects an associative array, so let's take this opportunity to turn the lexer list into one with true as the value. This allows us to use isset() instead of the slower in_array() when checking to see if a lexer is known. Bug: T200626 Change-Id: I7a852ddbcfa7c8ed19ac933205cabd176b20d0cb
77 lines
1.7 KiB
JSON
77 lines
1.7 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",
|
|
"descriptionmsg": "syntaxhighlight-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "parserhook",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.32"
|
|
},
|
|
"MessagesDirs": {
|
|
"SyntaxHighlight_GeSHi": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"AutoloadClasses": {
|
|
"SyntaxHighlight": "includes/SyntaxHighlight.php",
|
|
"SyntaxHighlight_GeSHi": "includes/SyntaxHighlight.php",
|
|
"GeSHi": "includes/GeSHi.php",
|
|
"SyntaxHighlightAce": "includes/SyntaxHighlightAce.php",
|
|
"SyntaxHighlightGeSHiCompat": "includes/SyntaxHighlightGeSHiCompat.php",
|
|
"ResourceLoaderSyntaxHighlightVisualEditorModule": "includes/ResourceLoaderSyntaxHighlightVisualEditorModule.php"
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "SyntaxHighlight_GeSHi/modules"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.pygments": {
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
],
|
|
"styles": [
|
|
"pygments.generated.css",
|
|
"pygments.wrapper.css"
|
|
]
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"ParserFirstCallInit": [
|
|
"SyntaxHighlight::onParserFirstCallInit"
|
|
],
|
|
"ContentGetParserOutput": [
|
|
"SyntaxHighlight::onContentGetParserOutput"
|
|
],
|
|
"ApiFormatHighlight": [
|
|
"SyntaxHighlight::onApiFormatHighlight"
|
|
],
|
|
"ResourceLoaderRegisterModules": [
|
|
"SyntaxHighlight::onResourceLoaderRegisterModules"
|
|
]
|
|
},
|
|
"SyntaxHighlightModels": {
|
|
"css": "css",
|
|
"javascript": "javascript"
|
|
},
|
|
"VisualEditorPluginModules": [
|
|
"ext.geshi.visualEditor"
|
|
],
|
|
"config": {
|
|
"PygmentizePath": false
|
|
},
|
|
"TrackingCategories": [
|
|
"syntaxhighlight-error-category"
|
|
],
|
|
"manifest_version": 1
|
|
}
|