-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDebugging.tt
77 lines (51 loc) · 1.21 KB
/
Debugging.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<#@ template language="C#" debug="true" #>
This is a text block.
Code is not highlighted.
highlighted = false;
Delimeters like \<# can be escaped.
<#
// This is a standard control block.
// Code is highlighted.
// Delimeters can be escaped.
const string delimeter = "\#>";
// Blocks can be interrupted
if (true)
{
#>
This is an interrupting text block.
Code is not highlighted.
highlighted = false;
<#
// This is a continuing standard control block.
// Code is highlighted.
}
#>
<#=
@"This is an expression control block.
Code is highlighted.
Delimeters like \#> can be escaped."
#>
<#+
// This is a class feature control block
// Code is highlighted.
// Delimeters can be escaped.
const string Delimeter = "\#>";
// Blocks can be interrupted
void Method()
{
#>
This is an interrupting text block.
Code is not highlighted.
highlighted = false;
<#=
@"This is an double-interrupting expression control block.
Code is highlighted."
#>
This is a continuing text block.
Code is not highlighted.
highlighted = false;
<#+
// This is a continue class feature control block.
// Code is highlighted.
}
#>