grenhaz / yii2-highlight
Yii2 Highlight wrapper
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.6
This package is not auto-updated.
Last update: 2024-09-29 06:31:02 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist grenhaz/yii2-highlight
or add
"grenhaz/yii2-highlight": "~1.0.0"
to the require
section of your composer.json.
Basic Usage
use yii\helpers\Json; use grenhaz\highlight\HighlightWidget; echo HighlightWidget::widget([ "language" => "json", "code" => Json::encode( Json::decode( $data ), JSON_PRETTY_PRINT ) ]);