Extension:PhpHighlight

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
<php>
Quarterly downloads 2 (Ranked 167th)
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.

InstallationEdit

  • 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 :
    require_once "$IP/extensions/PhpHighlight/PhpHighlight.php";
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.