6.4.0 • Published 28 days ago

@codemirror/legacy-modes v6.4.0

Weekly downloads
337
License
MIT
Repository
github
Last release
28 days ago

@codemirror/legacy-modes NPM version

[ WEBSITE | ISSUES | FORUM | CHANGELOG ]

This package implements a collection of ported stream language modes for the CodeMirror code editor. Each mode is available as a separate script file, under "@codemirror/legacy-modes/mode/[name]", and exports the values listed below.

The project page has more information, a number of examples and the documentation.

This code is released under an MIT license.

We aim to be an inclusive, welcoming community. To make that explicit, we have a code of conduct that applies to communication around the project.

Example

Using modes from this package works like this:

  • Install this package and the @codemirror/language package.

  • Find the StreamParser instance you need in the reference below.

  • Add StreamLanguage.define(theParser) to your editor's configuration.

For example, to load the Lua mode, you'd do something like...

import {StreamLanguage} from "@codemirror/language"
import {lua} from "@codemirror/legacy-modes/mode/lua"

import {EditorView, basicSetup} from "codemirror"

let view = new EditorView({
  extensions: [basicSetup, StreamLanguage.define(lua)]
})

API Reference

@infinitebrahmanuniverse/nolb-_codem@everything-registry/sub-chunk-184codemirror-lang-http@shaderpad/core@backstage/plugin-entity-validation@backstage-community/plugin-entity-validation@calyptia-vivo/components@chloerei/rich-text-editor@biscuit-auth/web-components@brightspace-ui/htmleditor@brocatel/mde@bucai/json2dart@bookshop/browser@bookshop/renderer@atrilabs/custom-props-layer@backstage/plugin-scaffolder@conda-store/conda-store-ui@cosmonexus/cm@dashkite/studio-components@codemirror/language-data@devbookhq/ui@exabyte-io/cove.js@elyra/canvas@dynatrace/strato-components-preview@gradio/code@grame/faust-web-component@goauthentik-test/web@goauthentik/web@he3-kit/ui@hpe.com/hew@focus-reactive/react-yaml@flok-editor/lang-tidal@geal/biscuit-web-components@itgenio/edik-codemirror@jinntec/jinn-codemirror@jupyterlab/codemirror@jupyterlab/codemirror-extensiononchain-cad-sdkonchain-uinbdimemirrorsharp-codemirror-6-previewprosemirror-codemirror-blockpriceless-mathematicareact-formulereact-readonly-codemirror6teng-xinublattstarboard-notebookvirtai-plusvirtai-ui-pluswolfram-language-for-codemirror@airplane/views@kodemo/player@luckyboyz/codemirror6@instructure/ui-source-code-editor@retronav/ixora@sanity/code-input@stencila/components@staticcms/core@tatatap-com/sowhat-editor@temporalio/ui@termsurf/crow@silverbulletmd/common@silverbulletmd/server@silverbulletmd/webadmin-ui-longvb@vrabbi/plugin-scaffolder@windicss/shared-components@veecode-platform/plugin-scaffolder@zalastax/nolb-_codem@uiw/codemirror-extensions-langscannon-codeeditorcodemirror-lang-http-bakcodemirror-lang-markdoccodesandbox-sandpack-vue3codesandbox-theme-docsfancy-editor-vue3fragment-shadergatsby-philipps-foam-themehomeassistant-frontend-racelandide-pluginicp-bundlejaffle
6.4.0

28 days ago

6.3.3

10 months ago

6.3.2

1 year ago

6.3.0

1 year ago

6.2.0

2 years ago

6.3.1

1 year ago

6.1.0

2 years ago

6.0.0

2 years ago

0.20.0

2 years ago

0.19.1

2 years ago

0.19.0

3 years ago

0.18.1

3 years ago

0.18.0

3 years ago

0.17.1

3 years ago

0.17.0

3 years ago