Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cf comments

Status
Not open for further replies.

osbel

Programmer
Sep 17, 2001
26
0
0
US
Does anyone know why you can't comment out cf statements? for example if I have

<!-- <cfquery ......>....</cfquery> -->
or <!-- <cfif...... -->

cf will run try to run the code in teh comments (<!-- -->). How can I fix this? It would make debugging alot easier. Thanks.
Leslie
 
Commenting out CF code works if you use CF Comments. The comments shown above are HTML comment, not CF Comments. CF comments use 3 dashes whereas HTML use 2.

[COLOR=666666]<!-- -->[/color] HTML COMMENT 2 dashes
[COLOR=666666]<!--- --->[/color] CF COMMENT: 3 dashes - tleish
 
Thanks. I would have never figured that out.
Lelsie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top