1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:57:44 +00:00

HackStudio: Add syntax highlighting for HTML, Shell, and SQL files

.html files were recognised before -- the name was shown on
the statusbar, but it didn't actually enable the syntax highlighting.

This also sneaks a highlighting for JSON using JS highlighting.
It isn't technically correct, but so does TextEditor. :^)
This commit is contained in:
Karol Kosek 2021-07-29 21:06:52 +02:00 committed by Gunnar Beutner
parent 68088b629b
commit bf322e072f
4 changed files with 22 additions and 6 deletions

View file

@ -13,9 +13,11 @@ enum class Language {
Unknown,
Cpp,
JavaScript,
HTML,
GML,
Ini,
Shell,
SQL,
};
Language language_from_file_extension(const String&);