ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Laravel Blade Spacer

by austenc ALL

Automatically adds spaces between laravel blade templating markers

Details

Installs

  • Total 77K
  • Win 51K
  • Mac 11K
  • Linux 15K
Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18
Windows 2 0 0 4 3 1 0 2 1 2 3 0 1 2 2 1 3 4 0 1 1 2 1 1 2 1 4 2 0 4 1 3 0 2 2 3 2 2 2 5 0 1 4 3 4 1
Mac 2 0 1 0 1 2 0 1 0 3 0 0 0 2 0 0 0 0 0 1 1 1 1 0 1 0 2 1 0 3 0 0 0 0 1 1 2 0 0 1 1 0 0 0 0 0
Linux 1 0 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 1 0 0 0 2 0 2 1 0 0 0 1 0 2 3 2 0 1 3 0 2 1 2 1 0 2 1 1 1
02468Apr 4Apr 1Mar 29Mar 26Mar 23Mar 20Mar 17Mar 14Mar 11Mar 8Mar 5Mar 2Feb 27Feb 24Feb 21Feb 18Apr 4 Linux: 1 Mac: 2 Windows: 2Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 1 Windows: 0Apr 1 Linux: 0 Mac: 0 Windows: 4Mar 31 Linux: 0 Mac: 1 Windows: 3Mar 30 Linux: 0 Mac: 2 Windows: 1Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 1 Windows: 2Mar 27 Linux: 0 Mac: 0 Windows: 1Mar 26 Linux: 0 Mac: 3 Windows: 2Mar 25 Linux: 0 Mac: 0 Windows: 3Mar 24 Linux: 2 Mac: 0 Windows: 0Mar 23 Linux: 1 Mac: 0 Windows: 1Mar 22 Linux: 0 Mac: 2 Windows: 2Mar 21 Linux: 0 Mac: 0 Windows: 2Mar 20 Linux: 0 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 0 Windows: 3Mar 18 Linux: 1 Mac: 0 Windows: 4Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 1 Windows: 1Mar 15 Linux: 0 Mac: 1 Windows: 1Mar 14 Linux: 2 Mac: 1 Windows: 2Mar 13 Linux: 0 Mac: 1 Windows: 1Mar 12 Linux: 2 Mac: 0 Windows: 1Mar 11 Linux: 1 Mac: 1 Windows: 2Mar 10 Linux: 0 Mac: 0 Windows: 1Mar 9 Linux: 0 Mac: 2 Windows: 4Mar 8 Linux: 0 Mac: 1 Windows: 2Mar 7 Linux: 1 Mac: 0 Windows: 0Mar 6 Linux: 0 Mac: 3 Windows: 4Mar 5 Linux: 2 Mac: 0 Windows: 1Mar 4 Linux: 3 Mac: 0 Windows: 3Mar 3 Linux: 2 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 2Mar 1 Linux: 1 Mac: 1 Windows: 2Feb 28 Linux: 3 Mac: 1 Windows: 3Feb 27 Linux: 0 Mac: 2 Windows: 2Feb 26 Linux: 2 Mac: 0 Windows: 2Feb 25 Linux: 1 Mac: 0 Windows: 2Feb 24 Linux: 2 Mac: 1 Windows: 5Feb 23 Linux: 1 Mac: 1 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 1Feb 21 Linux: 2 Mac: 0 Windows: 4Feb 20 Linux: 1 Mac: 0 Windows: 3Feb 19 Linux: 1 Mac: 0 Windows: 4Feb 18 Linux: 1 Mac: 0 Windows: 1Apr 4 Linux: 1 Mac: 2 Windows: 2Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 1 Windows: 0Apr 1 Linux: 0 Mac: 0 Windows: 4Mar 31 Linux: 0 Mac: 1 Windows: 3Mar 30 Linux: 0 Mac: 2 Windows: 1Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 1 Windows: 2Mar 27 Linux: 0 Mac: 0 Windows: 1Mar 26 Linux: 0 Mac: 3 Windows: 2Mar 25 Linux: 0 Mac: 0 Windows: 3Mar 24 Linux: 2 Mac: 0 Windows: 0Mar 23 Linux: 1 Mac: 0 Windows: 1Mar 22 Linux: 0 Mac: 2 Windows: 2Mar 21 Linux: 0 Mac: 0 Windows: 2Mar 20 Linux: 0 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 0 Windows: 3Mar 18 Linux: 1 Mac: 0 Windows: 4Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 1 Windows: 1Mar 15 Linux: 0 Mac: 1 Windows: 1Mar 14 Linux: 2 Mac: 1 Windows: 2Mar 13 Linux: 0 Mac: 1 Windows: 1Mar 12 Linux: 2 Mac: 0 Windows: 1Mar 11 Linux: 1 Mac: 1 Windows: 2Mar 10 Linux: 0 Mac: 0 Windows: 1Mar 9 Linux: 0 Mac: 2 Windows: 4Mar 8 Linux: 0 Mac: 1 Windows: 2Mar 7 Linux: 1 Mac: 0 Windows: 0Mar 6 Linux: 0 Mac: 3 Windows: 4Mar 5 Linux: 2 Mac: 0 Windows: 1Mar 4 Linux: 3 Mac: 0 Windows: 3Mar 3 Linux: 2 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 2Mar 1 Linux: 1 Mac: 1 Windows: 2Feb 28 Linux: 3 Mac: 1 Windows: 3Feb 27 Linux: 0 Mac: 2 Windows: 2Feb 26 Linux: 2 Mac: 0 Windows: 2Feb 25 Linux: 1 Mac: 0 Windows: 2Feb 24 Linux: 2 Mac: 1 Windows: 5Feb 23 Linux: 1 Mac: 1 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 1Feb 21 Linux: 2 Mac: 0 Windows: 4Feb 20 Linux: 1 Mac: 0 Windows: 3Feb 19 Linux: 1 Mac: 0 Windows: 4Feb 18 Linux: 1 Mac: 0 Windows: 1Apr 4 Linux: 1 Mac: 2 Windows: 2Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 1 Windows: 0Apr 1 Linux: 0 Mac: 0 Windows: 4Mar 31 Linux: 0 Mac: 1 Windows: 3Mar 30 Linux: 0 Mac: 2 Windows: 1Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 1 Windows: 2Mar 27 Linux: 0 Mac: 0 Windows: 1Mar 26 Linux: 0 Mac: 3 Windows: 2Mar 25 Linux: 0 Mac: 0 Windows: 3Mar 24 Linux: 2 Mac: 0 Windows: 0Mar 23 Linux: 1 Mac: 0 Windows: 1Mar 22 Linux: 0 Mac: 2 Windows: 2Mar 21 Linux: 0 Mac: 0 Windows: 2Mar 20 Linux: 0 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 0 Windows: 3Mar 18 Linux: 1 Mac: 0 Windows: 4Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 1 Windows: 1Mar 15 Linux: 0 Mac: 1 Windows: 1Mar 14 Linux: 2 Mac: 1 Windows: 2Mar 13 Linux: 0 Mac: 1 Windows: 1Mar 12 Linux: 2 Mac: 0 Windows: 1Mar 11 Linux: 1 Mac: 1 Windows: 2Mar 10 Linux: 0 Mac: 0 Windows: 1Mar 9 Linux: 0 Mac: 2 Windows: 4Mar 8 Linux: 0 Mac: 1 Windows: 2Mar 7 Linux: 1 Mac: 0 Windows: 0Mar 6 Linux: 0 Mac: 3 Windows: 4Mar 5 Linux: 2 Mac: 0 Windows: 1Mar 4 Linux: 3 Mac: 0 Windows: 3Mar 3 Linux: 2 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 2Mar 1 Linux: 1 Mac: 1 Windows: 2Feb 28 Linux: 3 Mac: 1 Windows: 3Feb 27 Linux: 0 Mac: 2 Windows: 2Feb 26 Linux: 2 Mac: 0 Windows: 2Feb 25 Linux: 1 Mac: 0 Windows: 2Feb 24 Linux: 2 Mac: 1 Windows: 5Feb 23 Linux: 1 Mac: 1 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 1Feb 21 Linux: 2 Mac: 0 Windows: 4Feb 20 Linux: 1 Mac: 0 Windows: 3Feb 19 Linux: 1 Mac: 0 Windows: 4Feb 18 Linux: 1 Mac: 0 Windows: 1

