mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-12-03 18:36:30 +00:00
4c9ed25619
In Scribunto modules, link page names used in require(), mw.loadData() and mw.loadJsonData() invocations. Inspired from the CodeLinks gadget[0] but rewritten for brevity, avoiding Wiktionary specific code, making the code more generic, and thereby adding support for mw.loadJsonData(). [0]: https://en.wiktionary.org/wiki/MediaWiki:Gadget-CodeLinks.js Bug: T368166 Change-Id: Idc554269ee52a05660fa41f065a2b3c73e2e1b9b
121 lines
3.2 KiB
JSON
121 lines
3.2 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.43",
|
|
"platform": {
|
|
"ability-shell": true
|
|
}
|
|
},
|
|
"MessagesDirs": {
|
|
"SyntaxHighlight_GeSHi": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"MediaWiki\\SyntaxHighlight\\": "includes/"
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "SyntaxHighlight_GeSHi/modules"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.pygments": {
|
|
"class": "MediaWiki\\SyntaxHighlight\\ResourceLoaderPygmentsModule",
|
|
"styles": [
|
|
"pygments.wrapper.less"
|
|
]
|
|
},
|
|
"ext.geshi.visualEditor": {
|
|
"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",
|
|
{
|
|
"name": "ve-syntaxhighlight/ve.MWSyntaxHighlightConfig.js",
|
|
"callback": "MediaWiki\\SyntaxHighlight\\VisualEditorConfig::makeScript"
|
|
}
|
|
],
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"ParserFirstCallInit": "main",
|
|
"ContentGetParserOutput": "main",
|
|
"ApiFormatHighlight": "main",
|
|
"SoftwareInfo": "main",
|
|
"ResourceLoaderRegisterModules": "main"
|
|
},
|
|
"HookHandlers": {
|
|
"main": {
|
|
"class": "MediaWiki\\SyntaxHighlight\\SyntaxHighlight"
|
|
}
|
|
},
|
|
"ParsoidModules": [
|
|
"MediaWiki\\SyntaxHighlight\\ParsoidExt"
|
|
],
|
|
"attributes": {
|
|
"SyntaxHighlight": {
|
|
"Models": {}
|
|
},
|
|
"VisualEditor": {
|
|
"PluginModules": [
|
|
"ext.geshi.visualEditor"
|
|
]
|
|
}
|
|
},
|
|
"config": {
|
|
"PygmentizePath": {
|
|
"value": false
|
|
},
|
|
"SyntaxHighlightMaxLines": {
|
|
"value": 1000
|
|
},
|
|
"SyntaxHighlightMaxBytes": {
|
|
"value": 102400
|
|
}
|
|
},
|
|
"TrackingCategories": [
|
|
"syntaxhighlight-error-category",
|
|
"syntaxhighlight-enclose-category",
|
|
"syntaxhighlight-source-category"
|
|
],
|
|
"manifest_version": 2
|
|
}
|