From f41cd808de781b0a4b02943cc116b7422692d5f5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 9 May 2020 16:48:28 +0200 Subject: [PATCH] TextEditor: Use JS syntax highlighting for .json files :^) --- Applications/TextEditor/TextEditorWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp index 14cc7034e0..3fb924f793 100644 --- a/Applications/TextEditor/TextEditorWidget.cpp +++ b/Applications/TextEditor/TextEditorWidget.cpp @@ -473,7 +473,7 @@ void TextEditorWidget::set_path(const FileSystemPath& file) if (m_extension == "cpp" || m_extension == "h") { m_cpp_highlight->activate(); - } else if (m_extension == "js") { + } else if (m_extension == "js" || m_extension == "json") { m_js_highlight->activate(); } else if (m_extension == "ini") { m_ini_highlight->activate();