1.0.16 • Published 5 months ago

monaco-editor-nginx v1.0.16

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

Nginx language plugin for the Monaco Editor. It provides the following features when editing Nginx config files:

  • Syntax highlighting

Quick Start

npm install monaco-editor-nginx

Open in CodeSandbox Open in Github gh-pages

import MonacoEditor from '@uiw/react-monacoeditor';
import 'monaco-editor-nginx';

<MonacoEditor
  ref={editor}
  theme={theme === 'vs-dark' ? 'nginx-theme-dark' : 'nginx-theme'}
  onChange={(value) => {
    setContentDownload(value);
  }}
  language="nginx"
  value={content}
  height="calc(100vh - 36px)"
/>

or, Integrating the ESM version of the Monaco Editor

import * as monaco from 'monaco-editor';
import 'monaco-editor-nginx';

monaco.editor.create(document.getElementById("container"), {
  theme: 'nginx-theme',
  value: 'nginx code.....',
  language: 'nginx'
});

Development

Runs the project in development mode.

# Step 1, run first, listen to the component compile and output the .js file
# listen for compilation output type .d.ts file
npm run watch
# Step 2, development mode, listen to compile preview website instance
npm run start

Builds the app for production to the build folder.

npm run build

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

Related

Contributors

As always, thanks to our amazing contributors!

Made with github-action-contributors.

License

Licensed under the MIT License.

1.0.16

5 months ago

1.0.15

5 months ago

1.0.14

11 months ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago