Installing SublimeLint PHP under Windows 10

I’ve been using SublimeText since the early of version 2. The error highlighting was working great on Windows 8, but it was totally gone after I upgraded to Windows 10.

If you haven’t installed SublimeLinter, you can do that via Package Control, SublimeLinter, and SublimeLinter-PHP.

sublime-linter

After successfully installed, go to Preferences > Package Settings > SublimeLinter > Settings – UserĀ 

settings-user

Add PHP Executable folder to the Path, in my case php.exe located in C:\wamp\bin\php\php5.5.12\

Save the file.

The last steps are making a difference with the previous version of Windows.

  1. Going to your PC’s Control Panel.
  2. Select System.
  3. Select Advanced system settings.
  4. From System Properties, select Environment Variables.
  5. Under System Variables find the variable Path. Select it and click edit.
  6. At the end of the Variable Value add your PHP’s path location. In my case it was C:\wamp\bin\php\php5.5.12\. All paths are separated by a ; so be sure to add one, if there isn’t already, followed by your PHP’s file path.
  7. Restart your Sublime Text editor.

env-var

Reff:
http://stackoverflow.com/questions/31729655/windows-10-sublimelinter-php

How To, PHP, ,

Any idea? Fill the comment below

This site uses Akismet to reduce spam. Learn how your comment data is processed.