0.0.2 • Published 4 years ago
monaco-kaco v0.0.2
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 serveNPM
Install
$ yarn add monaco-kacoQuick 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 |