PHP code example of laravel-admin-ext / clike-editor

1. Go to this page and download the library: Download laravel-admin-ext/clike-editor 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/ */

    

laravel-admin-ext / clike-editor example snippets



    'extensions' => [

        'clike-editor' => [
        
            // 如果要关掉这个扩展,设置为false
            'enable' => true,
            
            // 编辑器的配置
            'config' => [
                
            ]
        ]
    ]


$form->clang('code');

$form->cpp('code');

$form->csharp('code');

$form->java('code');

$form->objectivec('code');

$form->scala('code');

$form->kotlin('code');

$form->ceylon('code');

$form->clang('code')->height(500);