Readme

Source
raw.​githubusercontent.​com

Laravel Blade Spacer

Automatically adds spaces to laravel blade syntax for readability.

Plugin for Sublime Text 3 that adds in spaces after the opening blade tag and before the closing tag. Doing it manually gets overly tedious sometimes so I wrote this plugin, cheers!

Installing

Easy Install (Package Control)

You can install this plugin through the Package Control.

  1. Press ⌘/Ctrl + ⇧ + P to open the command palette.
  2. Type Package Control: Install Package and press enter. Then search for Laravel Blade Spacer.

Manual Installation (Not Recommended)

Without Git: Download the latest source from GitHub <http://github.com/austenc/blade-spacer>. Copy the whole directory into the Packages directory.

With Git: Clone the repository in your Sublime Text Packages directory:

git clone git://github.com/austenc/blade-spacer.git

The “Packages” packages directory is located at:

  • OS X::

    ~/Library/Application Support/Sublime Text 3/Packages/

  • Linux::

    ~/.Sublime Text 3/Packages/

  • Windows::

    %APPDATA%/Sublime Text 3/Packages/

How it works

Sublime text already handles the auto-closing of braces. This plugin automatically adds spaces between double (or triple) curly braces in blade files for readability.

The cursor is represented by | in the examples:

  • typing {{ will yield {{ | }} – notice the spaces and cursor position
  • should work with {{{ }}} and {{-- Comments --}} too!
  • Laravel5 syntax support {!! | !!}

Since 2.2.0 A command has been added to space every set of blade syntax tags in the currently open file. It is under the 'Blade Spacer: Format File' option in the command palette (Ctrl+Shift+P by default in windows / linux, and Cmd+Shift+P on mac).

Feedback welcome, open an issue here.