Extension:PhpHighlight

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
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>
Translate the PhpHighlight extension if it is available at translatewiki.net
Check usage and version matrix.

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

Installation[edit]

  • 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";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.