difference between comments with 2 dashes vs 3 in

2019-04-08 11:56发布

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条回答
干净又极端
2楼-- · 2019-04-08 12:46

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.

查看更多
登录 后发表回答