Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1022 Bytes

File metadata and controls

38 lines (26 loc) · 1022 Bytes

Code editor extension for laravel-admin 2.x based on CodeMirror

Supports phpsqljavascriptjavaccppcsharpobjcscalakotlinceylonpythonrubycsssasslessxmlhtmlnginxvuejsluayamlswiftclojurecoffeescriptprotobufcommonlispdartdockerfilediffrustshellgohaml

QQ20200925-120900

Installation

composer require php-panel/ladmin-ext-code-editor -vvv

Usage

Use it in the form:

$form->code('code_column')->php();

$form->code('code_column')->dockerfile();

$form->code('code_column')->html();

Set height:

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

Use in show page:

// show as PHP code and 300 height.
$show->field('code_column')->code('php', 300);

License

Licensed under The MIT License (MIT).