Add syntax highlighting to files

This commit is contained in:
Alfredo Sumaran 2016-10-13 12:32:35 -05:00
parent 3764fd4b41
commit f5de2ce3fd

View file

@ -55,6 +55,7 @@
this.fileLoaded = true;
this.editor = ace.edit(content);
this.editor.$blockScrolling = Infinity; // Turn off annoying warning
this.editor.getSession().setMode(`ace/mode/${file.blob_ace_mode}`);
this.editor.on('change', () => {
this.saveDiffResolution();
});