Add syntax highlighting to files
This commit is contained in:
parent
3764fd4b41
commit
f5de2ce3fd
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue