Logo Pupungbp.com

Need a WordPress expert help?

Installing SublimeLint PHP under Windows 10

Last Updated: June 27, 2020 | Reading Time: 2 minutes

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\

"paths": {
            "linux": [],
            "osx": [],
            "windows": [
                "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

Looking for an affordable WordPress solution?

We offer budget-friendly WordPress website development services to meet your needs. Prices start at $10.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

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