Sublime text3 016 Sublimelinter (PHP code detection)

Source: Internet
Author: User
Tags sublime text

Sublime text3 016 Sublimelinter (PHP code detection)
------------------------------------------------------------------------------
If there is anything that does not understand, add QQ group: 186970878

Often there will be typos or statements do not pass, welcome to contact me, convenient and quick correction, but also convenient for later reading.

Contact me qq:2071551682
------------------------------------------------------------------------------
-----------------------PHP Code Check-----------------------------

PHP code checking with Sublimelinter

Need to download Sublimelinter and sublimelinter-php


Sublimelinter is used to highlight the non-canonical and erroneous notation that exists in the code that prompts the user to write, supporting more than 10 development languages such as JavaScript, CSS, HTML, Java, PHP, Python, Ruby, and more.


Sublimelinter-php is used by php-l for inspection.
This Linter plugin for Sublimelinter provides a interface to php-l. It'll be used with files that has the "PHP", "html", or "HTML 5" syntax.


------------Sublimelinter:----------------
Https://packagecontrol.io/packages/SublimeLinter

VERSIONS
ST3 4.6.4
ST2 1.8.0
Homepage sublimelinter.com

http://www.sublimelinter.com/en/stable/

Sublimelinter repo and issues can be reached on GitHub.
Click: GitHub to go to the next page

Https://github.com/SublimeLinter/SublimeLinter

Clone or download > download ZIP

Https://github.com/SublimeLinter/SublimeLinter.git

The resulting file: Sublimelinter-master.zip
File modification Time 2018 6 4


----------sublimelinter-php-----

https://packagecontrol.io/packages/SublimeLinter-php

https://github.com/SublimeLinter/SublimeLinter-php
Clone or download > download ZIP
Https://github.com/SublimeLinter/SublimeLinter-php.git

The resulting file: Sublimelinter-php-master.zip
File modification Time 2018 4 20
----------------------------------------------------

Sublimelinter Installation


Tip Information:

Package Control Messages
========================

Sublimelinter
-------------


____        _     _ _                _     _       _
/ ___| _   _| |__ |   (_)_ __ ___   ___| | (_)_ __ | |_ ___ _ __
\___ \| | | | ' _ \| | |   ' _ ' _ \/_ \ | | | ' _ \| __/_ \ ' __|
___) | |_| | |_) | | | | | | | |  __/ |___| | | | | || __/ |
|____/ \__,_|_.__/|_|_|_| |_| |_|\___|_____|_|_| |_|\__\___|_|


Welcome to Sublimelinter, a linter framework for Sublime Text 3.
Linters is not included, they must is installed separately.


For the documentation on what to use and configure Sublimelinter,
Please see:http://www.sublimelinter.com

To report Issues:https://github.com/sublimelinter/sublimelinter

-----------------------------------

sublimelinter-php Installation

Tip Information:

sublimelinter-php
-----------------

sublimelinter-php
-------------------------------
This Linter plugin for Sublimelinter provides a interface to php-l.

Please read the installation instructions at:

https://github.com/SublimeLinter/SublimeLinter-php

====================================================
Installing Sublimelinter and sublimelinter-php
Sublimelinter configuration. Click

Menu Preferences, Package Settings, Sublimelinter, Settings.

If user is null, copy the contents of the Default to user


The right User references the left Default syntax:

-----------------Copy Code----------------
Sublimelinter Settings-user
{

"Paths": {
"Linux": [],
"OSX": [],
"Windows": [
"D://wamp64//bin//php//php5.6.25//php.exe",
"D://wamp64//bin//php//php7.0.10//php.exe"
]
},
}

-----------------Copy Code---------------

Test success!!!
------------------------------------------------------

-------------------Check the setup instructions--------------------

The setting description for what state to check.

Lint Mode determines when the Linter is run.
Lint Mode determines when to run Linter

-background:asynchronously on every change
Background each change asynchronously

-Load_save:when a file is opened and every time it ' s saved
Load_save when a file is opened and every time it is saved.

-Manual:only when calling the Lint this View command
Manual only when calling Lint this view command


-Save:only When a file is saved
Save only when the file is saved

The following are the default settings
"Lint_mode": "Background",


If you want to change the debug mode, the Default copy is redefined in the User file.

---------------------Support Syntax hints sublime-phpcs--------------------

Download Plugin Sublime-phpcs

And the above two plugins are a website:
Https://github.com/benmatselby/sublime-phpcs

After extracting the modified folder name: Phpcs

Put the folder in the packages directory


Install package Ctrl+shift+p

Sublime Automatic Alignment plug-in: Alignment

Brackethighlighter highlighting matching brackets, quotes, and labels

Brackethighlighter This plugin can highlight matching brackets, quotes, and tags on the left to match


------------------------------------------------------------------------------
If there is anything that does not understand, add QQ group: 186970878

Often there will be typos or statements do not pass, welcome to contact me, convenient and quick correction, but also convenient for later reading.

Contact me qq:2071551682
------------------------------------------------------------------------------

Sublime text3 016 sublimelinter (PHP code detection)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.