The
Beta 3 release of WebMatrix and ASP.NET Razor went out last Tuesday, and there are a couple of things in the release that are updates to something I've noted before.
Setting Editor OptionsOne update is UI in WebMatrix for setting editor options like font size. It's not entirely intuitive where to find this, tho. In WebMatrix, open a site, and then in what would normally be the
File menu, I guess, click
Options:
In the
Options tab, set your editor preferences:
These aren't site-specific settings.
Unencoding HTMLI noted
earlier that by default, Razor encodes strings so that it required special syntax to display HTML
as HTML. In Beta 2 (the previous release), you did this:
<div>
@(new HtmlString(stringWithMarkup))
</div>
For Beta 3, this was made slightly simpler. The new syntax is this:
<div>
@Html.Raw(stringWithMarkup)
</div>
More soon.