PHP code example of dominus77 / yii2-highlight-plugin
1. Go to this page and download the library: Download dominus77/yii2-highlight-plugin library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dominus77 / yii2-highlight-plugin example snippets
\dominus77\highlight\Plugin::$options = [
//...
'lineNumbers' => true, // Show line numbers
'singleLine' => true, // Show number if one line
];
/** $this \yii\web\View */
\dominus77\highlight\Plugin::register($this);