A Razor (.cshtml / .razor) extension for Zed.
- Syntax highlighting for Razor constructs (
@model,@using,@inject,@section, etc.) - HTML injection inside control flow blocks (
@if,@foreach,@section) - C# injection inside code blocks (
@{ ... }) and explicit expressions (@( ... )) - Razor comment highlighting (
@* ... *@) - Bracket matching for Razor blocks
This extension uses rzls, a standalone Razor Language Server extracted from the Roslyn toolchain. The binary is automatically downloaded on first use.
Note: rzls is a co-host language server that requires a proxy layer to forward requests between Roslyn (C#) and HTML language servers. Full IntelliSense support (go-to-definition, hover, completions) is not yet available — syntax highlighting works fully.
To develop this extension, see the Developing Extensions section of the Zed docs.
MIT — see LICENSE.