From 3ad550ce69a3db84aa3a2a94f52a2c612255d504 Mon Sep 17 00:00:00 2001 From: Johannes Batzill Date: Sat, 4 Nov 2023 00:20:11 +0000 Subject: [PATCH] [MISC] Add `.CS` Syntax Highlighting (#768) --- web/src/utils/Utils.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/web/src/utils/Utils.ts b/web/src/utils/Utils.ts index f48545cdb..94ef93d75 100644 --- a/web/src/utils/Utils.ts +++ b/web/src/utils/Utils.ts @@ -356,16 +356,17 @@ const MONACO_SUPPORTED_LANGUAGES = [ // due to their similarity. We'll still need to get native support for them at // some point. const EXTENSION_TO_LANG: Record = { - tsx: 'typescript', - jsx: 'typescript', - cc: 'cpp', - env: 'shell', - makefile: 'shell', - gitignore: 'shell', - toml: 'ini', + alpine: 'dockerfile', bazel: 'python', - workspace: 'python', - alpine: 'dockerfile' + cc: 'cpp', + cs: 'csharp', + env: 'shell', + gitignore: 'shell', + jsx: 'typescript', + makefile: 'shell', + toml: 'ini', + tsx: 'typescript', + workspace: 'python' } export const PLAIN_TEXT = 'plaintext'