Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.42 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.42 KB

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