Skip to content

logue/codemirror6-bootstrap-theme

Repository files navigation

Bootstrap Theme for CodeMirror6

jsdelivr CDN NPM Downloads Open in unpkg npm version Open in Gitpod

Bootstrap5 Theme for CodeMirror6.

image

Usage

import { basicSetup, EditorView } from 'codemirror';
import { Bootstrap } from 'codemirror6-bootstrap-theme';

new EditorView({
  doc: `色は匂へど 散りぬるを
我が世誰ぞ 常ならむ
有為の奥山 今日越えて
浅き夢見じ 酔ひもせず`,
  extensions: [basicSetup, Bootstrap],
  parent: document.getElementById('app'),
});

API Reference

@BootstrapTheme

@BootstrapDarkTheme

LICENSE

MIT

Releases

No releases published

Packages

No packages published