|
MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...

Public Member Functions | |
| onApiFormatHighlight ( $context, $text, $mime, $format) | |
| Use this hook to syntax-highlight API pretty-printed output. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ApiFormatHighlight" to register handlers implementing this interface.
Definition at line 14 of file ApiFormatHighlightHook.php.
| MediaWiki\Api\Hook\ApiFormatHighlightHook::onApiFormatHighlight | ( | $context, | |
| $text, | |||
| $mime, | |||
| $format ) |
Use this hook to syntax-highlight API pretty-printed output.
| IContextSource | $context | |
| string | $text | Text to be highlighted |
| string | $mime | MIME type of $text |
| string | $format | API format code for $text |
Implemented in MediaWiki\Api\ApiHookRunner.