MediaWiki extensions manual
PhpHighlight
Release status: beta
Implementation Tag
Description Adds a new tag <php> to highlight PHP code with the internal PHP syntax highlighter
Author(s) IAlextalk
MediaWiki 1.23+
Database changes No
License GNU General Public License 2.0 or later
Download
Tags
<php>
Hooks used
  • ParserFirstCallInit
Quarterly downloads 1 (Ranked 169th)
Translate the PhpHighlight extension if it is available at translatewiki.net

The PhpHighlight extension defines a new tag <php> to highlight PHP code with the internal PHP syntax highlighter.

Installation

  • Download and place the file(s) in a directory called PhpHighlight in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/PhpHighlight/PhpHighlight.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.