@model CodeContainer
@* <div class="row prev" style="border-bottom: 1px solid #e1e4e8;border-bottom-left-radius: 0;border-bottom-right-radius: 0"> *@
@* <div class="header"> *@
@* <a href="@Model.PrevUrl"> *@
@* <span style="min-width: 16px">..</span> *@
@* </a> *@
@* </div> *@
@* </div> *@
@* @if (Model.Language == "markdown") *@
@* { *@
@* var htmlResult = Markdown.ToHtml(Model.CodeSource); *@
@* <div class="blog-main"> *@
@* <div class="article-detail shadow"> *@
@* <div class="article-detail-content"> *@
@* @Html.Raw(htmlResult) *@
@* </div> *@
@* </div> *@
@* </div> *@
@* } *@
@if (Model == null)
{
<pre><code>没有内容</code></pre>
}
else
{
@if (string.IsNullOrEmpty(Model.Language))
{
<pre><code>@Model.CodeContent</code></pre>
}
else if (string.Equals(Model.Language, "markdown",StringComparison.CurrentCultureIgnoreCase))
{
<partial name="_ReadmePartial" model="Model.CodeContent"/>
}
else
{
<pre id="codeView" data-start="1" class="line-numbers linkable-line-numbers"><code class="language-@Model.Language">@Model.CodeContent</code></pre>
}
}