Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@codemirror/lang-vue

codemirror1.1mMIT0.1.3TypeScript support: included

Vue template support for the CodeMirror code editor

editor, code

readme

@codemirror/lang-vue NPM version

[ WEBSITE | ISSUES | FORUM | CHANGELOG ]

This package implements Vue template 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.

API Reference

vue(config⁠?: Object = {}) → LanguageSupport

Vue template support.

config
base⁠?: LanguageSupport

Provide an HTML language configuration to use as a base. Must be the result of calling html() from @codemirror/lang-html, not just any LanguageSupport object.

vueLanguage: LRLanguage

A language provider for Vue templates.

changelog

0.1.3 (2023-12-28)

Bug fixes

Tag interpolations and attributes as isolating for the purpose of bidirectional text.

0.1.2 (2023-06-13)

Bug fixes

HTML support extensions now work in Vue mode.

New features

vue now allows a base HTML configuration to be passed in.

0.1.1 (2023-01-16)

Bug fixes

Support self-closing tags in templates.

0.1.0 (2023-01-13)

Breaking changes

First numbered release.