Skip to content

laravel-admin-extensions/code-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Supports phpsqljavascriptjavaccppcsharpobjcscalakotlinceylonpythonrubycsssasslessxmlhtmlnginxvuejsluayamlswiftclojurecoffeescriptprotobufcommonlispdartdockerfilediffrustshellgohaml

基于CodeMirror的代码编辑器,可用于laravel-admin 2.x

支持phpsqljavascriptjavaccppcsharpobjcscalakotlinceylonpythonrubycsssasslessxmlhtmlnginxvuejsluayamlswiftclojurecoffeescriptprotobufcommonlispdartdockerfilediffrustshellgohaml等语言。

QQ20200925-120900

Installation

composer require laravel-admin-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);

Donate

Help keeping the project development going, by donating a little. Thanks in advance.

PayPal Me

如果你觉得这个项目帮助你节约了时间,不妨支持一下,已激励我创造出更多有用的项目

-1

License

Licensed under The MIT License (MIT).