mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +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:
parent
68088b629b
commit
bf322e072f
Notes:
sideshowbarker
2024-07-19 17:21:44 +09:00
Author: https://github.com/krkk
Commit: bf322e072f
Pull-request: https://github.com/SerenityOS/serenity/pull/9092
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/luk1337
4 changed files with 22 additions and 6 deletions
|
@ -13,9 +13,11 @@ enum class Language {
|
|||
Unknown,
|
||||
Cpp,
|
||||
JavaScript,
|
||||
HTML,
|
||||
GML,
|
||||
Ini,
|
||||
Shell,
|
||||
SQL,
|
||||
};
|
||||
|
||||
Language language_from_file_extension(const String&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue