CF8 Syntax Dictionaries for CFEclipse
Posted At : June 7, 2007 3:23 PM
| Posted By : Mark Drew
Related Categories:
coldfusion,
cfeclipse
I have seen a lot of posts on various lists about this, and rather than making everyone hold out for the next release of CFEclipse (I am a bit behind due to having a flu since I got back from Scotch on the Rocks) I thought I would post up the dictionary file for ColdFusion 8 beta so you can install it yourselves.
Now, pay attention, I am going to detail the process here and wont be providing support for INSTALLING it. If you notice if any tags are wrong, send me the tag node from the XML and let me know the change and I can keep the master copy updated.
Here goes:
- Download and unzip the following file: cf8dictionary.zip, you should have a file called cf8.xml
- Browse to < eclipse install path >/plugins/org.cfeclipse.cfml_<version number>/dictionary/ and move cf8.xml into that directory
- open up the dictionaryconfig.xml file that is in that directory and add the following XML above the cfmx701 entry
<version key="cf8" label="Coldfusion 8">
<grammar location="cf8.xml" />
<grammar location="user.xml" />
</version> - Restart (or start) Eclipse.
You should now, if you look under CFEclipse in a projects preferences, have ColdFusion 8 added as a language.
Enjoy!


@Charlie: We have Eclipse plugins with CF8, but not the CFEclipse tag editor updates for CF8.
Damon
And all the more thanks to Mark for his efforts on this, and all of CFEclipse.
Get well soon
Is there somewhere we can collectively file missing attributes or tags? I would just hate for 10 people to keep emailing you about the same thing. FYI - I found that the attributeCollection attribute is missing from the tags. This in turn is causing errors for tags such as cfmail & cfmenu.
I think Mark was hoping we'd all just fix the xml file and send him the fix. I think that's only fair of us to do as we find them....ya know?
:)
Like Brian, I noticed that cfdiv still has source instead of bind. Also, cfgrid doesn't appear to have onchange. I'll post others here as I find them.
And it would be easier if people send me the changes. I am sure there might be changes after the final, would like to do things incrementally.... also check for the functions, there are so many new ones!!!
<tag xmlns="http://www.cfeclipse.org/version1/dictionary" name="cfloop" single="false" xmlstyle="false">
<help><![CDATA[
Different items are required based on loop type. Items listed
as required may not be depending on your loop type.
Loop forms:
[query] [condition] [index + from + to ] [index + list]
[collection + item ]
]]></help>
<parameter name="index" type="String" required="false">
<help><![CDATA[
Index value. CFML sets it to from value and
increments or decrements by step value, until it equals to
value.
]]></help>
<values/>
</parameter>
<parameter name="to" type="Numeric" required="false">
<help><![CDATA[
Beginning value of index.
]]></help>
<values/>
</parameter>
<parameter name="from" type="Numeric" required="false">
<help><![CDATA[
Ending value of index.
]]></help>
<values/>
</parameter>
<parameter name="step" type="Numeric" required="false">
<help><![CDATA[
Ending value of index.
]]></help>
<values/>
</parameter>
<parameter name="condition" type="boolean" required="false">
<help><![CDATA[
Condition that controls the loop.
]]></help>
<values/>
</parameter>
<parameter name="query" type="String" required="false">
<help><![CDATA[
Query that controls the loop.
]]></help>
<values/>
</parameter>
<parameter name="startrow" type="Numeric" required="false">
<help><![CDATA[
First row of query that is included in the loop.
]]></help>
<values/>
</parameter>
<parameter name="endrow" type="Numeric" required="false">
<help><![CDATA[
Last row of query that is included in the loop.
]]></help>
<values/>
</parameter>
<parameter name="list" type="String" required="false">
<help><![CDATA[
A list, variable, or filename; contains a list
]]></help>
<values/>
</parameter>
<parameter name="delimiters" type="String" required="false">
<help><![CDATA[
Character(s) that separates items in list
]]></help>
<values default=",">
<value option=","/>
<value option=";"/>
<value option="|"/>
<value option=":"/>
</values>
</parameter>
<parameter name="collection" type="Object" required="false">
<help><![CDATA[
The collection attribute is used with the item attribute.
often to loop over a structure
]]></help>
<values/>
</parameter>
<parameter name="item" type="String" required="false">
<help><![CDATA[
The item attribute is used with the collection attribute.
often to loop over a structure
]]></help>
<values/>
</parameter>
<parameter name="array" type="String" required="false">
<help><![CDATA[
An array, or variable; contains an array
]]></help>
<values/>
</parameter>
</tag>
Why do you - a CF community person working hard to give everyone CFEclipse - have to come up with the CF8 dictionary for the tags?
sure, others in the community can help but I wonder....
... since Adobe has the info on tap when they're preparing the documentation, AND they've got the taginsight add-on for Homesite+....
... it's the *community* that _has_ to come up with the dictionary XML for CFEclipse?
just a thought. Thanx again for your hard work, Mark.
MD
and here I was thinking (worried) you were left to do everything.
First of all: Very kind that You provide this CF 8 info - which I digest for another
editor, too - so early. How can one be informed about updates to the file "cf8.xml" ?
I want to enrich the info provided by the dictionary view with info
about my own CF libs; I have inserted the XML info into the file "user.xml".
How does the file "user.xml" work in conjunction with the dictionary view ? It is
not used alongside cf8.xml though I have declared it properly in "dictionaryconfig.xml" as described by You above.
Are there possibilities to feed CFC info into the dictionary view, too ?
Thanks for the CF8 support - Awesome!
But FYI (and anyone reading this)... there is a little bug in the cf8.xml for the cfinterface tag.
Currently it says <code>single="true"</code> but it should be <code>single="false"</code>. It's really no biggie but I thought I let you know.
Cheers,
Max
You say, "if you look under CFEclipse in a projects preferences, have ColdFusion 8 added as a language", but I've looked through each of the options under windows>preferences>cfeclipse and none refer to "language". I also used the "type filter text" feature, but find nothing referring to "language" (or "dictionary").
What am I missing? :-)
Its actually the properties of a Project. So you have to right click on a project and you will see under the CFEclipse tab, the dictionaries you can choose.
Regards
Mark Drew
Now I can do some of my own playing around and exploration...
You Rock!
If you do have an update, you may want to make a change to the content above, since a lot of searches and blog entries may bring people here for many months to come. :-)