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

Blade template syntax highlighting #9

Open
web-engineer opened this issue Jul 16, 2014 · 14 comments
Open

Blade template syntax highlighting #9

web-engineer opened this issue Jul 16, 2014 · 14 comments
Labels

Comments

@web-engineer
Copy link

Question for you - are there plans to support blade syntax highlighting with this plugin, this was the main reason why I looked to a plugin for laravel support assuming this would be a significant area of improvement.

I notice laravel4-blade was started to cover this but it doesn't look like the author got very far with their efforts.

@junichi11
Copy link
Member

Question for you - are there plans to support blade syntax highlighting with this plugin, this was the main reason why I looked to a plugin for laravel support assuming this would be a significant area of improvement.

@jtakakura Do you support this?

@web-engineer I've looked at the source code of the plugin. Probably, That plugin just provides support for comment. Others, do nothing at the moment.

@web-engineer
Copy link
Author

I'd be happy to help with this if I can, would really complete the package since netbeans is pretty dreadful for editing blade files presently and getting insight at that level would be awesome!

@swissmant
Copy link

It would be great if you are able to add this. It is pretty frustrating editing blade templates using NetBeans right now. Thanks!

@Monomachus
Copy link

@tmysik This is the issue I was talking about in the email

@web-engineer
Copy link
Author

Thank you for your email, I'm currently on leave and will be back on Tuesday 28th April.

If your in urgent need of assistance please telephone the office on 01392 253304.

Many thanks

@tmysik
Copy link

tmysik commented Apr 27, 2015

I see one major problem here - Blade files are stored as PHP files, at least that is my undestanding based on [1]. This is "wrong" since the Blade content apparently is NOT a PHP file (much better would be to use a new file extension, .blade for example). In other words, I am not sure whether will be possible to create embedding for Blade into PHP MIME type (PHP files) in NetBeans.

Thanks.
[1] http://laravel.com/docs/4.2/templates

@Monomachus
Copy link

@tmysik Can't we somehow tell NetBeans that everything with .blade.php should be processed as an extension that is different from .php?

@tmysik
Copy link

tmysik commented Apr 27, 2015

I am not sure but it might work, maybe.

@junichi11
Copy link
Member

Perhaps, if we use MIMEResolver[1], it will be resolved.(Sorry if I'm wrong) But I think that we have to learn many things if we implement this feature. e.g. how to use lexer and parser (jflex, antlr, e.t.c.). Need many time for it.

[1] http://bits.netbeans.org/dev/javadoc/org-openide-filesystems/org/openide/filesystems/MIMEResolver.html

@tmysik
Copy link

tmysik commented Apr 27, 2015

Yes, using MIME resolver with "high" (in fact, low) position will do that. But still, there will be troubles with the PHP + embedding IMO.

@junichi11
Copy link
Member

@tmysik Thanks for your comment 😄

@Chris2011
Copy link

NetBeans or this plugin needs full laravel support. That mean *.blade.php file extension should treated as a new mimetype like text/laravel+php+html or smth like that. Like we have it for twig. And Syntax highlighting for the blade syntax. Any other features can be found here: https://blog.jetbrains.com/phpstorm/2014/08/blade-template-engine-support-in-phpstorm-8-eap/

This is really missing.

@haidubogdan
Copy link

Hi all,
I started working on a blade plugin : https://github.com/haidubogdan/netbeans-php-blade-plugin
It is still experimental, and it works just for Netbeans 12.3 and 12.5.
I will have to see how I can adapt for previous versions.

@Chris2011
Copy link

@haidubogdan great news. Just let us know, what we can do here to help you :). I will just test it as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants