public highlight(line as String) as List<StyledSpan>
Highlights one Razor line combining HTML markup and @ C# expressions.
| Parameter | Description |
|---|---|
line | Source line text. |
Ordered list of StyledSpan segments whose concatenation equals line.
import klyn.code.markup
spans = RazorHighlighter().highlight("@if (user.IsActive) { <span>Active</span> }")