Skip to content

Commit

Permalink
more file-types for convenience incl. cs, bat, ini, txt, md, cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
justparking committed Sep 5, 2018
1 parent 19ca1e6 commit adbf996
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nodel-webui-js/www/js/nodel.js
Expand Up @@ -428,8 +428,10 @@ var init = function() {
editor.setOption("mode", "shell");
break;
case 'py':
default:
editor.setOption("mode", "python");
break;
default:
editor.setOption("mode", "txt");
}
editor.getDoc().setValue(data);
editor.setOption('readOnly', false);
Expand Down Expand Up @@ -694,7 +696,7 @@ var init = function() {
};

var editor;
var allowed = ['py','xml','xsl','js','json','html','htm','css','java','groovy','sql','sh'];
var allowed = ['py','xml','xsl','js','json','html','htm','css','java','groovy','sql','sh','cs','bat','ini','txt','md','cmd'];
// function to load the code editor
var loadEditor = function() {
// ensure the editor has not been loaded already and the form exists
Expand Down

0 comments on commit adbf996

Please sign in to comment.