Skip to content

Commit a1d3f44

Browse files
committed
Add syntax highlighting for js
1 parent a61d4b2 commit a1d3f44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wasm/notebook/src/editor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ CodeMirror.defineMode('notebook', function (config, _parserConfig) {
55
const python = CodeMirror.getMode(config, 'python');
66
const markdown = CodeMirror.getMode(config, 'markdown');
77
const latex = CodeMirror.getMode(config, 'text/x-latex');
8+
const javascript = CodeMirror.getMode(config, 'javascript');
89
const modeMap = {
910
py: python,
1011
md: markdown,
1112
math: latex,
13+
js: javascript,
1214
};
1315
return {
1416
startState() {

0 commit comments

Comments
 (0)