ctrl+shift+p filters: :st2 :st3 :win :osx :linux
浏览

PHP语法

gerardroche ST3

Sublime Text的PHP宏。

详细情况

安装次数

  • 总数 56K
  • Win 41K
  • Mac 6K
  • Linux 9K
8月6日 8月5日 8月4日 8月3日 8月2日 8月1日 7月31日 7月30日 7月29日 7月28日 7月27日 7月26日 7月25日 7月24日 7月23日 7月22日 7月21日 7月20日 7月19日 7月18日 7月17日 7月16日 7月15日 7月14日 7月13日 7月12日 7月11日 7月10日 7月9日 7月8日 7月7日 7月6日 7月5日 7月4日 7月3日 7月2日 7月1日 6月30日 6月29日 6月28日 6月27日 6月26日 6月25日 6月24日 6月23日 6月22日
Windows 5 2 1 0 2 1 2 1 1 0 1 2 1 0 3 1 0 1 2 3 2 1 2 1 6 5 0 3 0 1 2 3 2 2 2 3 3 1 0 6 3 2 6 2 1 3
Mac 1 2 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 3 1 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
Linux 1 1 0 1 0 0 0 1 0 0 0 1 0 1 0 1 2 1 0 1 0 0 1 0 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 1 0
02468月6日8月3日7月31日7月28日7月25日7月22日7月19日7月16日7月13日7月10日7月7日7月4日7月1日6月28日6月25日6月22日8月6日 Linux: 1 Mac: 1 Windows: 58月5日 Linux: 1 Mac: 2 Windows: 28月4日 Linux: 0 Mac: 0 Windows: 18月3日 Linux: 1 Mac: 1 Windows: 08月2日 Linux: 0 Mac: 0 Windows: 28月1日 Linux: 0 Mac: 0 Windows: 17月31日 Linux: 0 Mac: 0 Windows: 27月30日 Linux: 1 Mac: 0 Windows: 17月29日 Linux: 0 Mac: 1 Windows: 17月28日 Linux: 0 Mac: 0 Windows: 07月27日 Linux: 0 Mac: 0 Windows: 17月26日 Linux: 1 Mac: 0 Windows: 27月25日 Linux: 0 Mac: 0 Windows: 17月24日 Linux: 1 Mac: 0 Windows: 07月23日 Linux: 0 Mac: 0 Windows: 37月22日 Linux: 1 Mac: 1 Windows: 17月21日 Linux: 2 Mac: 0 Windows: 07月20日 Linux: 1 Mac: 0 Windows: 17月19日 Linux: 0 Mac: 0 Windows: 27月18日 Linux: 1 Mac: 0 Windows: 37月17日 Linux: 0 Mac: 0 Windows: 27月16日 Linux: 0 Mac: 3 Windows: 17月15日 Linux: 1 Mac: 1 Windows: 27月14日 Linux: 0 Mac: 0 Windows: 17月13日 Linux: 0 Mac: 0 Windows: 67月12日 Linux: 1 Mac: 1 Windows: 57月11日 Linux: 1 Mac: 0 Windows: 07月10日 Linux: 0 Mac: 0 Windows: 37月9日 Linux: 0 Mac: 0 Windows: 07月8日 Linux: 0 Mac: 1 Windows: 17月7日 Linux: 0 Mac: 1 Windows: 27月6日 Linux: 1 Mac: 0 Windows: 37月5日 Linux: 0 Mac: 0 Windows: 27月4日 Linux: 1 Mac: 0 Windows: 27月3日 Linux: 0 Mac: 0 Windows: 27月2日 Linux: 0 Mac: 0 Windows: 37月1日 Linux: 0 Mac: 0 Windows: 36月30日 Linux: 0 Mac: 0 Windows: 16月29日 Linux: 0 Mac: 0 Windows: 06月28日 Linux: 0 Mac: 0 Windows: 66月27日 Linux: 1 Mac: 0 Windows: 36月26日 Linux: 0 Mac: 0 Windows: 26月25日 Linux: 0 Mac: 1 Windows: 66月24日 Linux: 0 Mac: 0 Windows: 26月23日 Linux: 1 Mac: 0 Windows: 16月22日 Linux: 0 Mac: 0 Windows: 38月6日 Linux: 1 Mac: 1 Windows: 58月5日 Linux: 1 Mac: 2 Windows: 28月4日 Linux: 0 Mac: 0 Windows: 18月3日 Linux: 1 Mac: 1 Windows: 08月2日 Linux: 0 Mac: 0 Windows: 28月1日 Linux: 0 Mac: 0 Windows: 17月31日 Linux: 0 Mac: 0 Windows: 27月30日 Linux: 1 Mac: 0 Windows: 17月29日 Linux: 0 Mac: 1 Windows: 17月28日 Linux: 0 Mac: 0 Windows: 07月27日 Linux: 0 Mac: 0 Windows: 17月26日 Linux: 1 Mac: 0 Windows: 27月25日 Linux: 0 Mac: 0 Windows: 17月24日 Linux: 1 Mac: 0 Windows: 07月23日 Linux: 0 Mac: 0 Windows: 37月22日 Linux: 1 Mac: 1 Windows: 17月21日 Linux: 2 Mac: 0 Windows: 07月20日 Linux: 1 Mac: 0 Windows: 17月19日 Linux: 0 Mac: 0 Windows: 27月18日 Linux: 1 Mac: 0 Windows: 37月17日 Linux: 0 Mac: 0 Windows: 27月16日 Linux: 0 Mac: 3 Windows: 17月15日 Linux: 1 Mac: 1 Windows: 27月14日 Linux: 0 Mac: 0 Windows: 17月13日 Linux: 0 Mac: 0 Windows: 67月12日 Linux: 1 Mac: 1 Windows: 57月11日 Linux: 1 Mac: 0 Windows: 07月10日 Linux: 0 Mac: 0 Windows: 37月9日 Linux: 0 Mac: 0 Windows: 07月8日 Linux: 0 Mac: 1 Windows: 17月7日 Linux: 0 Mac: 1 Windows: 27月6日 Linux: 1 Mac: 0 Windows: 37月5日 Linux: 0 Mac: 0 Windows: 27月4日 Linux: 1 Mac: 0 Windows: 27月3日 Linux: 0 Mac: 0 Windows: 27月2日 Linux: 0 Mac: 0 Windows: 37月1日 Linux: 0 Mac: 0 Windows: 36月30日 Linux: 0 Mac: 0 Windows: 16月29日 Linux: 0 Mac: 0 Windows: 06月28日 Linux: 0 Mac: 0 Windows: 66月27日 Linux: 1 Mac: 0 Windows: 36月26日 Linux: 0 Mac: 0 Windows: 26月25日 Linux: 0 Mac: 1 Windows: 66月24日 Linux: 0 Mac: 0 Windows: 26月23日 Linux: 1 Mac: 0 Windows: 16月22日 Linux: 0 Mac: 0 Windows: 38月6日 Linux: 1 Mac: 1 Windows: 58月5日 Linux: 1 Mac: 2 Windows: 28月4日 Linux: 0 Mac: 0 Windows: 18月3日 Linux: 1 Mac: 1 Windows: 08月2日 Linux: 0 Mac: 0 Windows: 28月1日 Linux: 0 Mac: 0 Windows: 17月31日 Linux: 0 Mac: 0 Windows: 27月30日 Linux: 1 Mac: 0 Windows: 17月29日 Linux: 0 Mac: 1 Windows: 17月28日 Linux: 0 Mac: 0 Windows: 07月27日 Linux: 0 Mac: 0 Windows: 17月26日 Linux: 1 Mac: 0 Windows: 27月25日 Linux: 0 Mac: 0 Windows: 17月24日 Linux: 1 Mac: 0 Windows: 07月23日 Linux: 0 Mac: 0 Windows: 37月22日 Linux: 1 Mac: 1 Windows: 17月21日 Linux: 2 Mac: 0 Windows: 07月20日 Linux: 1 Mac: 0 Windows: 17月19日 Linux: 0 Mac: 0 Windows: 27月18日 Linux: 1 Mac: 0 Windows: 37月17日 Linux: 0 Mac: 0 Windows: 27月16日 Linux: 0 Mac: 3 Windows: 17月15日 Linux: 1 Mac: 1 Windows: 27月14日 Linux: 0 Mac: 0 Windows: 17月13日 Linux: 0 Mac: 0 Windows: 67月12日 Linux: 1 Mac: 1 Windows: 57月11日 Linux: 1 Mac: 0 Windows: 07月10日 Linux: 0 Mac: 0 Windows: 37月9日 Linux: 0 Mac: 0 Windows: 07月8日 Linux: 0 Mac: 1 Windows: 17月7日 Linux: 0 Mac: 1 Windows: 27月6日 Linux: 1 Mac: 0 Windows: 37月5日 Linux: 0 Mac: 0 Windows: 27月4日 Linux: 1 Mac: 0 Windows: 27月3日 Linux: 0 Mac: 0 Windows: 27月2日 Linux: 0 Mac: 0 Windows: 37月1日 Linux: 0 Mac: 0 Windows: 36月30日 Linux: 0 Mac: 0 Windows: 16月29日 Linux: 0 Mac: 0 Windows: 06月28日 Linux: 0 Mac: 0 Windows: 66月27日 Linux: 1 Mac: 0 Windows: 36月26日 Linux: 0 Mac: 0 Windows: 26月25日 Linux: 0 Mac: 1 Windows: 66月24日 Linux: 0 Mac: 0 Windows: 26月23日 Linux: 1 Mac: 0 Windows: 16月22日 Linux: 0 Mac: 0 Windows: 3

