Extension:PhpHighlight
![]() Release status: betaCategory:Beta status extensions |
|
---|---|
Implementation | TagCategory:Tag extensions |
Description | Adds a new tag <php> to highlight PHP code with the internal PHP syntax highlighter |
Author(s) | IAlextalk |
MediaWiki | 1.23+Category:Extensions with manual MediaWiki version |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | Category:Extensions in Wikimedia version control |
<php> |
|
Quarterly downloads | 0 |
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 move the extracted
PhpHighlight
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PhpHighlight - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'PhpHighlight' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed. Category:Syntax highlighting extensions
Category:All extensions
Category:Beta status extensions
Category:Extensions in Wikimedia version control
Category:Extensions with manual MediaWiki version
Category:Extensions without a compatibility policy
Category:Extensions without an image
Category:GPL licensed extensions
Category:ParserFirstCallInit extensions
Category:Syntax highlighting extensions
Category:Tag extensions