All Projects → gerardroche → sublime-php-grammar

gerardroche / sublime-php-grammar

Licence: BSD-3-Clause License
An smart macro PHP plugin for Sublime Text.

Programming Languages

PHP
23972 projects - #3 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to sublime-php-grammar

Golite
Add essential language support for the Go language to Sublime Text 3.
Stars: ✭ 14 (-53.33%)
Mutual labels:  formatting, sublime-text
Sublime Phpck
PHP completions for Sublime Text.
Stars: ✭ 58 (+93.33%)
Mutual labels:  sublime-text, auto-complete
Sublimecodeintel
💡 Full-featured code intelligence and smart autocomplete for Sublime Text
Stars: ✭ 5,050 (+16733.33%)
Mutual labels:  sublime-text, auto-complete
sublime-wai-aria
WAI-ARIA Roles, States and Properties auto-completion for Sublime Text
Stars: ✭ 21 (-30%)
Mutual labels:  sublime-text, auto-complete
CodeChampion
Plays epic sound clips when you write epic code on sublime Text!
Stars: ✭ 30 (+0%)
Mutual labels:  sublime-text
anaconda go
AnacondaGO adds autocompletion, linting and IDE features for Golang to your Sublime Text 3
Stars: ✭ 39 (+30%)
Mutual labels:  sublime-text
sublime-monokai-free
A beautiful, modern, high quality, Monokai theme for Sublime Text 3.
Stars: ✭ 46 (+53.33%)
Mutual labels:  sublime-text
chelevra.tmtheme
Sublime Text Syntax Highlighting Theme
Stars: ✭ 23 (-23.33%)
Mutual labels:  sublime-text
SetupStuff
This repository contains the instructions to install various tools that are helpful to a developer.
Stars: ✭ 18 (-40%)
Mutual labels:  sublime-text
sublime-atomizr
Convert Sublime Text completions into Atom (or Visual Studio Code) snippets, and vice versa.
Stars: ✭ 12 (-60%)
Mutual labels:  sublime-text
Sublime-QML
QML support for Sublime Text 2 and Sublime Text 3
Stars: ✭ 19 (-36.67%)
Mutual labels:  sublime-text
megalinter
🦙 Mega-Linter analyzes 48 languages, 22 formats, 19 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.
Stars: ✭ 534 (+1680%)
Mutual labels:  formatting
humanize
A collection of utility functions, with built-in localization, for humanizing various types of data input
Stars: ✭ 73 (+143.33%)
Mutual labels:  formatting
marker-extension
Sample project demonstrating use of an Xcode Source Editor Extension to format Swift code
Stars: ✭ 19 (-36.67%)
Mutual labels:  formatting
formatting
源码格式自动化调整工具
Stars: ✭ 37 (+23.33%)
Mutual labels:  formatting
Nineties
💾 Colors for World Wide Web pioneers
Stars: ✭ 16 (-46.67%)
Mutual labels:  sublime-text
sublime-sesame
Add, open, remove, switch, and manage projects and folders, using the command palette and key bindings.
Stars: ✭ 15 (-50%)
Mutual labels:  sublime-text
SublimeXssEncode
Converts characters from one encoding to another using a transformation.
Stars: ✭ 37 (+23.33%)
Mutual labels:  sublime-text
pypandoc
Thin wrapper for "pandoc" (MIT)
Stars: ✭ 510 (+1600%)
Mutual labels:  formatting
YaraSyntax
YARA package for Sublime Text
Stars: ✭ 15 (-50%)
Mutual labels:  sublime-text

WHAT PHPGRAMMAR IS

An improved PHP syntax, good indentation rules, smart macros, and more.

Travis CI Build Status AppVeyor Build status Coveralls Coverage Status Codecov Coverage Status Minimum Sublime Version Latest Version GitHub stars Downloads

Completions and snippets are provided separately by PHP Completions Kit and PHP Snippets.

INSTALLATION

Package Control installation

The preferred method of installation is Package Control.

Manual installation

Close Sublime Text, then download or clone this repository to a directory named PHPGrammar in the Sublime Text Packages directory for your platform:

OS Command
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

USAGE

Smart macros

To insert any literal character add Shift e.g. in a case where Enter runs a macro, to insert a newline on Enter (instead of running the macro) press Shift+Enter.

On 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()
}                           //        {
                            //            |
                            //        }
                            //    }

On Ctrl+;

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

function_call(|)            //    function_call();|

On Enter

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

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

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

On Tab

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

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

On [

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

On ]

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

CONTRIBUTING

See CONTRIBUTING.md.

LICENSE

Released under the BSD 3-Clause License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].