Copy link to clipboard
Copied
I'm building a coldfusion site that will be using .html as the file extension instead of .cfm. I can easily set the server to parse the page correctly, however I am having a problem getting the code hinting to work in Dreamweaver.
I did figure out how to set Dreamweaver for CFM tag completion in an HTML page and it works fine, for instance if I type:
<cfa
it will hint and complete <cfabort>
However, the problem I'm having is that I can't get the function hinting to work. Normally, if I edit a CFM page and press control-space I get a list of coldfusion functions, for instance if I hold control-space then type:
arr
I'll get a menu of options and can auto-complete as:
ArrayAppend()
This is very helpful but I can't get this type of function hinting to work when I'm editing a HTML page in dreamweaver. Currently it will only do the tag completion, but NOT the function completion.
Any help would be appreciated, thanks!!
Copy link to clipboard
Copied
Jeremy,
I'm building a coldfusion site that will be using .html as the file extension instead of .cfm. I can easily set the server to parse the page correctly, however I am having a problem getting the code hinting to work in Dreamweaver.
You'll need to manually edit this file in your User (not Application) Configuration folder:
Configuration/CodeHints/CodeHints.xml
Search all of the "doctypes" attributes. Wherever you see "ColdFusion", add "HTML". It's a comma-separated list, so this:
doctypes="ColdFusion,CFC"
Should be changed to:
doctypes="ColdFusion,CFC,HTML"
Note that you can do something similar in the CodeColoring folder to get syntax coloring to work.
Regards,
Randy