Closed Thread Icon

Topic awaiting preservation: multiline commenting (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12590" title="Pages that link to Topic awaiting preservation: multiline commenting (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: multiline commenting <span class="small">(Page 1 of 1)</span>\

 
slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 01-24-2003 04:55

everybody knows that you comment lines in asp code by putting a single quote at the beginning of the line.

' single line comment

how do you comment out multiple lines like in javascript i would do something like this

/*
something
something else
some more
*/

so the question is: how do you comment out multiple lines in ASP?

Perfect Thunder
Paranoid (IV) Inmate

From: Milwaukee
Insane since: Oct 2001

posted posted 01-24-2003 05:14

Sadly enough, you're stuck with putting an apostrophe before each line of your comment.

code:
' This comment occupies
' multiple lines. As you
' can see, there's an
' apostrophe before
' each line. Not the
' greatest solution,
' you say? Personally,
' I like having a consistent
' "left border" of my comment
' blocks.
'
' In PHP, for instance,
' I always use // -style
' comments intead of
' /*, even for large
' blocks.

slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 01-24-2003 15:07

thanx a lot

Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 01-26-2003 23:23

You can also do it by placing Rem at the beginning of each line, but using the ' is still the fastest way

I wish there was a easier way, cause some of my pages have like 8000 lines and dotting each one is a real pain, which is why i'm slowly converting all my work over to PHP

« BackwardsOnwards »

Show Forum Drop Down Menu