2017 © Pedro Peláez
 

yii2-extension yii2-highlight

Yii2 Highlight wrapper

image

grenhaz/yii2-highlight

Yii2 Highlight wrapper

  • Tuesday, March 20, 2018
  • by grenhaz
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 100 % Grown

The README.md

Highlight wrapper for Yii2.

See: https://highlightjs.org/, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist grenhaz/yii2-highlight

or add, (*4)

"grenhaz/yii2-highlight": "~1.0.0"

to the require section of your composer.json., (*5)

Basic Usage

``` php use yii\helpers\Json; use grenhaz\highlight\HighlightWidget;, (*6)

echo HighlightWidget::widget([ "language" => "json", "code" => Json::encode( Json::decode( $data ), JSON_PRETTY_PRINT ) ]); ```, (*7)

Example

Example, (*8)

The Versions

20/03 2018

dev-master

9999999-dev

Yii2 Highlight wrapper

  Sources   Download

MIT

The Requires

 

log logging

17/03 2018

1.0.0

1.0.0.0

Yii2 Highlight wrapper

  Sources   Download

MIT

The Requires

 

log logging