From 0019683b219357e7b97a4d7f2385fb4b57ec4935 Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Tue, 3 Sep 2019 14:57:19 +0200 Subject: [PATCH] Fix syntax highlighting error --- src/app/ide/ide.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/ide/ide.component.ts b/src/app/ide/ide.component.ts index 7b8ad82..1a6b8c4 100644 --- a/src/app/ide/ide.component.ts +++ b/src/app/ide/ide.component.ts @@ -94,6 +94,7 @@ export class IdeComponent implements OnInit { } this.code = (message.content != null) ? message.content : this.code; this.files = message.files; + this.autoDetectEditorLanguage(this.filename); } } @@ -141,7 +142,6 @@ export class IdeComponent implements OnInit { } this.filename = file; this.requestCode(); - this.autoDetectEditorLanguage(this.filename); } editorWriteHandler() {