- Fix
b:session
andb:prepend
snippets (@prshendra - PR #180)
- Add
@session
directive andb:session
snippet - Add
@use
directive - Add
@vite
directive
- Add
@pushIf
directive andb:pushIf
snippet (@AbdelrhmanSaid - PR #174) - Add
<x-slot:name>
highlight (@solicomo - PR #175) - Enhance BladeFormatter.ts (@1cbyc - PR #167)
- Update package dependencies
- Add
b:prepend
snippet - Add
@prependOnce
directive andb:prependOnce
snippet - Update syntax supports: prependOnce directive
- Update package dependencies
- Add
@dd
directive andb:dd
snippet (@BrayanCaro - PR #158) - Add
@style
,@readonly
,@required
,@pushOnce
directive - Add
b:style
,b:readonly
,b:required
,b:pushOnce
snippet - Update syntax supports: style, readonly, required, pushOnce directive
- Add
@disabled
directive andb:disabled
snippet (@JustinByrne - PR #151) - Add
b:class
snippet (PR #136 and PR #140 - Thanks to @lakuapik and @wilsenhc)
- Add
b:aware
andb:js
snippet - Add
@aware
directive (Laravel 8.64) - Add
@js
directive (Laravel 8.71) - Update
Blade::render
andBlade::renderComponent
snippet
Add Laravel 9 features
- Add
b:checked
andb:selected
snippet - Add
@checked
and@selected
directive syntax highlight - Add
Blade::render
andBlade::renderComponent
snippet
Happy New Year 2022!
- Add
b:canany
andb:canany-cananyelse
snippet (@JustinByrne - PR #144) - Fix snippet
- Update blade syntaxes
- Update packages
- Added support attribute expressions syntax highlighting (@cpof-tea - PR #138)
- Add
@class
directive syntax highlight - Update blade syntaxes
- Fix snippet
- Add
b:once
snippet (@lakuapik - PR #137) - Add
Blade::stringable
snippet (@lakuapik - PR #135) - Update packages
- Add
@once
directive - Fix #121 @php() highlighting
- Update blade syntaxes
- Update blade syntaxes
- Add
@livewireStyles
,@livewireScripts
,@livewire
directive (v8.x) - Add
livewire:styles
,livewire:scripts
,livewire:component
snippets - Cleanup snippets
- Add
@includeUnless
directive (v6.x) - Add environment directives:
@production
,@env
(v7.x) - Rename language mode using
Blade
instead ofLaravel Blade
- Enable language feature in blade language mode
- Reduce extension package size
- Add
b:error
snippets (@CaddyDz - PR #95) - Add
b:props
snippets - Add blade extensions snippets
Blade::component
Blade::include
Blade::if
Blade::directive
- Update blade formatter fixed for updated languageservice
- Append html format options to html formatter (@ayatkyo - PR #87)
- Update package dependencies
- Add
b:csrf
,b:method
,b:dump
snipptes (@HasanAlyazidi - PR #60) - Fix comment with extra spaces (#59)
- Fix formatting issue in url syntax (#57)
- Fix shorthand
@php()
for Roots/Sage WordPress Template with html tag syntax highlight (#53)
- Syntax highlighting enhancement
- Add syntax highlighting for class static method
- Add
b:lang
snippet (#52)
- Fix tag attributes completition (#24)
- Fix comment issue in
script
,style
,php
block withCtrl + /
or⌘ + /
keymap shortcut (#25, #34)
- Support Envoy directives:
@setup
,@servers
,@task
,@story
,@finished
,@slack
(#41)
- Fix error in Blade Language Server (#46)
- Fix extensionPath of undefined (#47)
- Emmet setting changed (#48)
Settings below for blade is no longer needed.
"emmet.includeLanguages": { "blade": "html" },
- Fix blade syntax broken with VSCode 1.20.0 release (#42)
- Modify the highlight, add to the style and script autocomplete (@tiansin - PR #43)
- Fix javascript autocompletion not working in script tag (#39)
- Add
b:unless
snippet
- Fix spaces on format (#40)
- Enable format selection (#10)
- Enhance blade format (#32, #36)
- Add
blade.format.enable
configuration setting for manual enable blade file format. (#30)
"blade.format.enable": true,
- Add
@includeFirst
directive - Add
b:includeFirst
snippet - Fix minor syntax issue
- Fix indent issue #9, #35 (@izcream - PR #38)
- Fix minor whitespace inconsistencies (@raniesantos - PR #28)
- Update syntax highlighting
- Added
Document Highlight Provider
andDocument Format Provider
(@TheColorRed - PR #17)
Laravel 5.4 blade directives & snippets:
- Add
@isset
,@empty
,@includeWhen
directives - Add
b:isset
,b:empty
,b:includeWhen
snippets
Laravel 5.5 blade directives & snippets:
- Add
@auth
,@guest
,@switch
,@case
,@default
directives - Add
b:auth
,b:guest
,b:switch
snippets
Syntax Enhancement
- Change grammar of blade directive (@mikebronner - PR #23)
- Update README (#18, #19)
- Fix syntax parse failed (#5)
- Add
@can
and@cannot
related directives (#4) - Add
b:can
,b:can-elsecan
,b:cannot
,b:cannot-elsecannot
authorizing snippets (#4) - Add
lv:mix
helper - Fix for loop snippet
- Enhance blade syntax highlighting
- Fix loop snippets
- Fix extra slashes in
lv:*
helper snippets
- Support
@component
and@slot
directive added in Laravel 5.4 - Fix #3 issue
Support new directive added in Laravel 5.3
In some situations, it's useful to embed PHP code into your views. You can use the Blade @php
directive to execute a block of plain PHP within your template:
@php
//
@endphp
If you attempt to @include
a view which does not exist, Laravel will throw an error. If you would like to include a view that may or may not be present, you should use the @includeIf
directive:
@includeIf('view.name', ['some' => 'data'])
Update language mode recognition and emmet setting for VS Code 1.5+
Support Laravel 5.3 blade syntax
@verbatim
- displaying JavaScript variables in a large portion in template
@verbatim
<div class="container">
Hello, {{ name }}.
</div>
@endverbatim
$loop
variable : index, remaining, count, first, last, depth, parent
$loop->index
$loop->remaining
$loop->count
$loop->first
$loop->last
$loop->depth
$loop->parent
- Add pagination links helper snippet:
lv:pagination-links