mediawiki-extensions-Syntax.../extension.json
Reedy 7b266265a8 Move SyntaxHighlightModels from config to attributes
Change-Id: I6b98dbde365125cc2a5d336865080f67941403db
2020-05-12 19:27:56 +01:00

88 lines
1.8 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.33",
"platform": {
"ability-shell": true
}
},
"MessagesDirs": {
"SyntaxHighlight_GeSHi": [
"i18n"
]
},
"AutoloadClasses": {
"SyntaxHighlight": "includes/SyntaxHighlight.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"
]
},
"attributes": {
"SyntaxHighlight": {
"Models" : {
"css": "css",
"javascript": "javascript"
}
},
"VisualEditor": {
"PluginModules": [
"ext.geshi.visualEditor"
]
}
},
"config": {
"PygmentizePath": {
"value": false
}
},
"TrackingCategories": [
"syntaxhighlight-error-category",
"syntaxhighlight-enclose-category",
"syntaxhighlight-source-category"
],
"manifest_version": 2
}