ActiveState Community

PHP Syntax Error Highlighting

Posted by pawprint_net on 2009-11-02 08:40

Is Komodo supposed to be highlighting syntax errors in PHP code?

If yes, how does one turn that on - or am I seeing some kind of bug.

For example given the following should I see anything special on the line with the error?

<?php
print 'this bit is valid code';
blah blah blah
print 'and here is more valid code';
?>

If I should see something I don't (see attached)

AttachmentSize
Snap1.jpg11.54 KB

jeffg | Mon, 2009-11-02 11:05

Do you have PHP installed locally? Komodo uses your PHP installation to do syntax checking, so you will need to both install PHP and, in Komodo's preferences at

Edit / Preferences / Languages / PHP

...tell Komodo where php.exe is. For more on this:

http://docs.activestate.com/komodo/5.2/prefs.html#PHP

--
JeffG
http://www.openkomodo.com/blogs/jeffg

pawprint_net | Mon, 2009-11-02 11:53

Awesome - thanks.

Ah... I thought all that was just for debugging not for the errors to highlight.

I did happen to have PHP installed locally on this test box (don't normally) I just had to update the prefs to tell Komodo where it is. All working now. Cheers.

Fair Winds
... and watch for squalls from leeward