39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
// this is a single-line comment
|
|
// NOTE ### FIXME TODO
|
|
|
|
<beginfold id='1'>/*</beginfold id='1'> this is a
|
|
multi-line comment
|
|
<endfold id='1'>*/</endfold id='1'>
|
|
|
|
<beginfold id='1'>/*</beginfold id='1'> this is another
|
|
* multiline comment
|
|
* NOTE ### FIXME TODO
|
|
<endfold id='1'>*/</endfold id='1'>
|
|
|
|
<beginfold id='2'>/** </beginfold id='2'>this is another
|
|
* multiline comment
|
|
* NOTE ### FIXME TODO
|
|
<endfold id='2'>*/</endfold id='2'>
|
|
|
|
// simple assignment
|
|
var i = 5;
|
|
|
|
var j = // assignment missing, still should be nice highlighting
|
|
var k // assignment missing, still should be nice highlighting
|
|
|
|
// test a string
|
|
var s = "Hello World!";
|
|
|
|
// arr is an array
|
|
var arr = new[] <beginfold id='3'>{</beginfold id='3'> 0, 1, 2, 3, 4 <endfold id='3'>}</endfold id='3'>;
|
|
|
|
// expr is compiled as IEnumerable<Customer>
|
|
// or perhaps IQueryable<Customer>
|
|
var expr =
|
|
from c in customers
|
|
where c.City == "London"
|
|
select c;
|
|
|
|
// compiled anonymous type
|
|
var anon = new <beginfold id='3'>{</beginfold id='3'> Country = "Germany", Inhabitants = 80000000 <endfold id='3'>}</endfold id='3'>;
|