Skip to content

NeverGET/zed-razor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zed Razor

A Razor (.cshtml / .razor) extension for Zed.

Features

  • 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

Language Server

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.

Development

To develop this extension, see the Developing Extensions section of the Zed docs.

License

MIT — see LICENSE.

About

Zed editor extension for Razor (ASP.NET) - syntax highlighting + rzls language server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors