diff --git a/Bonobo.Git.Server/FileDisplayHandler.cs b/Bonobo.Git.Server/FileDisplayHandler.cs index b70946c5a..3587a66f8 100644 --- a/Bonobo.Git.Server/FileDisplayHandler.cs +++ b/Bonobo.Git.Server/FileDisplayHandler.cs @@ -22,7 +22,7 @@ public static bool IsImage(string fileName) public static string GetBrush(string fileName) { - if (String.IsNullOrWhiteSpace(fileName)) + if (String.IsNullOrWhiteSpace(fileName)) { throw new ArgumentNullException("fileName"); } @@ -33,6 +33,9 @@ public static string GetBrush(string fileName) case ".vb": return "vb"; + case ".vbs": + return "vbs"; + case ".cs": return "csharp"; @@ -42,6 +45,10 @@ public static string GetBrush(string fileName) case ".sh": return "bash"; + case ".bat": + case ".cmd": + return "dos"; + case ".html": case ".htm": case ".xhtml": @@ -53,7 +60,8 @@ public static string GetBrush(string fileName) case ".xaml": case ".csproj": case ".config": - return "html"; + case ".wsf": + return "xml"; case ".cf": return "cf";