static string DescriptionCodeReplacer(Match match) { string lang = match.Groups[1].Value.Trim('"', '\''); string code = match.Groups[2].Value; return("<code>" + CodeFormatter.GetFormattedCode(CodeFormatter.ParseLanguage(lang), code) + "<br /></code>"); }
static string DescriptionCodeReplacer(Match match) { string lang = match.Groups[1].Value.Trim('"', '\''); string code = match.Groups[2].Value; string result = "<code>" + CodeFormatter.GetFormattedCode(CodeFormatter.ParseLanguage(lang), code, Utils.IsMvc, new string[0]) + "<br /></code>"; return(Utils.IsOverview ? string.Format("<div class='{0}'>{1}</div>", "CodeBlock", result) : result); }