Skip to content

Commit

Permalink
feat: add more syntax highlighting for the monaco webdiff client.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfaller committed Jun 5, 2024
1 parent d48ee80 commit f9c6d21
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client.diff/src/main/resources/web/dist/monaco.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ function getLanguage() {
return "php";
else if (extension == "c" || extension == "h" || extension == "cpp")
return "cpp";
else if (extension == "ts")
return "typescript";
else if (extension == "rs")
return "rust";
else if (extension == "kt")
return "kotlin";
else if (extension == "xml")
return "xml";
else if (extension == "yaml")
return "yaml";
else if (extension == "go")
return "go";
else if (extension == "ml")
return "ocaml";
else
return undefined;
}
Expand Down

0 comments on commit f9c6d21

Please sign in to comment.