ActiveState Community

Jump start for a Dreamweaver user

Posted by Zoom123 on 2007-09-10 04:21

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 :)

hebetude | Mon, 2007-09-10 04:57

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...

toddw | Mon, 2007-09-10 15:37

Komodo JavaScript macro to perform specific file preview:

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");
}
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.

Zoom123 | Tue, 2007-09-11 13:45

Thanks. I will try out your suggestions