|
| 1 | +# Highlight Php Plugin |
| 2 | + |
| 3 | +**This README.md file should be modified to describe the features, installation, configuration, and general usage of the plugin.** |
| 4 | + |
| 5 | +The **Highlight Php** Plugin is an extension for [Grav CMS](http://github.com/getgrav/grav). Server-side syntax highlighting (i.e., without JavaScript) using the [highlight.php](https://github.com/scrivo/highlight.php) library |
| 6 | + |
| 7 | +## Installation |
| 8 | + |
| 9 | +Installing the Highlight Php plugin can be done in one of three ways: The GPM (Grav Package Manager) installation method lets you quickly install the plugin with a simple terminal command, the manual method lets you do so via a zip file, and the admin method lets you do so via the Admin Plugin. |
| 10 | + |
| 11 | +### GPM Installation (Preferred) |
| 12 | + |
| 13 | +To install the plugin via the [GPM](http://learn.getgrav.org/advanced/grav-gpm), through your system's terminal (also called the command line), navigate to the root of your Grav-installation, and enter: |
| 14 | + |
| 15 | + bin/gpm install highlight-php |
| 16 | + |
| 17 | +This will install the Highlight Php plugin into your `/user/plugins`-directory within Grav. Its files can be found under `/your/site/grav/user/plugins/highlight-php`. |
| 18 | + |
| 19 | +### Manual Installation |
| 20 | + |
| 21 | +To install the plugin manually, download the zip-version of this repository and unzip it under `/your/site/grav/user/plugins`. Then rename the folder to `highlight-php`. You can find these files on [GitHub](https://github.com/iainsgillis/grav-plugin-highlight-php) or via [GetGrav.org](http://getgrav.org/downloads/plugins#extras). |
| 22 | + |
| 23 | +You should now have all the plugin files under |
| 24 | + |
| 25 | + /your/site/grav/user/plugins/highlight-php |
| 26 | + |
| 27 | +> NOTE: This plugin is a modular component for Grav which may require other plugins to operate, please see its [blueprints.yaml-file on GitHub](https://github.com/iainsgillis/grav-plugin-highlight-php/blob/master/blueprints.yaml). |
| 28 | +
|
| 29 | +### Admin Plugin |
| 30 | + |
| 31 | +If you use the Admin Plugin, you can install the plugin directly by browsing the `Plugins`-menu and clicking on the `Add` button. |
| 32 | + |
| 33 | +## Configuration |
| 34 | + |
| 35 | +Before configuring this plugin, you should copy the `user/plugins/highlight-php/highlight-php.yaml` to `user/config/plugins/highlight-php.yaml` and only edit that copy. |
| 36 | + |
| 37 | +Here is the default configuration and an explanation of available options: |
| 38 | + |
| 39 | +```yaml |
| 40 | +enabled: true |
| 41 | +``` |
| 42 | +
|
| 43 | +Note that if you use the Admin Plugin, a file with your configuration named highlight-php.yaml will be saved in the `user/config/plugins/`-folder once the configuration is saved in the Admin. |
| 44 | + |
| 45 | +## Usage |
| 46 | + |
| 47 | +**Describe how to use the plugin.** |
| 48 | + |
| 49 | +## Credits |
| 50 | + |
| 51 | +**Did you incorporate third-party code? Want to thank somebody?** |
| 52 | + |
| 53 | +## To Do |
| 54 | + |
| 55 | +- [ ] Future plans, if any |
| 56 | + |
0 commit comments