laravel-admin-ext/code-editor

Code editor extension for laravel-admin based on code-mirror

v1.0.0 2020-09-25 04:11 UTC

This package is auto-updated.

Last update: 2024-11-25 18:40:57 UTC


README

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