1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

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

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