How to install PHP Syntax Checker package in sublime

Others

Posted on 31 Mar 16 by Vickey
  820



Sublime is a light weight and popular text editor. Sublime support many programming languages. In sublime we have highlighted code for each language but by default sublime can not catch the error in your code. If you want to make sure that your code is error free in development process then you need to use Sublime Linter. By using Sublime Linter you can install a package for check any error in your code. You can install this package by following these below steps.

1. Open your sublime text and go to menu >> View >> Show console and paste the below code in sublime console and press Enter

import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88';pf = 'Package Control.sublime-package';ipp = sublime.installed_packages_path();urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) );by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read();dh = hashlib.sha256(by).hexdigest();print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

After complete this process a pop up will come. Press OK on pop up.

2. Now Press ctrl + shift + p and you will see a popup

3. In this pop up search 'install package' and click on it and again a popup open

4. Now search 'sublimeLinter-php'  and click on it. After complete process restart sublime Text and now you can catch your error in editor when you type.


If this post help you reduce time to develop, you can help me to maintain this website :)
www.000webhost.com