Language regions
Hi,
would be nice if in the editor u can define regions for
the diffrent language types.
Example:
SQL
SELECT 1
endregion
LINQ-Statments
var x = from a in {1,2}
select a;
endregion
C#-Programm
void Main()
{
var x = from a in {1,2}
select a;
}
endregion
If u enter one region it could be executedt.
If u mark more then one region (for example 3)
the output window should render 3 vertical outputs.
The latest build allows regions in ‘Program’ mode.
-
The new build will allow regions in 'C# Program' or 'VB Program' mode.
-
kcheick commented
The case of overlapping region needs to be addressed for this feature. The C# language spec does not impose any semantic meaning to the region so it's perfectly normal regionwise to write this :
#LINQ-Statments
var x = from a in {1,2}
#C#-Programm
void Main()
{
var x = from a in {1,2}
select a;
}
#endregionselect a;
#endregionof course the compiler will give an error but my point is that this construct is allowed in the semantic of region