1.0.1 • Published 6 years ago
monaco-jsx-syntax-highlighter v1.0.1
monaco-jsx-syntax-highlighter
An extensible library to highlight JSX syntax for the Monaco Editor using JsCodeShift. It exposes its AST, so you add your own highlights.
Dependencies
It requires monaco and jscodeshift, for convenience, they are listed as peer dependencies.
Installation
Install the package in your project directory with:
// with npm
npm install monaco-jsx-syntax-highlighter
// with yarn
yarn add monaco-jsx-syntax-highlighterDocumentation
import monaco from 'monaco';
import j from 'jscodeshift';