Code editor extension for laravel-admin 2.x based on CodeMirror
Supports php、sql、javascript、java、c、cpp、csharp、objc、scala、kotlin、ceylon、python、ruby、css、sass、less、xml、html、nginx、vuejs、lua、yaml、swift、clojure、coffeescript、protobuf、commonlisp、dart、dockerfile、diff、rust、shell、go、haml
composer require php-panel/ladmin-ext-code-editor -vvvUse 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);Licensed under The MIT License (MIT).
