0

Is there a way to get Dreamweaver CS4 to use syntax highlighting when writing full script CFCs? If the document type is .cfc and they syntax is fullscript, there is no syntax highlighting; the code will be in black text...

For example, the following block of code will appear without syntax highlighting:

component extends="whatever" output="false" {
  public void foo() {
  }
}

While the tag equivalent would be highlighted normally:

<cfcomponent extends="whatever" output="false">
  <cffunction name="foo" returnType="void" access="public">
  </cffunction>
</cfcomponent>

2 Answers 2

1

If you surround the code with <cfscript></cfscript> you'll get the highlights. I know it sucks but it is the only way for now. Wish Adobe would do something about it because I love Dreamweaver and I really dislike ColdFusion Builder.

1
  • to be honest I felt the same way in the beginning, but now I am loving ColdFusion builder for so many reasons, I doubt I will go back to Dreamweaver. I think the code highlighting was also the biggest deal breaker for me.
    – Mohamad
    Feb 3, 2011 at 4:05
0

When using CFC files, use this:

/* 
 <cfscript>
*/

This will trick Dreamweaver to show cfscript highlighting, without having to remove the cfscript tag on save.

I hope this helps some people who still have the love for Dreamweaver :)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .