Kaco language plugin for Monoco Editor. Provides the following features:
- Syntax highlighting
- Code completion
- Validation: Syntax errors and linting
- Hovers
- Format
Try the editor out on website.
$ yarn install
$ yarn run serve
$ yarn add monaco-kaco
import Vue from 'vue';
import MonacoKaco from 'monaco-kaco';
import 'monaco-kaco/lib/index.css';
Vue.use(MonacoKaco);
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 | 一 |
Method | Description | Type |
---|---|---|
setValue | Set editor model value | (value: string) => void |
getValue | Get editor model value | () => string |