diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-09 16:48:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-09 16:48:28 +0200 |
commit | f41cd808de781b0a4b02943cc116b7422692d5f5 (patch) | |
tree | 28131759b365ccb29c3fe46814c0a140d8367d06 /Applications | |
parent | 3422019e35a7d810566cbafc0d0d9607aac2e116 (diff) | |
download | serenity-f41cd808de781b0a4b02943cc116b7422692d5f5.zip |
TextEditor: Use JS syntax highlighting for .json files :^)
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/TextEditor/TextEditorWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |