6.5.1 • Published 7 months ago

@codemirror/legacy-modes v6.5.1

Weekly downloads
337
License
MIT
Repository
github
Last release
7 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-longvb@goauthentik-test/web@goauthentik/web@gradio/code@dynatrace/strato-components-preview@grame/faust-web-component@hashicorp/design-system-components@eccenca/gui-elementsublattvirtai-ui-plusvirtai-plusvira-componentsmirrorsharp-codemirror-6-previewonchain-cad-sdkprosemirror-codemirror-blockreact-formulenbdimepine-btreepriceless-mathematicareact-readonly-codemirror6@dracoui/ember@geal/biscuit-web-components@exabyte-io/cove.js@exomatique/editor@exomatique_editor/latex@he3-kit/ui@instructure/ui-source-code-editor@flok-editor/lang-tidal@focus-reactive/react-yaml@elyra/canvasfragment-shadergatsby-philipps-foam-themefront-helix@staticcms/core@stencila/components@tatatap-com/sowhat-editorfancy-editor-vue3@10yun/cv-pc-ui@5ht/vue@pubann/textae@bookshop/browser@bookshop/renderer@calyptia-vivo/components@brightspace-ui/htmleditor@brocatel/mde@metabase/embedding-sdk-react@bucai/json2dart@chloerei/rich-text-editor@chrnatmor/code-input@backstage/plugin-entity-validation@backstage-community/plugin-entity-validation@backstage/plugin-scaffolder@boundaryml/baml-lezer@minhnbnt/online-judge-uicannon-codeeditorcodesandbox-theme-docscodesandbox-sandpack-vue3codemirror-lang-http-bakcodemirror-lang-macaulay2codemirror-lang-markdoccozeflow@atrilabs/custom-props-layer@airplane/views@alisowski/codemirror-extensions-langs@jupyterlab/codemirror-extension@jupyterlab/codemirror@sanity/code-input@moclojer/mockingbird-cljs@kodemo/player@dashkite/studio-components@marimo-team/islands@marimo-team/frontend@luckyboyz/codemirror6@silverbulletmd/common
6.5.0

8 months ago

6.4.3

9 months ago

6.5.1

7 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

3 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