469,311 Members | 2,515 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,311 developers. It's quick & easy.

comment in ASP page

I want to know what's the convenient way to comment out a block in ASP
pages? I read a book, and I thought we can use /** */ to comment out the
VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out a
block? Any suggestions??


Jul 19 '05 #1
4 5276
http://www.aspfaq.com/2179

"Matthew Louden" <jr********@hotmail.com> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
I want to know what's the convenient way to comment out a block in ASP
pages? I read a book, and I thought we can use /** */ to comment out the
VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out a
block? Any suggestions??

Jul 19 '05 #2
Matthew Louden wrote:
I want to know what's the convenient way to comment out a block in ASP
pages? I read a book, and I thought we can use /** */ to comment out
the VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out
a block? Any suggestions??


If you're using Interdev, there is an free Add-in available from
http://www.platformdev.com/ that allows you to comment/uncomment blocks,
similar to the functionality in the VB IDE.

HTH,
Bob Barrows
Jul 19 '05 #3
Aaron Bertrand [MVP] wrote on 19 sep 2003 in
"Matthew Louden" <jr********@hotmail.com> wrote in message
I want to know what's the convenient way to comment out a block in
ASP pages? I read a book, and I thought we can use /** */ to comment
out the VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out
a block? Any suggestions??


http://www.aspfaq.com/2179


Two very usefull tips in 2179, Aaron, though they only dependably work
for correct code, and the reason for remarking out in a debug situation
often is deselecting a faulty code.

Suppose you have a spurious "end sub" or "end if" line inside that code ?

=================================

However there is another way,
which most editors [like my EditPad] support:
Select the block of code you want "remarked" including the line before
and excluding part of the last line.
Replace "selected only" all "newline"s with "newline" plus "' "
Response.write "http://www.aspfaq.com/2179"
Response.write "http://www.aspfaq.com/2179"
Response.write "http://www.aspfaq.com/2179"
Response.write "http://www.aspfaq.com/2179"

will become:

' Response.write "http://www.aspfaq.com/2179"
' Response.write "http://www.aspfaq.com/2179"
' Response.write "http://www.aspfaq.com/2179"
' Response.write "http://www.aspfaq.com/2179"

The reverse should be obvious.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #4
Gazing into my crystal ball I observed "Matthew Louden"
<jr********@hotmail.com> writing in news:u9RaRxjfDHA.2332
@TK2MSFTNGP12.phx.gbl:
I want to know what's the convenient way to comment out a block in ASP
pages? I read a book, and I thought we can use /** */ to comment out the
VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out a
block? Any suggestions??


If you're using HTML-Kit [http://www.chami.com/html-kit] you can download
a plug-in [http://www.chami.com/html-
kit/plugins/info/frsvbstyleblockcomment/] that will do this for you. Just
highlight the text, hit the button and it's all commented.

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Ray Cassick \(Home\) | last post: by
6 posts views Thread by patrick j | last post: by
3 posts views Thread by Richard | last post: by
3 posts views Thread by legsmacgee | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.