A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jaywcjlove/nginx-editor below:

jaywcjlove/nginx-editor: Nginx language for Monaco Editor.

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

npm install monaco-editor-nginx

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'
});

Warning

Using npm to install now cannot preview the example effect, but using yarn@1 works. Currently, we are not sure what the reason is. If anyone knows, please let me know. Thanks a lot 🙏

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.

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

As always, thanks to our amazing contributors!

Made with github-action-contributors.

Licensed under the MIT License.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4