🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

monaco-editor-with-textmate

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monaco-editor-with-textmate

use monaco-editor with textmate

1.0.11
latest
Source
npm
Version published
Weekly downloads
9
Maintainers
2
Weekly downloads
 
Created
Source

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;

FAQs

Package last updated on 06 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts