H. Ferrence
H. Ferrence

Reputation: 8116

How to identify where the "Error" is located in a script file using Sublime Text 3

I am using ST3 on a PHP script file.

The lower left corner indicates I have "1 error" somewhere in the script.

enter image description here

How can I locate where the error is and what it is?

Note: the "Line 612, Column 13" simply tells me where the cursor is at this moment. It is not where the error is located.

Upvotes: 0

Views: 386

Answers (2)

Hmmm
Hmmm

Reputation: 1764

Use SublimeLinter-php, This plugin provides an interface to php -l. It will be used with files that have the “PHP”, “HTML”, or “HTML 5” syntax.

Usage Example

enter image description here

There is also Javascript , JSON and CSS versions

Upvotes: 1

fuyi
fuyi

Reputation: 2639

refer to this question to install SL PHP lint plugin, it will tell you where the error is

Upvotes: 1

Related Questions