mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-23 22:13:40 +00:00
f2613d589c
Bug: T315872 Depends-On: I605a24c708e60ccffde9dce524485f61fd5c7b06 Change-Id: I48c1aaf56ccea232dca7cb52f24a29a421b94d86
133 lines
3.5 KiB
JSON
133 lines
3.5 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.36",
|
|
"platform": {
|
|
"ability-shell": true
|
|
}
|
|
},
|
|
"MessagesDirs": {
|
|
"SyntaxHighlight_GeSHi": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"MediaWiki\\SyntaxHighlight\\": "includes/"
|
|
},
|
|
"AutoloadClasses": {
|
|
"SyntaxHighlight": "includes/SyntaxHighlight.php",
|
|
"MediaWiki\\SyntaxHighlight\\SyntaxHighlight": "includes/SyntaxHighlight.php"
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "SyntaxHighlight_GeSHi/modules"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.pygments": {
|
|
"class": "MediaWiki\\SyntaxHighlight\\ResourceLoaderPygmentsModule",
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
],
|
|
"styles": [
|
|
"pygments.wrapper.less"
|
|
]
|
|
},
|
|
"ext.pygments.linenumbers": {
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
],
|
|
"scripts": [
|
|
"pygments.linenumbers.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.util"
|
|
]
|
|
},
|
|
"ext.geshi.visualEditor": {
|
|
"class": "MediaWiki\\SyntaxHighlight\\ResourceLoaderSyntaxHighlightVisualEditorModule",
|
|
"scripts": [
|
|
"ve-syntaxhighlight/ve.dm.MWSyntaxHighlightNode.js",
|
|
"ve-syntaxhighlight/ve.dm.MWBlockSyntaxHighlightNode.js",
|
|
"ve-syntaxhighlight/ve.dm.MWInlineSyntaxHighlightNode.js",
|
|
"ve-syntaxhighlight/ve.ce.MWSyntaxHighlightNode.js",
|
|
"ve-syntaxhighlight/ve.ce.MWBlockSyntaxHighlightNode.js",
|
|
"ve-syntaxhighlight/ve.ce.MWInlineSyntaxHighlightNode.js",
|
|
"ve-syntaxhighlight/ve.ui.MWSyntaxHighlightWindow.js",
|
|
"ve-syntaxhighlight/ve.ui.MWSyntaxHighlightDialog.js",
|
|
"ve-syntaxhighlight/ve.ui.MWSyntaxHighlightDialogTool.js",
|
|
"ve-syntaxhighlight/ve.ui.MWSyntaxHighlightInspector.js",
|
|
"ve-syntaxhighlight/ve.ui.MWSyntaxHighlightInspectorTool.js"
|
|
],
|
|
"styles": [
|
|
"ve-syntaxhighlight/ve.ce.MWSyntaxHighlightNode.css",
|
|
"ve-syntaxhighlight/ve.ui.MWSyntaxHighlightDialog.css",
|
|
"ve-syntaxhighlight/ve.ui.MWSyntaxHighlightInspector.css"
|
|
],
|
|
"dependencies": [
|
|
"ext.visualEditor.mwcore",
|
|
"oojs-ui.styles.icons-editing-advanced"
|
|
],
|
|
"messages": [
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-code",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-language",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-none",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-showlines",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-startingline",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-title"
|
|
],
|
|
"targets": [ "desktop", "mobile" ]
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"ParserFirstCallInit": [
|
|
"SyntaxHighlight::onParserFirstCallInit"
|
|
],
|
|
"ContentGetParserOutput": [
|
|
"SyntaxHighlight::onContentGetParserOutput"
|
|
],
|
|
"ApiFormatHighlight": [
|
|
"SyntaxHighlight::onApiFormatHighlight"
|
|
],
|
|
"SoftwareInfo": "SyntaxHighlight::onSoftwareInfo"
|
|
},
|
|
"ParsoidModules": [
|
|
"MediaWiki\\SyntaxHighlight\\ParsoidExt"
|
|
],
|
|
"attributes": {
|
|
"SyntaxHighlight": {
|
|
"Models": {}
|
|
},
|
|
"VisualEditor": {
|
|
"PluginModules": [
|
|
"ext.geshi.visualEditor"
|
|
]
|
|
}
|
|
},
|
|
"config": {
|
|
"PygmentizePath": {
|
|
"value": false
|
|
}
|
|
},
|
|
"TrackingCategories": [
|
|
"syntaxhighlight-error-category",
|
|
"syntaxhighlight-enclose-category",
|
|
"syntaxhighlight-source-category"
|
|
],
|
|
"manifest_version": 2
|
|
}
|