/monaco-kaco

Kaco low-code language support for Monoco Editor.

Primary LanguageTypeScript

Monaco Kaco

Kaco language plugin for Monoco Editor. Provides the following features:

  • Syntax highlighting
  • Code completion
  • Validation: Syntax errors and linting
  • Hovers
  • Format

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
setValue Set editor model value (value: string) => void
getValue Get editor model value () => string