ColdFusion Comments

Alex's Avatar

Alex

27 May, 2010 02:56 PM

Hallo,

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.

An example of what I type in the HTML Source Editor is below:
<!--#START-CODE CF Code #END-CODE-->
<!--- CF Comment --->
<!--#START-CODE Back to CF Code #END-CODE-->

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:
#END-CODE--><!--- CF Comment =--><!--#START-CODE

The ---> changes to =-->

Thank you in advance.

  1. 1 Posted by Alex on 27 May, 2010 03:32 PM

    Alex's Avatar

    I suppose the "How do I..." would be:
    How do I add ColdFusion comments in Cascade's HTML Source Editor?

  2. 2 Posted by Joel on 27 May, 2010 03:35 PM

    Joel's Avatar

    Hi Alex,

    After publishing, this code should produce a proper ColdFusion comment:

    <!--#START-CODE CF Code #END-CODE-->
    <!--#START-CODE <! #END-CODE-->--- CF Comment ---<!--#START-CODE > #END-CODE-->
    <!--#START-CODE Back to CF Code #END-CODE-->
    

    Thanks!

  3. 3 Posted by Alex on 27 May, 2010 03:54 PM

    Alex's Avatar

    Thank you for the quick reply, Joel!

    I had to make a slight modification to your suggestion but it did work as intended.

    <!--#START-CODE CF Code #END-CODE-->
    <!--#START-CODE <!#END-CODE-->--- CF Comment ---<!--#START-CODE> #END-CODE-->
    <!--#START-CODE Back to CF Code #END-CODE-->
    

    Reason being the code suggested produced:
    <! --- CF CODE --- >
    But simply taking out the spaces was all that was needed.

    Thank you again!

  4. 4 Posted by Joel on 27 May, 2010 04:00 PM

    Joel's Avatar

    No problem Alex! Please also feel free to monitor the issue below for implementation progress, as we have identified this as an improvement item.

    http://support.hannonhill.com/browse/CSCD-6775

    Thanks!

  5. Joel closed this discussion on 27 May, 2010 04:00 PM.

  6. Alex re-opened this discussion on 27 May, 2010 04:05 PM

  7. 5 Posted by Alex on 27 May, 2010 04:05 PM

    Alex's Avatar

    Joel,

    My coworker came up with another idea that shortens the comment.
    He suggested a <cfscript> around the comment and to use C-style comments:

    <cfscript> /* CF Comment */ </cfscript>
    

    This also seems to work from what we have just tried.

  8. 6 Posted by Joel on 27 May, 2010 05:56 PM

    Joel's Avatar

    Thanks for the followup Alex, I've added that workaround to CSCD-6775 as well.

    Thanks!

  9. Joel closed this discussion on 27 May, 2010 05:56 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac