Download the PHP package mve-it-solutions/yii2-google-code-prettify without Composer
On this page you can find all versions of the php package mve-it-solutions/yii2-google-code-prettify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mve-it-solutions/yii2-google-code-prettify
More information about mve-it-solutions/yii2-google-code-prettify
Files in mve-it-solutions/yii2-google-code-prettify
Package yii2-google-code-prettify
Short Description Yii2 Code syntax highlighter using Google Code Prettify
License MIT
Homepage https://github.com/mve-it-solutions/yii2-google-code-prettify
Informations about the package yii2-google-code-prettify
Yii2 Google Code Prettify
Yii2 Code syntax highlighter using Google Code Prettify
Installation
Composer
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
To use this extension add below to your main layout:
- This will use the style defined by simple.css
- This will add linenumbers on every line in the pre (code) block
- This will auto add the classes prettyprint and linenums to every pre tag
AssetBundle Register Options
style Google Code Prettify Skin Options: desert, doxy, prettify, sons-of-obsidian, sunburst or simple
lineNums Put line numbers on every line Options: true or false
autoAddPreClasses Automatically add classes to every pre tag Options: true or false
License
yii2-google-code-prettify is released under the MIT License. See LICENSE.md file for details.