difference between comments with 2 dashes vs 3 in

2019-04-08 11:50发布

问题:

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 -->

回答1:

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.