conquer/highlightjs

Yii2 Highlightjs widget

Installs: 182

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Type:yii2-extension

1.0.0 2016-04-19 15:14 UTC

This package is auto-updated.

Last update: 2024-04-24 03:46:16 UTC


README

Description

Syntax highlighting for the Web

For more information please visit Highlightjs Home Page

Installation

The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require conquer/highlightjs "*"

or add

"conquer/highlightjs": "*"

to the require section of your composer.json file.

Usage

use conquer\highlightjs\HighlightjsWidget;

<?= HighlightjsWidget::widget([
    'language' => 'xml',
    'content' => file_get_contents('some_xml_file.xml'),
]); ?>

License

conquer/highlightjs is released under the MIT License. See the bundled LICENSE.md for details.