Hfutsora / monaco-kaco

Kaco low-code language support for Monoco Editor.

Home Page:https://hfutsora.github.io/monaco-kaco/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Kaco low-code language support for Monoco Editor.

https://hfutsora.github.io/monaco-kaco/


Languages

Language:TypeScript 95.3%Language:ANTLR 3.1%Language:Vue 0.8%Language:JavaScript 0.7%Language:HTML 0.1%