Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 507 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 507 Bytes

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',
    });