Skip to main content
Participant
November 18, 2016
Answered

Coldfusion Code Highlighting - Commented code not displaying properly in Dreamweaver 2017

  • November 18, 2016
  • 1 reply
  • 1492 views

In previous versions, including Dreamweaver 2016, if you used Coldfusion commenting it would highlight the commented code in bright yellow (so you knew it was disabled). It appears now it is not highlighting properly. I was thinking it may have something to do with the document type being set to HTML but when I looked for an option to change it to Coldfusion, there is no option to do so.

I will try to explain my issue. If I had some code that included coldfusion comments...I could comment out sections of code in my document (including lines with comments) by simply wrapping everything with a surrounding comment tag. You can still do this, but the highlighting doesn't show all the code enclosed in the outer wrapping comment tag as being disabled. This makes it very confusing when you are trying to test and debug sections that you have commented out.

See screenshot. Even though I have clearly commented out line 3-11 and it will not execute, Dreamweaver displays it like it is still valid code and will be executed. This is very misleading and hard to debug when you have several lines of code that have been commented out. How can I get Dreamweaver to properly highlight the commented / disabled code?

This topic has been closed for replies.
Correct answer BenPleysier

My apologies. My CF programming goes back more than ten years.

Please submit a bug request

1 reply

BenPleysier
Community Expert
Community Expert
November 19, 2016

You have not commented out lines 3-11 correctly because there are  end of comments on lines 5 and 8

If you do it properly, you will get

where line 14 has been commented out.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
MarkMAuthor
Participant
November 19, 2016

That is not true. Test it and you will see this is an acceptable method to comment out code in Coldfusion. Even if there are nested comment lines, you can in fact do this.  The cfset on line 6 and 9 are not executed. If you opened this file in any previous version of Dreamweaver it would have been displayed properly as well.

For further proof, check out this official page from Adobe:

Adobe ColdFusion 9 * Comments

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
November 19, 2016

My apologies. My CF programming goes back more than ten years.

Please submit a bug request

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!