6.4.1 • Published 10 months ago

@codemirror/legacy-modes v6.4.1

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

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/coreteng-xinwolfram-language-for-codemirrorstarboard-notebook@conda-store/conda-store-ui@cosmonexus/cm@devbookhq/ui@calyptia-vivo/components@wearemanic/uijaffleublatt@atrilabs/custom-props-layer@airplane/views@backstage/plugin-entity-validation@backstage/plugin-scaffolder@backstage-community/plugin-entity-validation@biscuit-auth/web-components@brocatel/mde@bucai/json2dart@brightspace-ui/htmleditor@chloerei/rich-text-editor@10yun/cv-pc-ui@codemirror/language-data@bookshop/browser@bookshop/renderer@boundaryml/baml-lezer@dashkite/studio-componentsvirtai-ui-plusvirtai-plusvira-components@he3-kit/ui@focus-reactive/react-yaml@flok-editor/lang-tidal@elyra/canvas@geal/biscuit-web-components@goauthentik-test/web@goauthentik/web@grame/faust-web-component@gradio/code@luckyboyz/codemirror6@itgenio/edik-codemirror@exabyte-io/cove.js@dynatrace/strato-components-preview@moclojer/mockingbird-cljs@instructure/ui-source-code-editor@jinntec/jinn-codemirror@johnnycubides/catalejo-vue3-desktop-v2@kodemo/player@jupyterlab/codemirror-extension@jupyterlab/codemirror@sanity/code-input@silverbulletmd/server@silverbulletmd/web@silverbulletmd/common@retronav/ixoramirrorsharp-codemirror-6-previewonchain-cad-sdkprosemirror-codemirror-blockreact-formulenbdimepine-btreepriceless-mathematicareact-readonly-codemirror6@staticcms/core@stencila/components@tatatap-com/sowhat-editor@temporalio/ui@termsurf/hawk@termsurf/leaf@termsurf/crow@uuv/assistant@uiw/codemirror-extensions-langs@veecode-platform/plugin-scaffolder@windicss/shared-components@vrabbi/plugin-scaffolder@yoopta/code@zalastax/nolb-_codem@yongenaelf/react-aelf-visual-builderide-pluginicp-bundlehomeassistant-frontend-racelandhf-richtextmdgjx-webadmin-ui-longvbcannon-codeeditorcodemirror-lang-macaulay2codemirror-lang-markdoccodemirror-lang-http-bakcodesandbox-theme-docscodesandbox-sandpack-vue3cozeflowfancy-editor-vue3front-helixfragment-shadergatsby-philipps-foam-theme
6.4.1

10 months ago

6.4.0

1 year ago

6.3.3

2 years ago

6.3.2

2 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

3 years ago

0.19.1

3 years ago

0.19.0

4 years ago

0.18.1

4 years ago

0.18.0

4 years ago

0.17.1

4 years ago

0.17.0

4 years ago