6.5.1 • Published 8 months ago

@codemirror/legacy-modes v6.5.1

Weekly downloads
337
License
MIT
Repository
github
Last release
8 months 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.

Usage

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/coreteng-xinwolfram-language-for-codemirrorstarboard-notebook@wearemanic/uijaffleide-pluginicp-bundlehomeassistant-frontend-racelandhf-richtextmdgjx-web@windicss/shared-components@uiw/codemirror-extensions-langs@termsurf/hawk@temporalio/ui@veecode-platform/plugin-scaffolder@vrabbi/plugin-scaffolder@uuv/assistant@yoopta/code@yongenaelf/react-aelf-visual-builder@zalastax/nolb-_codem@termsurf/crow@termsurf/leafadmin-ui-longvbfragment-shadergatsby-philipps-foam-themefront-helixfancy-editor-vue3cannon-codeeditorcodesandbox-theme-docscodesandbox-sandpack-vue3codemirror-lang-http-bakcodemirror-lang-macaulay2codemirror-lang-markdoccozeflowublattvirtai-ui-plusvirtai-plusvira-componentsmirrorsharp-codemirror-6-previewonchain-cad-sdkprosemirror-codemirror-blockreact-formulenbdimepine-btreepriceless-mathematicareact-readonly-codemirror6@dynatrace/strato-components-preview@eccenca/gui-elements@dracoui/ember@exomatique/editor@exomatique_editor/latex@exabyte-io/cove.js@elyra/canvas@focus-reactive/react-yaml@flok-editor/lang-tidal@gradio/code@grame/faust-web-component@goauthentik/web@goauthentik-test/web@he3-kit/ui@hashicorp/design-system-components@instructure/ui-source-code-editor@geal/biscuit-web-components@itgenio/edik-codemirror@jinntec/jinn-codemirror@johnnycubides/catalejo-vue3-desktop-v2@kodemo/player@stencila/components@staticcms/core@tatatap-com/sowhat-editor@live-codes/codemirror@jupyterlab/codemirror@jupyterlab/codemirror-extension@pubann/textae@5ht/vue@10yun/cv-pc-ui@alisowski/codemirror-extensions-langs@bookshop/renderer@bookshop/browser@chrnatmor/code-input@chloerei/rich-text-editor@metabase/embedding-sdk-react@backstage-community/plugin-entity-validation@backstage/plugin-scaffolder@backstage/plugin-entity-validation@marimo-team/frontend@marimo-team/islands@atrilabs/custom-props-layer@airplane/views@redocly/marketing-pages@boundaryml/baml-lezer@retronav/ixora@brightspace-ui/htmleditor@brocatel/mde@calyptia-vivo/components@bucai/json2dart
6.5.0

9 months ago

6.4.3

10 months ago

6.5.1

8 months ago

6.4.2

1 year ago

6.4.1

1 year ago

6.4.0

2 years ago

6.3.3

2 years ago

6.3.2

3 years ago

6.3.0

3 years ago

6.2.0

3 years ago

6.3.1

3 years ago

6.1.0

3 years ago

6.0.0

4 years ago

0.20.0

4 years ago

0.19.1

4 years ago

0.19.0

4 years ago

0.18.1

4 years ago

0.18.0

5 years ago

0.17.1

5 years ago

0.17.0

5 years ago