Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ColdFusion Builder 3 - How to not parse as XML?

I just upgraded from ColdFusion Builder 2 to ColdFusion Builder 3. Some of my code now generates the dreaded red x, suggesting that there is an error. I know there is not an error and I would like to adjust how the editor looks at the code. It seems to be attempting to parse some cfscript as xml.

Here's the red x's that show up seemingly randomly:

enter image description here

Here's the error that I see when I hover over the red x:

syntax error
illegally formed XML syntax
syntax error
missing ; before statement
illegally formed XML syntax

I've looked at every relevant preference and can't find a relevant option. I've looked all over the web trying to figure out what might be causing this. What might be causing this? Is this being parsed as XML by the editor?

UPDATE - 9/11/2014

The little red error x's seem to show up randomly, even on blank lines of code.

More errors

like image 293
Evik James Avatar asked Oct 21 '22 03:10

Evik James


2 Answers

It looks like the cfscript tag is using the XML style. Use the following steps to unset it:

  • From the Window menu, select Preferences.
  • In the tree-view, select General > Content Types.
  • Expand XML in the top menu
  • Remove .cfm from the menu below.

XML Content Types File Associations

In addition, make sure the doctype is not XHTML and there are no xmlns attributes.

References

  • Content Types Preferences page

  • Create Custom CFML Dictionaries

  • cfscript XHTML example

  • How can I escape HTML character entities when using ColdFusion function XMLFormat()?

  • Coldfusion Builder 3.0 Known Issues

  • Coldfusion Builder 3.0: Quick Fix

like image 45
Paul Sweatte Avatar answered Oct 23 '22 23:10

Paul Sweatte


The random syntax error, with descriptions on hover same as OP, is a problem I've had and reported (as an add-on to an Adobe bug already reported, with more specifics). I'm running CFBuilder 3.0.0, Build 292922 according to the "About..." but opening the installation details shows 3.0.3.292922. I've added the MXUnit plugin, other than that, original default installation. I normally work in the Coldfusion or ColdFusion Debug perspective. When I tried editing the Preferences\General\Content Types, **I was surprised to find that I only had these: Java Class File

Text
Word Document**

Highlighting "Text" showed all the files I would normally associate with web development:

*.cfc (locked)
*.cfm (locked)
*.cfml (locked)
*.css (locked)
*.htm (locked)
*.html (locked)
etc.

like image 133
Jay Dee Avatar answered Oct 24 '22 00:10

Jay Dee