amirmarmul / laravel-blade-vscode Goto Github PK
View Code? Open in Web Editor NEWLaravel Blade Snippets & Highlighter support Visual Studio Code
License: MIT License
Laravel Blade Snippets & Highlighter support Visual Studio Code
License: MIT License
Trying to use this plugin, auto indenting is not working on HTML code inside blade brackets
I believe it is in relation to this issue I found on the main VS Code site, as I ran the Inspection command suggested and the language does show up as "blade" language and not HTML. The suggested fix for the extension to identify the internal code as HTML.
microsoft/vscode#39142 (comment)
I verified I do have this config setting on my settings file per the documentation.
"emmet.includeLanguages": { "blade": "html" },
Hi!
Is there a way to skip formatting parts of the code? e.g. markdown areas etc
Something like https://github.com/shufo/vscode-blade-formatter#disabling-format-in-file
Thank you!
I installed this extension, but there's no blade file type to chose from, nor does the highlighting change to support blade โ It just defaults to php. Secondly, in the extensions manager, I can't disable or enable this extension. The only option is to uninstall.
VS Code 1.40.2
Here are some more details about OpenVSX, its goal, and why it was created
For that reason, I can't easily use your extension anymore, could you publish on OpenVSX too?
(It's typically just a matter of running npx ovsx publish
- you can also check the full guide for publishing)
Thank you so much for this awesome extension !
Do you know if there is a way to make linked editing work with blade files as it works with simple html files ?
tried to do formatting on controller.php via CTRL + SHIFT + F
or ALT + SHIFT + F
. nothing works
already set up the settings.json and reload vscode
If an @if statement's boolean expression uses a less than character (<
), it will cause of if statement to incorrectly auto-format all on one line.
Example:
{{-- This is fine - will format correctly --}}
@if (1 > 5)
A
@elseif (true)
B
@endif
{{-- This is not - will format it all on one line --}}
@if (1 < 5) A @elseif (true) B @endif @endsection
The formatter workers for the most part but it is interpreting Blade incorrectly from a javascript context, breaking the brackets because it thinks it is a javascript function and what not.
I suggest the formatter must check if there is a double bracket {{ or a bracket with double exclamation points {!! to avoid breaking it.
You can see the screenshots for reference:
Add the snippet for switch component
@switch($value)
@case(value)
@endcase
@default
@endswitch
I tested a few blade extensions. They all can't highlight correct code like this. Can you do anything about it?
@extends('lay')
@section('content')
@include('nav')
<style media="screen">
@if (Input::old('show'))
.hide_year {
display: table-cell;
}
@else
.hide_year {
display: none;
}
@endif
</style>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.