From b6ff1237e5059060e6e5a3a117e8d4f397cd23b6 Mon Sep 17 00:00:00 2001 From: bashirs Date: Mon, 4 Mar 2013 14:11:50 -0800 Subject: [PATCH] Included htm as an alias for html --- ColorCode/Compilation/Languages/Html.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ColorCode/Compilation/Languages/Html.cs b/ColorCode/Compilation/Languages/Html.cs index ec6c8dc..43d3a9a 100644 --- a/ColorCode/Compilation/Languages/Html.cs +++ b/ColorCode/Compilation/Languages/Html.cs @@ -125,7 +125,14 @@ namespace ColorCode.Compilation.Languages public bool HasAlias(string lang) { - return false; + switch (lang.ToLower()) + { + case "htm": + return true; + + default: + return false; + } } public override string ToString()