PHP code example of hypejunction / elgg-codemirror

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

    

hypejunction / elgg-codemirror example snippets


echo elgg_view_field([
    '#type' => 'codemirror',
    'name' => 'code',
]);

$code = get_input('code', '', false);