What plugin in sublimetext3 tells me there is an error in the php html and css syntax?
If possible, please tell me what the error is.
I installed sublimelinter but I don't know if I installed it wrong or had to install another package it didn't work for me.
Good morning,
There are several plugins to see the errors but the most complex is the
PHP
,Well, for those of you,
PHP
you need some things for the correct functioning of the plugin, the plugin is called:Installation:
can be done from the package manager of sublime in
menú > preferences > package-control
and later looking for the option“Install Package”.
Once there, look for the package called
PHPCS
, press “enter” and wait for the installation to finish. Configuration ofPHPCS
The first thing you should do is download the following executables that are required by the plugin for its operation
Once downloaded, you store them anywhere on your local computer. PHPCS makes use of these binaries to check the code syntax of your project files and thus be able to mark or highlight any 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”
. Open the file first,“Settings – Default”
copy the content of the file and then open the file“Settings – User”
and paste this content, save the file and in this way you will be able to change the default configuration and add your custom configuration.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 “/”.
The information that I have to give you is too much, please this link will help you more to install the plugin
PHP
: https://styde.net/instalar-php-code-sniffer-en-sublime-text/The other plugin for HTML and CSS is called
SublimeLinter
.To install this plugin you need to have the Package-control, in this way it will be easier for you to install the plugins you want.
This link can help you: http://www.sublimelinter.com/en/latest/installation.html