From 7d7d841505936715ff0650b319887b986c4ff9e6 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sat, 6 Sep 2014 22:20:10 +0800 Subject: [PATCH] json mode --- file/files.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/file/files.go b/file/files.go index fe72e78..1c6a826 100644 --- a/file/files.go +++ b/file/files.go @@ -268,8 +268,10 @@ func getEditorMode(filenameExtension string) string { return "htmlmixed" case ".md": return "markdown" - case ".js", ".json": + case ".js": return "javascript" + case ".json": + return "application/json" case ".css": return "css" case ".xml":