codemirror-theme-github
A CodeMirror theme inspired by the GitHub editor.
Preview
Installation
npm install codemirror-theme-github --save
Usage
-
Import the CSS file into your application:
@import "codemirror-theme-github/theme/github";
-
Tell CodeMirror to use it:
const editor = CodeMirror(document.body, { mode: 'javascript', lineNumbers: true, theme: 'github', });