From 964e1973fbb6b211ce200f408af469eaace7f132 Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Mon, 3 Mar 2025 09:39:16 +0000 Subject: [PATCH] fix: added a bunch more common languages to diff view including: java, c, cpp, csharp, go ruby, rust --- app/components/workbench/DiffView.tsx | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/app/components/workbench/DiffView.tsx b/app/components/workbench/DiffView.tsx index 73a5a339..146076c5 100644 --- a/app/components/workbench/DiffView.tsx +++ b/app/components/workbench/DiffView.tsx @@ -556,7 +556,25 @@ const InlineDiffComparison = memo(({ beforeCode, afterCode, filename, language } useEffect(() => { getHighlighter({ themes: ['github-dark', 'github-light'], - langs: ['typescript', 'javascript', 'json', 'html', 'css', 'jsx', 'tsx', 'python', 'php'], + langs: [ + 'typescript', + 'javascript', + 'json', + 'html', + 'css', + 'jsx', + 'tsx', + 'python', + 'php', + 'java', + 'c', + 'cpp', + 'csharp', + 'go', + 'ruby', + 'rust', + 'plaintext', + ], }).then(setHighlighter); }, []);