かみそりビューでのサーバー側コメントの構文は何ですか?
このコードにコメントしたい:
/*
@helper NavItem() {
}
*/
かみそりビューでのサーバー側コメントの構文は何ですか?
このコードにコメントしたい:
/*
@helper NavItem() {
}
*/
@* here is the code to comment *@
次の両方の作業
@{
/*
This is a comment
*/}
@//This is another comment
MVC 3の新しいベータ版では、強調表示の古い方法は機能しません。
@{
//This is a comment
}
@{/*
This is a multi
line comment
*/}
@*
This is a comment, as well
*@
更新されたメソッド@//This is a comment
であり、機能し@/* */
なくなります。
.cshtmlファイル内で、cntrl +kとcntrl+cを押すだけで、コメントがVisual Studioによって自動的に追加されることがわかります(または、コメントを解除する場合はcntrl_kとcntrl + u)。 、
@* Your Code *@
あなたの見解では、標準のHTML<!-- ... //-->
または.NETスタイルを使用できませんでした<%-- .. --%>
か?