Skip to content

php-panel/ladmin-ext-code-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 91.1%
  • Blade 8.9%