ColdFusion Tutorial

Commenting your code

Commenting code is a useful debugging technique and commenting helps you remember what you did and why. Commenting code tends to be better organized too. Comments are typed between <!--- comment ---> tags.
When you are testing code and need to eliminate specific lines, comment them out temporarily by wrapping them with <--- comment ---> tags.
Comments should never be nested and should never be mismatched (such as having a starting tag without an end tag, or vice versa).


Coldfusion uses <!--- comment ---> to delimit comments.
HTML uses <!-- comment --> two hyphens instead of three.

When someone view your source code, ColdFusion comments are not visible but HTML comments are.

Within ColdFusion code, always use ColdFusion comments and not HTML comments.


Commenting code is also a useful debugging technique. Just wrapping the code you temporarily eliminate within the comment tags. <!--- code --->

ColdFusion Tutorial test

Commenting your code

No test is available or implemented for this ColdFusion Tutorial.

User Comments: 1

 Thanks to Lori Schwartz

Thanks to Lori Schwartz for helping improve this tutorial.

Add your comments

Your Name*:
Your Email:
Site URL:
Site Name:
Comemt Title*:
Your Comment*:
Key Phrase*:
vE0
Your IP Address: 38.103.63.62
 

ScandicWeb is own by Scandic Systems LTD [UK] Company No. 5984000. All other trademarks and copyrights are the property of their respective holders.

[Home [Site Map [Privacy Statement [Site Feedback] [About ScandicWeb]


[ColdFusion [Flash [Search Engine Optimization [Graphics [Cascading Style Sheets (CSS) [JavaScript (JS) [Software]

Partner sites: ScandicSoft


Server time: 19. November 2008 Wednesday