Skip to content

Commit 592e6b5

Browse files
author
Michael Lyons
committed
Bring ReadMe up-to-date with changes
1 parent 8ca4ca1 commit 592e6b5

File tree

1 file changed

+29
-23
lines changed

1 file changed

+29
-23
lines changed

README.md

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22

33
[Sublime Text][st] [syntax highlighting][ss-docs] for `.cshtml`, `.aspx`, and similar files.
44

5-
## Current support
5+
## WebForms
66

7-
### Highlighting
7+
The old ASP.Net style pages that necessitated creation of this package. Post-Visual Basic ASP, but pre-Razor.
8+
9+
### Current support
10+
11+
#### Highlighting
812

913
- Embedded C# (`<script runat="server">`)
1014
+ The `runat="server"` must immediately follow the tag opening.
1115
- `<%` expressions (including `<%=`, `<%#`, `<%:`, `<%$`, `<%--`)
1216

13-
### Functionality
17+
#### Functionality
1418

1519
- Hotkey comment/uncomment server-side comments (<kbd>Ctrl</kbd>+<kbd>/</kbd> or <kbd>Cmd</kbd>+<kbd>/</kbd>)
1620

@@ -19,37 +23,39 @@
1923
+ Default attributes are subject to change.
2024
- Snippets may require <kbd>Ctrl</kbd>+<kbd>space</kbd>, depending on your environment.
2125
- Some autocomplete within directives.
26+
- Basic "Open `CodeBehind`" shortcut for frontend pages.
2227

23-
### Razor syntax
24-
25-
A huge thank-you to [@keith-hall][keith] for this!
26-
27-
## Future support (maybe)
28+
### Future support (maybe)
2829

2930
- Identify more attributes of directives
3031
- Autocomplete ASP builtins
3132

32-
## Known issues:
33+
### Known issues
3334

34-
- "Goto Anything" support is poor.
35-
36-
- No recognition of excluded scopes to return to HTML. In the snippet below, the C# scope ends immediately after `"bar`.
35+
- Code blocks in CSS and JavaScript attributes that contain the opening attribute delimiter are prematurely terminated.
3736

3837
```
39-
<%
40-
var foo = "bar%>";
41-
%>
38+
<p style="color: <%= "red" %>" ></p>
39+
<p onclick="<%= "alert('hi!')" %>"></p>
4240
```
4341
44-
- Javascript does not always recognize that `Response.Write` output is coming. The `)` is marked as invalid and the conditional scopes are never terminated.
4542
46-
```
47-
<script type="text/javascript">
48-
if (true && <%= list.Any() %>) {
49-
doStuff();
50-
}
51-
</script>
52-
```
43+
## Razor
44+
45+
The simplified, less-intrusive frontend templating syntax that supplanted WebForms.
46+
47+
A huge thank-you to [@keith-hall][keith] for his work on this.
48+
49+
### Current Support
50+
51+
#### Highlighting
52+
53+
The highlighting is not exhaustive, nor is it perfect. Expect some problems.
54+
55+
#### Functionality
56+
57+
- Hotkey comment/uncomment server-side comments (<kbd>Ctrl</kbd>+<kbd>/</kbd> or <kbd>Cmd</kbd>+<kbd>/</kbd>)
58+
5359
5460
[pkg]: https://packagecontrol.io/packages/HTML%20(C%23)
5561
[st]: https://www.sublimetext.com/

0 commit comments

Comments
 (0)