A CodeMirror theme inspired by the GitHub editor.
npm install codemirror-theme-github --save
-
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', });