phill-m/silverstripe-acecodeeditor

Ace 代码编辑器字段,适用于 SilverStripe 4

安装: 65

依赖项: 0

建议者: 0

安全性: 0

星级: 2

关注者: 2

分支: 2

开放问题: 1

类型:silverstripe-module

dev-master 2017-12-01 15:11 UTC

This package is not auto-updated.

Last update: 2024-09-29 04:43:07 UTC


README

Build Status

Ace Editor (https://ace.c9.io) 的 SilverStripe 4 实现

维护者联系方式

Phil Mobbs phil@phillipmobbs.co.uk

要求

  • SilverStripe 框架 ^4.0

安装

使用 Composer 安装

composer require phill-m/silverstripe-acecodeeditor

然后运行 dev/build

用法

$field = AceEditorField::create('Content');

// Set the theme, default: monokai
$field->setTheme('pastel_on_dark')

// Set the mode, default html
$field->setMode('javascript')

// Set the number of rows, 
$field->setRows(20);

支持的主题

  • ambiance
  • chaos
  • chrome
  • clouds
  • clouds_midnight
  • cobalt
  • crimson_editor
  • dawn
  • dracula
  • dreamweaver
  • eclipse
  • github
  • gob
  • gruvbox
  • idle_fingers
  • iplastic
  • katzenmilch
  • kr_theme
  • kuroir
  • merbivore
  • merbivore_soft
  • mono_industrial
  • monokai
  • pastel_on_dark
  • solarized_dark
  • solarized_light
  • sqlserver
  • terminal
  • textmate
  • tomorrow
  • tomorrow_night
  • tomorrow_night_blue
  • tomorrow_night_bright
  • tomorrow_night_eighties
  • twilight
  • vibrant_ink
  • xcode

支持的模式

  • abap
  • abc
  • actionscript
  • ada
  • apache_conf
  • applescript
  • asciidoc
  • assembly_x86
  • autohotkey
  • batchfile
  • bro
  • c_cpp
  • c9search
  • cirru
  • clojure
  • cobol
  • coffee
  • coldfusion
  • csharp
  • csound_document
  • csound_orchestra
  • csound_score
  • css
  • curly
  • d
  • dart
  • diff
  • django
  • dockerfile
  • dot
  • drools
  • eiffel
  • ejs
  • elixir
  • elm
  • erlang
  • forth
  • fortran
  • ftl
  • gcode
  • gherkin
  • gitignore
  • glsl
  • gobstones
  • golang
  • graphqlschema
  • groovy
  • haml
  • handlebars
  • haskell
  • haskell_cabal
  • haxe
  • hjson
  • html
  • html_elixir
  • html_ruby
  • ini
  • io
  • jack
  • jade
  • java
  • javascript
  • json
  • jsoniq
  • jsp
  • jssm
  • jsx
  • julia
  • kotlin
  • latex
  • lean
  • less
  • liquid
  • lisp
  • live_script
  • livescript
  • logiql
  • lsl
  • lua
  • luapage
  • lucene
  • makefile
  • markdown
  • mask
  • matlab
  • maze
  • mel
  • mips_assembler
  • mipsassembler
  • mushcode
  • mysql
  • nix
  • nsis
  • objectivec
  • ocaml
  • pascal
  • perl
  • pgsql
  • php
  • pig
  • plain_text
  • powershell
  • praat
  • prolog
  • properties
  • protobuf
  • python
  • r
  • razor
  • rdoc
  • red
  • rhtml
  • rst
  • ruby
  • rust
  • sass
  • scad
  • scala
  • scheme
  • scss
  • sh
  • sjs
  • smarty
  • snippets
  • soy_template
  • space
  • sparql
  • sql
  • sqlserver
  • stylus
  • svg
  • swift
  • swig
  • tcl
  • tex
  • text
  • textile
  • toml
  • tsx
  • turtle
  • twig
  • typescript
  • vala
  • VBScript
  • Velocity
  • Verilog
  • VHDL
  • Wollok
  • XML
  • XQuery
  • YAML