TextEditor: Use JS syntax highlighting for .json files :^)

This commit is contained in:
Andreas Kling 2020-05-09 16:48:28 +02:00
parent 3422019e35
commit f41cd808de
Notes: sideshowbarker 2024-07-19 06:48:28 +09:00

View file

@ -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();