tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/34-coldfusion-commentsCascade CMS: Discussion 2015-02-10T15:45:37Ztag:help-archives.hannonhill.com,2010-02-09:Comment/17920822010-05-27T14:56:57Z2010-05-27T14:57:00ZColdFusion Comments<div><p>Hallo,</p>
<p>I am using ColdFusion code in the HTML Source Editor in Cascade
and I am having problems with ColdFusion comments. I tried
searching anything ColdFusion related before writing this but was
unable to find anything relating to this problem.</p>
<p>An example of what I type in the HTML Source Editor is
below:<br>
<code><!--#START-CODE CF Code #END-CODE--></code><br>
<code><!--- CF Comment ---></code><br>
<code><!--#START-CODE Back to CF Code #END-CODE--></code></p>
<p>Once I "Update" the Content area and submit I go to recheck the
source of the Content area and find that the ColdFusion comment has
changed to the below:<br>
<code>#END-CODE--><!--- CF Comment
=--><!--#START-CODE</code></p>
<p>The <code>---></code> changes to <code>=--></code></p>
<p>Thank you in advance.</p></div>Alextag:help-archives.hannonhill.com,2010-02-09:Comment/17920822010-05-27T15:32:59Z2010-05-27T15:33:00ZColdFusion Comments<div><p>I suppose the "How do I..." would be:<br>
How do I add ColdFusion comments in Cascade's HTML Source
Editor?</p></div>Alextag:help-archives.hannonhill.com,2010-02-09:Comment/17920822010-05-27T15:35:11Z2010-05-27T15:35:26ZColdFusion Comments<div><p>Hi Alex,</p>
<p>After publishing, this code <em>should</em> produce a proper
ColdFusion comment:</p>
<pre>
<code><!--#START-CODE CF Code #END-CODE-->
<!--#START-CODE <! #END-CODE-->--- CF Comment ---<!--#START-CODE > #END-CODE-->
<!--#START-CODE Back to CF Code #END-CODE--></code>
</pre>
<p>Thanks!</p></div>Joeltag:help-archives.hannonhill.com,2010-02-09:Comment/17920822010-05-27T15:54:16Z2010-05-27T15:54:18ZColdFusion Comments<div><p>Thank you for the quick reply, Joel!</p>
<p>I had to make a slight modification to your suggestion but it
did work as intended.</p>
<pre>
<code><!--#START-CODE CF Code #END-CODE-->
<!--#START-CODE <!#END-CODE-->--- CF Comment ---<!--#START-CODE> #END-CODE-->
<!--#START-CODE Back to CF Code #END-CODE--></code>
</pre>
<p>Reason being the code suggested produced:<br>
<code><! --- CF CODE --- ></code><br>
But simply taking out the spaces was all that was needed.</p>
<p>Thank you again!</p></div>Alextag:help-archives.hannonhill.com,2010-02-09:Comment/17920822010-05-27T16:00:17Z2010-05-27T16:00:17ZColdFusion Comments<div><p>No problem Alex! Please also feel free to monitor the issue
below for implementation progress, as we have identified this as an
improvement item.</p>
<p><a href=
"http://support.hannonhill.com/browse/CSCD-6775">http://support.hannonhill.com/browse/CSCD-6775</a></p>
<p>Thanks!</p></div>Joeltag:help-archives.hannonhill.com,2010-02-09:Comment/17920822010-05-27T16:05:36Z2010-05-27T16:05:38ZColdFusion Comments<div><p>Joel,</p>
<p>My coworker came up with another idea that shortens the
comment.<br>
He suggested a <cfscript> around the comment and to use
C-style comments:</p>
<pre>
<code><cfscript> /* CF Comment */ </cfscript></code>
</pre>
<p>This also seems to work from what we have just tried.</p></div>Alextag:help-archives.hannonhill.com,2010-02-09:Comment/17920822010-05-27T17:56:22Z2010-05-27T17:56:22ZColdFusion Comments<div><p>Thanks for the followup Alex, I've added that workaround to
CSCD-6775 as well.</p>
<p>Thanks!</p></div>Joel