What is the syntax for server side comment in razor view?
Here is the code that I want to comment:
/*
@helper NavItem() {
}
*/
What is the syntax for server side comment in razor view?
Here is the code that I want to comment:
/*
@helper NavItem() {
}
*/
If its in your view, couldn't you use the standard HTML <!-- ... //-->
or the .NET style <%-- .. --%>
?
Both of the following work
@{
/*
This is a comment
*/}
@//This is another comment
With the new Beta of MVC 3 out the old methods of highlighting won't work.
@{
//This is a comment
}
@{/*
This is a multi
line comment
*/}
Is the updated method @//This is a comment
and @/* */
will no longer work.