Works only inside highlight.js/extra/cshtml-razor directory. See Language Contribution Guide
@using System.Threading
@using System.Threading.Tasks
@using System.Net.Http
@using System.Text.Json
<DxDataGrid T="@WebApiOrder" CustomData="@LoadOrderData("foo")" ShowFilterRow="true">
<Columns>
<DxDataGridComboBoxColumn T="@(WebApiCustomerLookup)" TextFieldName="Text" ValueFieldName="Value"
CustomData="@LoadCustomerData" Field="@nameof(WebApiOrder.CustomerID)" Width="300px" />
<DxDataGridDateEditColumn Field="@nameof(WebApiOrder.OrderDate)" Width="180px" />
<DxDataGridSpinEditColumn Field="@nameof(WebApiOrder.Freight)" DisplayFormat="c" Width="180px" />
<DxDataGridColumn Field="@nameof(WebApiOrder.ShipCountry)" Width="210px" />
<DxDataGridComboBoxColumn T="@(WebApiShipperLookup)" TextFieldName="Text" ValueFieldName="Value"
CustomData="@LoadShipmentData" Field="@nameof(WebApiOrder.ShipVia)" Width="220px" />
</Columns>
</DxDataGrid>
@if(true) {
var inCSharp = true;
<text>xml</text>
<div class="foo">content</div>
@while(true) {
<div class="bar">content</div>
}
}
@code {
var a = 123;
var b = false;
}
Hello @owner from html
Hello @owner["test"] from html
Hello @owner.test from html
Hello @ownerfrom html
Hello @owner
from html
sample@email.com
@@escapedat
@section Footer {
<div class="view">
footer
</div>
}