在ASP.net 4.0和Visual Studio 2010中注释代码/html [英] Commenting code/html in ASP.net 4.0 and Visual Studio 2010

查看:84
本文介绍了在ASP.net 4.0和Visual Studio 2010中注释代码/html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图评论我的html代码,并使用Visual Studio 2010和asp.net 4.0.我似乎找不到正确的语法来注释我的代码,我已经设法将CSS文件做的很好,但是相同的语法在.aspx页中无法正常工作.我意识到我遗漏了一些显而易见的东西,但是经过三天没有睡眠,事情变得没有多大意义了. :-(

I am trying to comment on my html code and working with Visual Studio 2010 and asp.net 4.0. I can''t seem to locate the correct syntax to comment my code, I have managed to do the CSS file fine but the same syntax wont work in the .aspx pages. I realise I am missing something blatantly obvious but after 3 days with no sleep things don''t make much sense any more. :-(

推荐答案

在这里看看

http://htmlhelp.com/reference/wilbur/misc/comment.html [ ^ ]

所以...

Have a look here

http://htmlhelp.com/reference/wilbur/misc/comment.html[^]

So...

<!-- this is some comment -->
<p>
    Put content here.
</p>


<%-< div>我不会渲染</div> -%>
<%-- <div>I will not rendered</div> --%>


HTML注释如下:<!-评论-!> [ ^ ]和可以跨越几行.

在Javascript中可以使用其他类型(//注释 [
HTML Comments look like this: <!-- comment --!>[^] and can span several lines.

Other types can be used, within Javascript (// coment[^], but only to end of line), or C# (similar to javascript but can be /* comment */ and span many lines) or VB ('' Comment to end of line).

What types of comment is giving problems?


这篇关于在ASP.net 4.0和Visual Studio 2010中注释代码/html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