laravel-blade-snippets-vscode
laravel-blade-snippets-vscode copied to clipboard
Highlighting pure `css`/`js` blade files
https://github.com/shufo/vscode-blade-formatter/issues/884
Description
- I sometimes generate CSS/JS that contain configuration by users.
- And I usually save them as
style-css.blade.php, which renders as astyle.css - Likewise,
script-js.blade.php, which renders intoscript.js
The problem is, these files cannot have <style> nor <script> and as a result, this highlighter does not know how to handle them.
Suggested Solution
Have flags {{-- js-formatter-enable --}} and {{-- js-formatter-disable --}} that highlighter everything in between as JS
Do the same for CSS