Recommend this page to a friend! |
Classes of fathurrahman | mnTemplate | public/asset/vendor/select2/docs/plugins/highlight/README.md | Download |
|
DownloadGrav Highlight Plugin
InstallationInstalling the Highlight plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file. GPM Installation (Preferred)The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:
This will install the Highlight plugin into your Manual InstallationTo install this plugin, just download the zip version of this repository and unzip it under You should now have all the plugin files under
>> NOTE: This plugin is a modular component for Grav which requires Grav, the Error and Problems plugins, and a theme to be installed in order to operate. UsageTo best understand how Highlight works, you should read through the original project documentation. You can override any default settings from the page headers: eg:
You can also disable highlighting for a particular page if causes issues:
Further, you can also enable line numbers on a specific page, or globally (in highlight.yaml):
Valid theme options include: | | | | | :--------------------- | :-------------------- | ----------------------- | | arta | ascetic | atelier-dune.dark | | atelier-dune.light | atelier-forest.dark | atelier-forest.light | | atelier-heath.dark | atelier-heath.light | atelier-lakeside.dark | | atelier-lakeside.light | atelier-seaside.dark | atelier-seaside.light | | brown_paper | codepen-embed | color-brewer | | dark | default | docco | | far | foundation | github | | googlecode | hybrid | idea | | ir_black | kimbie.dark | kimbie.light | | learn | magula | mono-blue | | monokai_sublime | monokai | obsidian | | paraiso.dark | paraiso.light | pojoaque | | railscasts | rainbow | school_book | | solarized_dark | solarized_light | sunburst | | tomorrow-night-blue | tomorrow-night-bright | tomorrow-night-eighties | | tomorrow-night | tomorrow | vs | | xcode | zenburn | | | agate | androidstudio | atelier-cave.dark | | atelier-cave.light | atelier-estuary.dark | atelier-estuary.light | | atelier-plateau.dark | atelier-plateau.light | atelier-savanna.dark | | atelier-savanna.light | atelier-sulphurpool.dark | atelier-sulphurpool.light | | darkula | github-gist | pojoaque | | school_bank | | | Check out a live demo of these themes. > Note: If you want to see this plugin in action, have a look at Grav Learn Site UpdatingAs development for the Highlight plugin continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Highlight is easy, and can be done through Grav's GPM system, as well as manually. GPM Update (Preferred)The simplest way to update this plugin is via the Grav Package Manager (GPM). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
This command will check your Grav install to see if your Highlight plugin is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type Manual UpdateManually updating Highlight is pretty simple. Here is what you will need to do to get this done:
> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in |