|
@model sBlog.Net.Models.SyntaxHighlighterViewModel
@{
ViewBag.Title = string.Format("Syntax Highlighter Options || {0}", Model.Title);
}
@Html.Partial("UpdateStatus", Model.UpdateStatus)
@if (!Model.IsEnabled)
{
if (Model.CanEnable)
{
<div class="cpHeader">
<b>Syntax Highlighter Options</b>
</div>
<div class="cpContent">
@using (Html.BeginForm("EnableSyntaxHighlighter", "Admin"))
{
@Html.CheckBox("enableSyntaxHighlighter", new {@id = "enableSyntaxHighlighter"})
<label for="enableSyntaxHighlighter">Enable Syntax Highlighter</label>
<input type="submit" value="Enable"/>
}
</div>
}
else
{
<div class="cpHeader">
<b>Syntax Highlighter Options</b>
</div>
<div class="cpContent">
Please contact the <b>administrator</b> to enable syntax highlighter for this blog.
</div>
}
}
@if (Model.IsEnabled)
{
<div class="cpHeader">
<b>Syntax Highlighter Options</b>
</div>
<div class="cpContent">
@using (Html.BeginForm())
{
<b>Code highlighter theme:</b>
<br />
<br />
@Html.DropDownListFor(model => model.Theme, Model.AvailableThemes, Model.EditThemeAttributes)
<b>(admin only)</b>
<br />
<br />
<b>Brushes:</b>
<br />
<br />
<div style="width: 200px;">
@Html.Partial("CheckBoxList", Model.Brushes)
</div>
<br />
<br />
<input type="submit" value="Update Preferences" class="submitBtn" />
@: @Html.Action("SyntaxHighlighterHelp", "Admin")
}
</div>
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Just another passionate software developer!
Some of the contributions to the open source world - a blog engine written in MVC 4 - sBlog.Net. Check it out
here. For the codeproject article regarding sBlog.Net click
here!
(Figuring out this section!)