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:
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.
It looks like the cfscript
tag is using the XML style. Use the following steps to unset it:
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With