Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlighting pure css/js blade files #188

Open
bilogic opened this issue Nov 15, 2024 · 0 comments
Open

Highlighting pure css/js blade files #188

bilogic opened this issue Nov 15, 2024 · 0 comments

Comments

@bilogic
Copy link

bilogic commented Nov 15, 2024

shufo/vscode-blade-formatter#884

Description

  1. I sometimes generate CSS/JS that contain configuration by users.
  2. And I usually save them as style-css.blade.php, which renders as a style.css
  3. Likewise, script-js.blade.php, which renders into script.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

@bilogic bilogic changed the title Highlighting pure js/css blade files Highlighting pure css/js blade files Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant