PHP code example of yii2cmf / yii2-codemirror-asset

1. Go to this page and download the library: Download yii2cmf/yii2-codemirror-asset 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/ */

    

yii2cmf / yii2-codemirror-asset example snippets


\yii2cmf\codemirror\CodeMirrorAsset::register($this); 

$this->params['codemirror_theme'] = 'darcula';
$this->params['codemirror_mode'] = 'clike';
\yii2cmf\codemirror\CodeMirrorAsset::register($this);