Using Coldfusion in Atom
How do you use the text editor Atom to connect with Coldfusion 10? I am writing code but the Coldfusion is just coming out as pure text and not running.
When I open the same folder in Dreamweaver the CF code is actually running.
So basically the setup we have is a server that is running CF and our "work/files/folders". Then from my pc I open the file/folder that is on that server and run the code from my pc.
Dreamweaver works. Atom does not.
Is there something special you have to do to tell Atom to connect with the Coldfusion administrator or something?
I haven't used Dreamweaver in years but I recall that it could be configured with different views. One of those views allowed you to have a "live" browser view and a text editor side-by-side. As you made changes to the code you could see them immediately within Dreamweaver itself. I assume this is the functionality you are after. They called it "live view" apparently. Here is an example that I found here.
A. Application bar B. Document toolbar C. Document window D. Workspace switcher E. Panels F. Code View G. Status bar H. Tag selector I. Live View J. Toolbar
One of the true powers of Atom comes from the packages that have been developed for it. Most likely if you are looking for some functionality someone has created it already. That's what I have found with using it. The packages that I have installed to work on CFML are:
- atom-beautify
- autocomplete-cfml
- language-cfml
While Atom can handle static HTML files directly, it does not know how to render CFML files. It would need a CFML engine to do that. I have not used this package myself but I believe the one that will help you is the browser-plus package. It allows you to run a browser within Atom. From that browser you can surf to your ColdFusion server and see the pages you are working on.
If you are running ColdFusion locally on your computer then just edit the webroot files directly. If you are running ColdFusion on a server, then just map a drive to the server's webroot and you can edit the files from that mapped drive. After saving any changes just refresh that browser.
I should mention that browser-plus is only one option for Atom that I found. There are others. Depending on what your needs are a different one may work better for you. Here are a few more for reference but definitely do some searching and see what works for you.
- atom-webbrowser
- open-in-browser
- web-view