Giter VIP home page Giter VIP logo

vue-ace-editor's Introduction

vue-ace-editor

基于ace editor封装的vue组件,开箱即用。

官方文档

https://ace.c9.io/#nav=api

安装

npm i --S vue-ace-editor

基本用法

<template>
  <ace></ace>
</template>

<script>
  import ace from 'vue-ace-editor'
  export default {
  
  }
</script>

基本配置

  • 主题
theme
ambiance
eclipse
github
chrome
xcode

更多请查看:https://github.com/ajaxorg/ace/tree/master/lib/ace/theme

eg:

<ace :theme="github"></ace>

14ubHU.png

  • 语言
mode
javascript
java
c_cpp
php
python

更多配置请看:https://github.com/ajaxorg/ace/tree/master/lib/ace/mode

<ace :mode="c_cpp"></ace>

14K0VU.png

  • 字体大小

<ace :font-size="14"></ace>

  • 代码补全

<ace :auto-completion="true"></ace>

14KBaF.png

  • 只读模式
  • 编辑内容
  • 宽高
  • 开启实时修改配置面板

高级配置

  • 键位绑定
  • 断点设置
  • 标记

vue-ace-editor's People

Contributors

xiaolee55 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.