Laravel Blade Spacer
Automatically adds spaces between laravel blade templating markers
Details
Installs
- Total 77K
- Win 51K
- Mac 11K
- Linux 15K
Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 4 | 6 | 2 | 1 | 1 | 4 | 4 | 6 | 0 | 1 | 0 | 2 | 1 | 0 | 1 | 1 | 3 | 2 | 2 | 2 | 1 | 1 | 1 | 1 | 4 | 1 | 5 | 1 | 3 | 2 | 4 | 0 | 3 | 2 | 4 | 1 | 0 | 5 | 2 | 1 | 0 | 6 | 1 | 2 | 2 |
Mac | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 |
Linux | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 | 2 | 1 | 1 | 1 | 2 | 0 | 2 | 1 | 0 | 3 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 |
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.
- Press ⌘/Ctrl + ⇧ + P to open the command palette.
- Type
Package Control: Install Package
and press enter. Then search forLaravel 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.