Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between comments with 2 dashes vs 3 in Coldfusion

What is the difference between comments using 3 instead of 2 dashes?

Example <!--comment here--> vs <!---comment here--->
Also do people find it more readable if there's a space between the dashes and the text e.g.
<!-- comment here -->

like image 581
Celeritas Avatar asked Jun 07 '12 21:06

Celeritas


1 Answers

Two dashes signify an html comment. Content within html comments are included in the output of CF pages ie viewable in the html source.

Three dashes signify a ColdFusion comment. Anything enclosed within the comments is ignored by the ColdFusion compiler, and is not included in the html output.

like image 192
Leigh Avatar answered Oct 22 '22 09:10

Leigh