Bladeren bron

Register the ipythongfm mode

Steven Silvester 8 jaren geleden
bovenliggende
commit
aeb4fc7f1a
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      src/codemirror/codemirror-ipythongfm.ts

+ 6 - 0
src/codemirror/codemirror-ipythongfm.ts

@@ -50,3 +50,9 @@ CodeMirror.defineMode('ipythongfm', (config: CodeMirror.EditorConfiguration, mod
 }, 'gfm');
 
 CodeMirror.defineMIME('text/x-ipythongfm', 'ipythongfm');
+CodeMirror.modeInfo.push({
+  ext: [],
+  mime: 'text/x-ipythongfm',
+  mode: 'ipythongfm',
+  name: 'ipythongfm'
+});