Extension:PhpHighlight
Appearance
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 | 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
[edit]- 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.