Sublime Text syntax highlighting for .cshtml, .aspx, and similar files.
The old ASP.Net style pages that necessitated creation of this package. Post-Visual Basic ASP, but pre-Razor.
- Embedded C# (
<script runat="server">)- The
runat="server"must immediately follow the tag opening.
- The
<%expressions (including<%=,<%#,<%:,<%$,<%--)
-
Hotkey comment/uncomment server-side comments (Ctrl+/ or Cmd+/)
-
Snippets for
<%-ish expressions -
Snippets for some directives (Try
pageorimport)- Default attributes are subject to change.
-
Snippets may require Ctrl+space, depending on your environment.
-
Some autocomplete within directives.
-
Basic "Open
CodeBehind" shortcut for frontend pages.
- Identify more attributes of directives
- Autocomplete ASP builtins
- Nothing yet? 🤞
The simplified, less-intrusive frontend templating syntax that supplanted WebForms.
A huge thank-you to @keith-hall for his work on this.
The highlighting is not exhaustive, nor is it perfect. Expect some problems.
- Hotkey comment/uncomment server-side comments (Ctrl+/ or Cmd+/)