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

Laravel Blade

by SublimeText ALL Top 100

Laravel Blade Template syntax for Sublime Text

Details

  • 2.2.1
    1.6.19
    1.5.3
  • github.​com
  • github.​com
  • 2 months ago
  • 3 hours ago
  • 12 years ago

Installs

  • Total 460K
  • Win 279K
  • Mac 93K
  • Linux 88K
Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6
Windows 9 8 11 9 9 7 9 10 13 8 11 9 10 13 9 12 14 16 8 5 2 4 10 12 10 21 7 13 14 11 14 12 14 8 13 9 12 12 8 14 6 8 7 19 10 7
Mac 2 3 2 2 3 2 1 1 1 2 1 2 2 1 4 2 2 2 3 2 3 1 2 0 2 7 5 1 6 4 7 4 3 3 2 4 3 7 4 5 1 0 2 3 1 0
Linux 3 1 2 3 4 3 3 5 1 7 3 4 2 8 4 6 4 5 2 3 4 5 4 3 5 1 3 0 5 6 3 2 4 1 2 4 6 4 1 2 1 5 4 7 1 3

Readme

Source
raw.​githubusercontent.​com

Blade

Laravel Blade Template syntax definitions for Sublime Text based on its HTML/CSS/JS syntaxes.

preview

Installation

Package Control

The easiest way to install is using Package Control. It's listed as Laravel Blade.

  1. Open Command Palette using ctrl+shift+P or menu item Tools → Command Palette...
  2. Choose Package Control: Install Package
  3. Find Laravel Blade and hit Enter
  4. Restart Sublime Text (e.g.: if A File Icons is installed)
  5. Reopen any .blade files.

Manual Install

  1. Download or clone this repository into [install-dir]/Packages/Laravel Blade
  2. Restart Sublime Text (e.g.: if A File Icons is installed)
  3. Reopen any .blade files.

[!NOTE]

Syntax from main branch require Sublime Text 4.

For Sublime Text 3 compatible version refer to st3 branch.

Supported Frontend Syntax

To use AlpineJS with Blade templates, 1. install AlpineJS package 2. follow instructions to create combined HTML (Blade, AlpineJS) syntax

Supported Extensions

Snippets

For Blade related snippets, please install Blade Snippets package.

Troubleshooting

§1 Syntax Definition Parse Errors

Blade extends Sublime Text's HTML syntax definition.

If Blade syntax highlighting doesn't work and console displays syntax errors in HTML (Blade).sublime-syntax, please make sure to remove any out-dated syntax override.

Steps:

  1. call Menu > Preferences > Browse Packages..
  2. Look for HTML folder
  3. Remove it or at least delete any syntax definition in it.

§2 Scripts are not correctly highlighted

Blade relies on JavaScript (source.js) to scope script blocks and inline scripts.

Make sure to remove related out-dated syntax packages, which don't meet least compatibility requirements.

They can be identified by calling e.g. sublime.find_syntax_by_scope("source.js") in ST's console.

Known candidates are:

Credits

It is a fork of great Medialink/Laravel Blade Highlighter.