HTML (C#)
Sublime Text syntax highlighting for HTML with embedded C#: WebForms/ASP.Net and Razor
Details
Installs
- Total 12K
- Win 10K
- Mac 2K
- Linux 888
Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 1 | 0 | 0 | 0 | 2 | 2 | 3 | 1 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 1 | 1 | 1 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 |
Linux | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 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+/)