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

Phpstorm syntax highlighting for blade directive #16

Open
iainheng opened this issue Feb 25, 2017 · 6 comments
Open

Phpstorm syntax highlighting for blade directive #16

iainheng opened this issue Feb 25, 2017 · 6 comments

Comments

@iainheng
Copy link

Is there anyway we can have syntax highlighting for blade directive e.g @form_label, @form_widget?

image

Or do we have helper methods to generate form label, widget and etc?

@barryvdh
Copy link
Owner

Can you add them in phpstorm settings? Not really sure

@iainheng
Copy link
Author

I added them in phpstorm blade directive but they aren't pick up by IDE's syntax highlighter.

@kasparsklavins
Copy link
Contributor

kasparsklavins commented May 10, 2017

Appears to be a problem with snake_case directive names.

Renaming directives to camelCase would solve this issue. It would also fit better with laravels naming conventions (e.g., includeIf and not include_if)

@barryvdh
Copy link
Owner

Can you Pr?

@barryvdh
Copy link
Owner

I guess we could support both in the current dev, remove the snake case in the next version bump.

@kasparsklavins
Copy link
Contributor

Maybe

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

3 participants