Good morning,
There are several plugins to see the errors but the most complex is the PHP
,
PHP:
Good for those of PHP
you need some things for the correct functioning of the plugin the plugin is called:
PHP Code Sniffer.
Intalacion:
can be done from the sublime package manager in menú > preferences > package-control
and then looking for the “Install Package”.
option
Note: if you do not have the package-control this link will help you to activate it:
link
Once there, look for the package called PHPCS
, press "enter" and wait for the installation to finish.
Configuration of PHPCS
The first thing you should do is download the following executables that are required by the plugin for its operation
PHP Code Sniffer:
link
PHP Mess Detector: link
PHP CS Fixer: link
PHP Code Beautifier: link
Once you have downloaded the stores anywhere on your local computer. PHPCS makes use of these binaries to check the syntax of the code of the files of your project and thus be able to mark or highlight the errors they may have.
Enter from Sublime Text to menú > preferences > package settings > PHP Code Sniffer
and you will see 2 options “Settings – Default”
and “Settings -User”
. First open the file “Settings – Default”
copy the contents of the file and then open the file “Settings – User”
and paste this content, save the file and in this way you can change the default settings and add your custom settings.
The most important changes to make is to add the address to each executable so that the plugin can work. Take into account that in this case I am using Windows, so the "\" separators are used, in Ubuntu or MAC you must use "/".
"phpcs_php_prefix_path": "C:\xampp\php\php.exe",
"phpcs_executable_path": "C:\xampp\php\phpcs.bat",
"php_cs_fixer_executable_path": "C:\xampp\php\php-cs-fixer.phar",
"phpcbf_executable_path": "C:\xampp\php\phpcbf.bat",
"phpcs_php_path": "C:\xampp\php\php.exe",
"phpmd_executable_path": "C:\xampp\php\phpmd.phar",
The information I have to give you is too much, please this link will help you more to install the plugin of PHP
: link
The other Plugin for HTML and CSS is called SublimeLinter
.
To install this plugin you need to have the Package-control, in this way you will be provided with the way to install the puglins you want.
This link can help you: link