monaco-kaco
v0.0.2
Published
Monaco Kaco Editor.
Downloads
3
Maintainers
Readme
Monaco Kaco
Kaco language plugin for Monoco Editor. Provides the following features in future:
- [ ] Syntax highlighting
- [ ] Code completion
- [ ] Validation: Syntax errors and linting
- [ ] Hovers
Try it out
Try the editor out on website.
Usage
Sample project
$ yarn install
$ yarn run serve
NPM
Install
$ yarn add monaco-kaco
Quick Start
import Vue from 'vue';
import MonacoKaco from 'monaco-kaco';
import 'monaco-kaco/lib/index.css';
Vue.use(MonacoKaco);
Attributes
| Attribute | Description | Type | Default | | --------- | --------------------------------------------------------- | ------ | --------- | | theme | Monaco editor initial theme | string | 'vs-dark' | | value | The initial value of the auto created model in the editor | string | 一 |
Methods
| Method | Description | Type | | -------- | ---------------------- | ------------ | | getValue | Get editor model value | () => string |