Hello,
I have been using Dreamweaver for years and now I decided to try a proper PHP IDE by downloading Komodo IDE.
I know all my questions can be answered by reading the manual, but before getting very deep I would like to see if/how Komodo can do the things I found useful with Dreamweaver.
So here are a few questions:
1) How can I configure Komodo to preview my php files by using my localhost. I already have PHP/MySQL installed so when I click the preview button I would like Komodo to go to http://localhost/projectName.
2) How can I connect via FTP do upload the files on the live server? Does Komodo have some sort of synchronization utility like Dreamweaver, or I will need to use CVS?
3) In the Find & Replace dialog I don't see an option for searching the whole Project. Is this possible?
Thats it for now. Thanks :)
Refer to the included help documentation. I searched things like "preview" and "ftp" and found some related information. I don't know about find&replace, it does have an all open documents feature though...
http://community.activestate.com/faq/using-rsync-with-projects
http://bugs.activestate.com/show_bug.cgi?id=07141
Komodo JavaScript macro to perform specific file preview:
var currentView = gViewMgr.currentView;
var fileURI = currentView.document.displayPath;
var substring_prefix = "htdocs";
var basePos = fileURI.indexOf(substring_prefix);
if (basePos >= 0) {
var httpURI = "http://localhost" + fileURI.substring(basePos + substring_prefix.length);
ko.browse.openUrlInDefaultBrowser(httpURI);
// Or to open inside of Komodo.
//ko.open.URI(httpURI, 'browser');
}
} else {
dump("Current editor view does has have a file handle\n");
}
if (gViewMgr.currentView && gViewMgr.currentView.document) { var currentView = gViewMgr.currentView; var fileURI = currentView.document.displayPath; var substring_prefix = "htdocs"; var basePos = fileURI.indexOf(substring_prefix); if (basePos >= 0) { var httpURI = "http://localhost" + fileURI.substring(basePos + substring_prefix.length); ko.browse.openUrlInDefaultBrowser(httpURI); // Or to open inside of Komodo. //ko.open.URI(httpURI, 'browser'); } } else { dump("Current editor view does has have a file handle\n"); }Note: For Komodo 4.2, replace all "gViewMgr" references to "ko.views.manager".
Todd.
Thanks. I will try out your suggestions