The problem exists in both .cfm & .cfc files.
If I code a script or style block in a cfm or cfc file then a couple of issues arise.
After the point where the tag block is situated then commenting (ctrl + /) does not work correctly.
Plus the color coding is off for these tags. They are colored white.
Note that commenting works fine in other file types that don't use language-cfml.
Paste the following into a .cfm file and comment out (ctrl + /) the last line.
The result I get is that it comments out using // which is inherited from the script tag above it. If you remove the script tag all is swell.
Example:
<div>Commenting here works fine</div>
<cfscript>
xxx = xxxxxxxxxxx;
</cfscript>
<script src="xyz.min.js"></script>
<div>Hello</div>
<div>Commenting here does not work</div>
The problem exists in both .cfm & .cfc files. If I code a script or style block in a cfm or cfc file then a couple of issues arise. After the point where the tag block is situated then commenting (ctrl + /) does not work correctly. Plus the color coding is off for these tags. They are colored white. Note that commenting works fine in other file types that don't use language-cfml.
Paste the following into a .cfm file and comment out (ctrl + /) the last line. The result I get is that it comments out using // which is inherited from the script tag above it. If you remove the script tag all is swell. Example:
Thanks for looking into this!