README

源代码
raw.​githubusercontent.​com

PHPGRAMMAR是什么

改进的PHP语法,良好的缩进规则,智能宏以及更多功能。

Codecov Coverage Status Downloads

完整性和片段是由PHP completions KitPHP Snippets分别提供的。

安装

Package Control安装

安装的首选方法是Package Control

手动安装

关闭Sublime Text,然后将此仓库克隆到Sublime Text Packages目录中的名为PHPGrammar的文件夹中,位于您的平台Sublime Text Packages目录下

OS | 命令 – | —– Linux | git clone https://github.com/gerardroche/sublime-php-grammar.git ~/.config/sublime-text-3/Packages/PHPGrammar OSX | git clone https://github.com/gerardroche/sublime-php-grammar.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/PHPGrammar Windows | git clone https://github.com/gerardroche/sublime-php-grammar.git %APPDATA%\Sublime/ Text/ 3/Packages/PHPGrammar

使用

智能宏

要插入任何字符,请加Shift,例如在Enter运行宏的情况下,要插入换行并在Enter上插入换行(而不是运行宏),请按Shift+Enter

Ctrl+Enter

<?php

array(                      //    array(
    'str|'                  //        'str',
)                           //        |
                            //    )
<?php

'str|ing'                   //    'string';
                            //    |
