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:
parent
3422019e35
commit
f41cd808de
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
Add a link
Reference in a new issue