1.0.11 • Published 11 months ago

monaco-editor-with-textmate v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

monaco-editor-with-textmate

This gets TextMate grammars working in standalone Monaco by leveraging vscode-oniguruma and vscode-textmate. For more context

Install

yarn add monaco-editor-with-textmate

Usage

import { create, Editor } from 'monaco-editor-with-textmate';

// create editor
const editor = await create(document.getElementById('container'), {
  value: '{}',
  language: 'json',
});

//react
export default () => {
  return (
    <Editor
      onChange={(v) => {
        console.log(v);
      }}
      options={{ language: 'javascript' }}
      value={value}
      height="500px"
    />
  );
};

Documents

read the type definition from index.d.ts;

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0

1 year ago