Sublime Forum

Identify PHP errors

#1

I’ve been using PhpEd on Windows. If I make a mistake - e.g. omit a semi-colon, etc. it shows it as an error.
How/what do I do to see my errors in SublimeText?

Thanks

Frank

0 Likes

#2

Such kind of errors are checked by so called linters. These are external tools which parse your code in order to find all kind of coding style or syntax errors.

In Sublime Text you can install a plugin called SublimeLinter, which is the basic interface for various linters. In order to support PHP you need to install SublimeLinter-php as syntax specific interface.

Please refer to the documentation of both to find out how to set them up correctly as both rely on an external tool, whose location must be configured somewhere.

3 Likes