codemirror-theme-github

1.1.0 • Public • Published

codemirror-theme-github

A CodeMirror theme inspired by the GitHub editor.

Preview

Preview

Installation

npm install codemirror-theme-github --save

Usage

  1. Import the CSS file into your application:

    @import "codemirror-theme-github/theme/github";
  2. Tell CodeMirror to use it:

    const editor = CodeMirror(document.body, {
      mode: 'javascript',
      lineNumbers: true,
      theme: 'github',
    });

Package Sidebar

Install

npm i codemirror-theme-github

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

3.84 kB

Total Files

4

Last publish

Collaborators

  • cossssmin