Scite For PHP

In my last post title “Crimson Editor With PHP”, I wrote about how to setup the Crimson Editor so that it will parse PHP and display the results to the output window. In this post I’m going to show how to setup Scite to parse PHP and display the results in the output window.

I’m sorry to disappoint you but this one will also be quite easy. Begin by opening Scite and under the options menu select Open html.properties Scroll all the way to the bottom of the file and look for:

if PLAT_WIN command.go.$(file.patterns.web)=”file://$(FilePath)” command.go.subsystem.$(file.patterns.web)=2 command.go.$(file.patterns.php)=c:\wamp\php\php.exe -q $(FileNameExt) command.build.$(file.patterns.php)=c:\wamp\php\php.exe -l $(FileNameExt)

If you look at the code above you will see the path to the PHP interpreter which happens to be already changed in this code. The only difference between the code above and the default code is the path to the php interpreter. So simply look for the code above, change the bold text to the path of the php.exe interpreter on your local computers and save the file.

Note: I was running into problems with the code that follows the above code and a simply solution was to comment it out as follows:

if PLAT_GTK #command.go.$(file.patterns.web)=netscape “file://$(FilePath)” #command.go.$(file.patterns.php)=php -f “$(FileNameExt)” #command.compile.$(file.patterns.php)=php -l “$(FileNameExt)”

One Response to “Scite For PHP”

  1. KrisBelucci says: June 2nd, 2009 at 12:20 pm

    Hi, cool post. I have been wondering about this topic,so thanks for writing.

Leave a Reply