Less editor support for CodeMirror
  • TypeScript 100%
Find a file
2026-04-15 11:30:55 +02:00
src Update github links 2026-04-14 20:56:31 +02:00
test Clean up some loose ends 2023-04-29 08:29:07 +02:00
.gitignore Initial add 2023-04-26 10:50:44 +02:00
.npmignore Initial add 2023-04-26 10:50:44 +02:00
CHANGELOG.md Mark version 6.0.2 2023-12-28 18:30:13 +01:00
LICENSE Initial add 2023-04-26 10:50:44 +02:00
package.json Update github links 2026-04-14 20:56:31 +02:00
README.md Update github links 2026-04-14 20:56:31 +02:00

@codemirror/lang-less NPM version

[ WEBSITE | ISSUES | FORUM | CHANGELOG ]

This package implements Less language support for the CodeMirror code editor.

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

import {EditorView, basicSetup} from "codemirror"
import {less} from "@codemirror/lang-less"

const view = new EditorView({
  parent: document.body,
  doc: `#header { width: @width }`,
  extensions: [basicSetup, less()]
})

API Reference

less() → LanguageSupport

Language support for Less.

lessLanguage: LRLanguage

A language provider for Less style sheets.

lessCompletionSource: CompletionSource

Property, variable, @-variable, and value keyword completion source.