Comments (7)
@sven-ahrens Hi, can you check your format setting?
I have two blade formatter installed, either won't break the syntax
from laravel-blade-snippets-vscode.
@sven-ahrens I noticed that your input tag does not close properly
from laravel-blade-snippets-vscode.
@sven-ahrens I noticed that your input tag does not close properly
Hey, first of all: Thank you so much for replying.
You are right, my example is missing the closing tag but in my "real" code it doesn't. I checked that right now.
and it turns into:
Also I've selected your formatter:
Versions
- Visual Studio Code: 1.65.0
- Laravel Blade Snippets: v1.31.0
- macOS: Monterey 12.2.1
from laravel-blade-snippets-vscode.
I'm not sure if it breaks because of the force-expand-multiline
but I've made an easier example outside of my project and this is leading to the same result:
<div>
<label></label>
<input type="radio" name="test" value="1" @checked($test->works()) />
</div>
<div>
<label></label>
<input
type="radio"
name="test"
value="1"
@checked($test-
>works()) />
</div>
from laravel-blade-snippets-vscode.
@sven-ahrens How about change force-expand-multiline
to force-aligned
. This may fit your needs.
from laravel-blade-snippets-vscode.
@sven-ahrens How about change
force-expand-multiline
toforce-aligned
. This may fit your needs.
I'm coming from Vue background and I'm used to have them exactly like in my example.
I tried your version out and yes this works but it seems like it's a bug then, isnt it?
The formatter will break when having force-expand-multiline
activated
from laravel-blade-snippets-vscode.
@sven-ahrens Blade formatter is build based on HTML formatter. However, php syntax is not treat the same way as html.
Since the new directive @check() comes out, it is not like simple key-value attributes that recognized by HTML formatter.
I think that's why it treat php syntax ->
the part >
as close tag.
from laravel-blade-snippets-vscode.
Related Issues (20)
- Blade Snippets expand with two @ symbols when selected via Intellisense HOT 1
- Add syntax highlighting to heredoc/nowdoc
- Enable laravel-blade-snippets to run on VS Code on the Web HOT 3
- Syntax highlighting breaks after @php HOT 1
- Variables in style don't have syntax highlight.
- Syntax Highlighting for Laravel 9 Slot Name Shortcut HOT 2
- No syntax highlighting for component from a package HOT 2
- Disable snippets HOT 1
- space after double quotes HOT 6
- HTML autoclose doesn't work (html.autoClosingTags) HOT 2
- Disable formatting in specific directories (i.e. resource/views/email) HOT 2
- Autocompletion in <script> tag does not work HOT 1
- Highlighting custom blade extensions. HOT 1
- Color highlight in attribute HOT 1
- Tailwind color decorators not working HOT 1
- Error emmet HOT 1
- Space Added to Tailwing Responsive Class Colon After Save HOT 1
- highlighting doesn't work within <style> tag HOT 1
- Laravel Blade Snippets html tag features and the blade formatter are not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-blade-snippets-vscode.