HTML (C#)
Sublime Text syntax highlighting for HTML with embedded C#: WebForms/ASP.Net and Razor
Details
Installs
- Total 13K
- Win 10K
- Mac 2K
- Linux 904
Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 5 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Linux | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
HTML (C#)
Sublime Text syntax highlighting for .cshtml
, .aspx
, and similar files.
WebForms
The old ASP.Net style pages that necessitated creation of this package. Post-Visual Basic ASP, but pre-Razor.
Current support
Highlighting
- Embedded C# (
<script runat="server">
)- The
runat="server"
must immediately follow the tag opening.
- The
<%
expressions (including<%=
,<%#
,<%:
,<%$
,<%--
)
Functionality
Hotkey comment/uncomment server-side comments (Ctrl+/ or Cmd+/)
Snippets for
<%
-ish expressionsSnippets for some directives (Try
page
orimport
)- 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.
Future support (maybe)
- Identify more attributes of directives
- Autocomplete ASP builtins
Known issues
- Nothing yet? 🤞
Razor
The simplified, less-intrusive frontend templating syntax that supplanted WebForms.
A huge thank-you to @keith-hall for his work on this.
Current Support
Highlighting
The highlighting is not exhaustive, nor is it perfect. Expect some problems.
Functionality
- Hotkey comment/uncomment server-side comments (Ctrl+/ or Cmd+/)