difference between comments with 2 dashes vs 3 in Coldfusion

人走茶凉 提交于 2019-12-06 04:02:42

问题


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.



来源:https://stackoverflow.com/questions/10940195/difference-between-comments-with-2-dashes-vs-3-in-coldfusion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!