Hey all, I've been searching for a way to enable code hints when editing my mach-ii.xml config files within Eclipse. I know I came across a plugin for Dreamweaver for this, but cannot seem to find one for eclipse. Can anyone point me in the direction of one if it exists?
You can load the DTD into it and it will use that to help you hint your XML.
ap
On Jan 29, 2007, at 3:52 PM, Richard Kroll wrote:
> Hey all, > I've been searching for a way to enable code hints when editing my > mach-ii.xml config files within Eclipse. I know I came across a > plugin > for Dreamweaver for this, but cannot seem to find one for eclipse. > Can > anyone point me in the direction of one if it exists?
> Thanks,
> Rich Kroll
________________________________________ Andrew Powell Senior Consultant e-mail: andrew.pow...@universalmind.com
> You can load the DTD into it and it will use that to help you hint > your XML.
> ap
> On Jan 29, 2007, at 3:52 PM, Richard Kroll wrote:
> > Hey all, > > I've been searching for a way to enable code hints when editing my > > mach-ii.xml config files within Eclipse. I know I came across a > > plugin > > for Dreamweaver for this, but cannot seem to find one for eclipse. > > Can > > anyone point me in the direction of one if it exists?
> On 1/29/07, Andrew Powell <andrew.pow...@universalmind.com> wrote: > > Take a look at Oxygen XML. www.oxygenxml.com
> > You can load the DTD into it and it will use that to help you hint > > your XML.
> > ap
> > On Jan 29, 2007, at 3:52 PM, Richard Kroll wrote:
> > > Hey all, > > > I've been searching for a way to enable code hints when editing my > > > mach-ii.xml config files within Eclipse. I know I came across a > > > plugin > > > for Dreamweaver for this, but cannot seem to find one for eclipse. > > > Can > > > anyone point me in the direction of one if it exists?
Ditto on XML Buddy (the free version is sufficient for me). Note that you do have to have the file extension be xml. Something like machii.xml.cfm makes CFEclipse be the perspective and not XML Buddy.
Matt
On 1/29/07, Kurt Wiersma <kwier...@gmail.com> wrote:
> On 1/29/07, Andrew Powell <andrew.pow...@universalmind.com> wrote: > > Take a look at Oxygen XML. www.oxygenxml.com
> > You can load the DTD into it and it will use that to help you hint > > your XML.
> > ap
> > On Jan 29, 2007, at 3:52 PM, Richard Kroll wrote:
> > > Hey all, > > > I've been searching for a way to enable code hints when editing my > > > mach-ii.xml config files within Eclipse. I know I came across a > > > plugin > > > for Dreamweaver for this, but cannot seem to find one for eclipse. > > > Can > > > anyone point me in the direction of one if it exists?
Thanks to everyone for their suggestions. I am starting with the WTP from eclipse (I was looking for integrated JS / CSS anyhow!).
I noticed that in a few sample apps that people are using machii.xml.cfm instead of the (what I thought was) standard machii.xml. What is the benefit of adding a .cfm extension to this? My first thought was that you could include CFML into the template, but after thinking about it, it seems to me that this file is being parsed as an XML doc and would not work in this fashion. What am I missing?
The point of doing that is to secure the configuration file. At the top of the xml.cfm file there is a line of CFML commented out using an HTML comment. This is not the same as a CFM comment and the inner CFM command runs.
If the xml.cfm file is hit from the webserver, no content is rendered to the browser thusly protecting your configuration file from prying eyes in the browser.
However, internally, the same xml.cfm file is passed off to the MachII configuration parser and the HTML comment is respected. What is left is the MachII xml configuration and this is happily processed by the framework.
HTH
Dan Wilson
On 1/30/07, Richard Kroll <rich...@sitemanageware.com> wrote:
> Thanks to everyone for their suggestions. I am starting with the WTP > from eclipse (I was looking for integrated JS / CSS anyhow!).
> I noticed that in a few sample apps that people are using machii.xml.cfm > instead of the (what I thought was) standard machii.xml. What is the > benefit of adding a .cfm extension to this? My first thought was that > you could include CFML into the template, but after thinking about it, > it seems to me that this file is being parsed as an XML doc and would > not work in this fashion. What am I missing?
> Rich Kroll
-- "Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew."
Actually there is a way around this if you are using Eclipse 3.2. In the Eclipse preferences under editor > file associations you add XMLBuddy to list of valid editors for .cfm files. Then right click on your mach-ii.xml.cfm file and choose open with > XMLBuddy and you should be set. Eclipse even remembers that you want that file to always open with XMLBuddy instead of the standard .cfm file editor. Gotta love Eclipse! :)
--Kurt
On 1/30/07, Matt Williams <mgw...@gmail.com> wrote:
> Ditto on XML Buddy (the free version is sufficient for me). Note that > you do have to have the file extension be xml. Something like > machii.xml.cfm makes CFEclipse be the perspective and not XML Buddy.
> Matt
> On 1/29/07, Kurt Wiersma <kwier...@gmail.com> wrote: > > For some reason I always keep coming back to XMLBuddy. It has always > worked > > the best for me. It still works great with Eclipse 3.2.
> > On 1/29/07, Andrew Powell <andrew.pow...@universalmind.com> wrote: > > > Take a look at Oxygen XML. www.oxygenxml.com
> > > You can load the DTD into it and it will use that to help you hint > > > your XML.
> > > ap
> > > On Jan 29, 2007, at 3:52 PM, Richard Kroll wrote:
> > > > Hey all, > > > > I've been searching for a way to enable code hints when editing my > > > > mach-ii.xml config files within Eclipse. I know I came across a > > > > plugin > > > > for Dreamweaver for this, but cannot seem to find one for eclipse. > > > > Can > > > > anyone point me in the direction of one if it exists?
> Actually there is a way around this if you are using Eclipse 3.2. In the > Eclipse preferences under editor > file associations you add XMLBuddy to > list of valid editors for .cfm files. Then right click on your > mach-ii.xml.cfm file and choose open with > XMLBuddy and you should be set. > Eclipse even remembers that you want that file to always open with XMLBuddy > instead of the standard .cfm file editor. Gotta love Eclipse! :)
> --Kurt
> On 1/30/07, Matt Williams <mgw...@gmail.com> wrote:
> > Ditto on XML Buddy (the free version is sufficient for me). Note that > > you do have to have the file extension be xml. Something like > > machii.xml.cfm makes CFEclipse be the perspective and not XML Buddy.
> > Matt
> > On 1/29/07, Kurt Wiersma <kwier...@gmail.com> wrote: > > > For some reason I always keep coming back to XMLBuddy. It has always > worked > > > the best for me. It still works great with Eclipse 3.2.
> > > On 1/29/07, Andrew Powell <andrew.pow...@universalmind.com > wrote: > > > > Take a look at Oxygen XML. www.oxygenxml.com
> > > > You can load the DTD into it and it will use that to help you hint > > > > your XML.
> > > > ap
> > > > On Jan 29, 2007, at 3:52 PM, Richard Kroll wrote:
> > > > > Hey all, > > > > > I've been searching for a way to enable code hints when editing my > > > > > mach-ii.xml config files within Eclipse. I know I came across a > > > > > plugin > > > > > for Dreamweaver for this, but cannot seem to find one for eclipse. > > > > > Can > > > > > anyone point me in the direction of one if it exists?
On Jan 29, 4:27 pm, "Kurt Wiersma" <kwier...@gmail.com> wrote:
> For some reason I always keep coming back to XMLBuddy. It has always worked > the best for me. It still works great with Eclipse 3.2.
Can anyone provide some detailed instructions on how to setup the DTD in XMLBuddy? I recall doing this awhile ago when I was working on Fusebox but forgot the specifics... I've got the plugin installed just need to get it pointed to the DTD I imagine.
I could be wrong, but I think you only need to point to it in the xml file: <!DOCTYPE mach-ii PUBLIC "-//Mach-II//DTD Mach-II Configuration 1.1.1//EN" "mach-ii_1_1_1.dtd">
Then make sure you have a copy of the dtd in the same dir as the xml file itself.
> On Jan 29, 4:27 pm, "Kurt Wiersma" <kwier...@gmail.com> wrote: > > For some reason I always keep coming back to XMLBuddy. It has always worked > > the best for me. It still works great with Eclipse 3.2.
> Can anyone provide some detailed instructions on how to setup the DTD > in XMLBuddy? I recall doing this awhile ago when I was working on > Fusebox but forgot the specifics... I've got the plugin installed > just need to get it pointed to the DTD I imagine.
> I could be wrong, but I think you only need to point to it in the xml > file: > <!DOCTYPE mach-ii PUBLIC > "-//Mach-II//DTD Mach-II Configuration 1.1.1//EN" > "mach-ii_1_1_1.dtd">
> Then make sure you have a copy of the dtd in the same dir as the xml > file itself.
> > On Jan 29, 4:27 pm, "Kurt Wiersma" <kwier...@gmail.com> wrote: > > > For some reason I always keep coming back to XMLBuddy. It has always > worked > > > the best for me. It still works great with Eclipse 3.2.
> > Can anyone provide some detailed instructions on how to setup the DTD > > in XMLBuddy? I recall doing this awhile ago when I was working on > > Fusebox but forgot the specifics... I've got the plugin installed > > just need to get it pointed to the DTD I imagine.
> > Thanks, > > Jim
-- Qasim Rasheed Certified Advance ColdFusion MX Developer (IM qasimrasheed AT yahoo, msn or GTalk)