From ef2205ca1e43d7898ece521953cd640a8be65943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kr=C3=A1sn=C3=BD?= <53856821+DanielKrasny@users.noreply.github.com> Date: Fri, 17 Nov 2023 19:49:44 +0100 Subject: [PATCH] Add syntax highlighting for C# --- frontend/src/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/main.js b/frontend/src/main.js index 06284728..aa10abc6 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -6,6 +6,7 @@ import './global.scss'; import hljs from 'highlight.js/lib/core' import cpp from 'highlight.js/lib/languages/cpp.js' import c from 'highlight.js/lib/languages/c' +import csharp from 'highlight.js/lib/languages/csharp' import java from 'highlight.js/lib/languages/java' import python from 'highlight.js/lib/languages/python' import xml from 'highlight.js/lib/languages/xml' @@ -18,6 +19,7 @@ import rust from 'highlight.js/lib/languages/rust' hljs.registerLanguage('c-like', cpp); hljs.registerLanguage('c', c); hljs.registerLanguage('cpp', cpp); +hljs.registerLanguage('csharp', csharp); hljs.registerLanguage('java', java); hljs.registerLanguage('python', python); hljs.registerLanguage('xml', xml);