TextEditor: Use JS syntax highlighting for .json files :^)
This commit is contained in:
parent
3422019e35
commit
f41cd808de
Notes:
sideshowbarker
2024-07-19 06:48:28 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f41cd808de7
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue