mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-30 09:04:29 +00:00
03bbdd8a2e
See Ib031bef17c8a7d708a5c7878e74967d19217bbc8 Change-Id: If7fff2476382853426fa61b5c878f0c6f6b9d0a8
110 lines
2.9 KiB
JSON
110 lines
2.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",
|
|
"require": {
|
|
"MediaWiki": ">= 1.27"
|
|
},
|
|
"MessagesDirs": {
|
|
"SyntaxHighlight_GeSHi": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"AutoloadClasses": {
|
|
"SyntaxHighlight_GeSHi": "SyntaxHighlight_GeSHi.class.php",
|
|
"GeSHi": "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"
|
|
]
|
|
},
|
|
"ext.geshi.visualEditor": {
|
|
"class": "ResourceLoaderGeSHiVisualEditorModule",
|
|
"scripts": [
|
|
"ve-syntaxhighlight/ve.dm.MWSyntaxHighlightNode.js",
|
|
"ve-syntaxhighlight/ve.ce.MWSyntaxHighlightNode.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"
|
|
],
|
|
"messages": [
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-code",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-language",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-none",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-showlines",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-title"
|
|
],
|
|
"targets": [ "desktop", "mobile" ]
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"ParserFirstCallInit": [
|
|
"SyntaxHighlight_GeSHi::onParserFirstCallInit"
|
|
],
|
|
"ContentGetParserOutput": [
|
|
"SyntaxHighlight_GeSHi::onContentGetParserOutput"
|
|
],
|
|
"ApiFormatHighlight": [
|
|
"SyntaxHighlight_GeSHi::onApiFormatHighlight"
|
|
],
|
|
"RejectParserCacheValue": [
|
|
"SyntaxHighlight_GeSHi::onRejectParserCacheValue"
|
|
]
|
|
},
|
|
"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
|
|
}
|