https://github.com/namesmt/blade-php
[Blade Syntax for PHP] Visual Studio Code extension
https://github.com/namesmt/blade-php
Last synced: 6 months ago
JSON representation
[Blade Syntax for PHP] Visual Studio Code extension
- Host: GitHub
- URL: https://github.com/namesmt/blade-php
- Owner: NamesMT
- License: mit
- Created: 2021-03-19T19:27:38.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-03T11:29:45.000Z (about 2 years ago)
- Last Synced: 2025-04-02T12:50:00.022Z (about 1 year ago)
- Size: 1.4 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [Blade Syntax for PHP](https://marketplace.visualstudio.com/items?itemName=namesmt.blade-php)
##### Highly recommend to install: [Blade Color](https://marketplace.visualstudio.com/items?itemName=namesmt.blade-color)
> Unfortunately, Tabnine is recommended for now instead of the amazing Intelephense, as Intelephense doesn't support auto-complete for `Blade` blocks (`{{ }}`) yet
Blade syntax highlight support **for (in) `PHP`**.
> Use with Language Mode: `PHP`, so others `PHP` exts should work ([Intelephense](https://github.com/NamesMT/blade-php/blob/HEAD/vscode:extension/bmewburn.vscode-intelephense-client),...etc)
> Additionally, switch to Language Mode: `Blade` to highlight only `Blade` (and `PHP` inside of Blade) syntaxes
## Screenshot

## User Settings
TBA
Todo:
* Add keyboard shortcut to switch between PHP and Blade Language Mode
* When [#53885](https://github.com/microsoft/vscode/issues/53885) [#68647](https://github.com/microsoft/vscode/issues/68647) is solved, we can:
+ Enable/Disable the syntax in real-time, as well as a shortcut for it.
* **Your ideas?** (submit an github issue)
## Features
* `Blade` syntax highlight
* *More incoming <3*
## Blade Syntax Highlight
* Injected to PHP Language Mode!, just open any extension of `PHP` file
* Switch language mode to `Blade` (`Ctrl + K, M` or `⌘ K, M`)
+ Will leaves only `Blade` and it's sub-`PHP` codes to be highlighted, useful to debug/nav around large `@blade methods`
## Contact
Files any [issue(s)](https://github.com/NamesMT/blade-php/issues) or mail me: [trungdang6102@gmail.com](mailto:trungdang6102@gmail.com).
## Credits
* Blade language grammar is forked & picked from [onecentlin](https://github.com/onecentlin)
+ Checkout her [Blade](https://marketplace.visualstudio.com/items?itemName=onecentlin.laravel-blade)&[Laravel Snippets](https://marketplace.visualstudio.com/items?itemName=onecentlin.laravel5-snippets)
* Additional credits:
+ https://github.com/jawee/language-blade
+ https://github.com/Medalink/laravel-blade
## License
**MIT**