mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 18:49:22 +00:00
f41f26a85c
Do this by having SyntaxHighlight_GeSHi::highlight() return a Status object rather than a plain string, and by making it the highlight method's job to look up a lexer for a language. The actual warning text is not outputted anywhere yet; deferring that for a follow-up patch. Bug: T103586 Change-Id: Id839f925a56ab09a8423958327b9aefd7207ef37
99 lines
2.4 KiB
JSON
99 lines
2.4 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",
|
|
"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": [
|
|
"VisualEditor/ve.dm.MWSyntaxHighlightNode.js",
|
|
"VisualEditor/ve.ce.MWSyntaxHighlightNode.js",
|
|
"VisualEditor/ve.ui.MWSyntaxHighlightInspector.js",
|
|
"VisualEditor/ve.ui.MWSyntaxHighlightInspectorTool.js"
|
|
],
|
|
"styles": [
|
|
"VisualEditor/ve.ui.MWSyntaxHighlightInspector.css"
|
|
],
|
|
"dependencies": [
|
|
"ext.visualEditor.mwcore"
|
|
],
|
|
"messages": [
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-code",
|
|
"syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-language",
|
|
"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"
|
|
],
|
|
"manifest_version": 1
|
|
}
|