From bb4a8275edd8749dcc00a60de3dc41b74ba45329 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 15 Sep 2020 15:01:58 +0200 Subject: [PATCH] Add csharp to highlighter guessing --- .../lib/system/html/output/node/HtmlOutputNodePre.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php index 8a6f8b46ad..a52bf92757 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php @@ -173,6 +173,10 @@ class HtmlOutputNodePre extends AbstractHtmlOutputNode { return 'java'; } + if (mb_strpos($content, 'using System;') !== false) { + return 'csharp'; + } + if ( mb_strpos($content, "---") !== false && mb_strpos($content, "\n+++") !== false) { return 'diff'; -- 2.20.1