<?php

function_call(|)            //    function_call();
                            //    |
<?php

if ($condition|)            //    if ($condition) {
                            //        |
                            //    }
<?php

foreach ($x => $y|)         //    foreach ($x => $y) {
                            //        |
                            //    }
<?php

while ($condition|)         //    while ($condition) {
                            //        |
                            //    }
<?php

for ($i = 0; $i < ; $i++|)  //    for ($i = 0; $i < ; $i++) {
                            //        |
                            //    }
<?php

switch ($condition|)        //    switch ($condition) {
                            //        |
                            //    }
<?php

function x(|)               //    function x()
                            //    {
                            //        |
                            //    }
<?php

class x                     //    class x
{                           //    {
    public function y(|)    //        public function y()
}                           //        {
                            //            |
                            //        }
                            //    }

Ctrl+;

'str|ing'                   //    'string';|
<?php

function_call(|)            //    function_call();|

Enter

array(|)                    //    array(
                            //        |
                            //    )
<?php

function_call(|)            //    function_call(
                            //        |
                            //    )
<?php

new class_name(|)           //    new class_name(
                            //        |
                            //    )

Tab

$arr = array(               //    $arr = array(
    'str|'                  //        'str' => |
)                           //    )
<?php

$arr = array(               //    $arr = array(
    'str'|                  //        'str' => |
)                           //    )

[

$arr = |                    //    $arr = [|];

]

$arr = [|                   //    $arr = [|];

贡献

请参阅CONTRIBUTING.md

许可证

BSD 3-Clause License许可证下发布。