[ 
https://issues.apache.org/jira/browse/NETBEANS-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17462591#comment-17462591
 ] 

Haidu Bogdan commented on NETBEANS-503:
---------------------------------------

I started to work on a plugin.

A stable version is on : 
[https://github.com/haidubogdan/netbeans-php-blade-plugin]

but it's still a sketch solution.

And a upgraded version is started on 
[https://github.com/haidubogdan/netbeans-php-blade-plugin/tree/v2.0.1|https://github.com/haidubogdan/netbeans-php-blade-plugin/tree/v2.0.1.]

It will take some time until I clean and refactor v2.0.1 but I hope I will make 
a stable version at the end of january next year.

The embedding is also tricky. (so far I've used PHPTokenId.languageInPhp() for 
embedding to avoid bracket exception errors)

The new version will have

navigator for directive statements

using Indexing there is also the possiblity of

declarationFinder for section statements

codecompletion of blade files and directive tags

!blade_navigator.png|width=518,height=127!!code_completion.png|width=391,height=447!

> Please support blade template engine for laravel
> ------------------------------------------------
>
>                 Key: NETBEANS-503
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-503
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Editor, php - Formatting & Indentation
>    Affects Versions: Next
>            Reporter: Christian Lenz
>            Assignee: Haidu Bogdan
>            Priority: Major
>         Attachments: blade-phpstorm.png, blade_navigator.png, 
> code_completion.png
>
>
> Atm, NetBeans does not support laravel out of the box, therefore, NetBeans 
> does not support the blade template engine. Blade templates are set to 
> foo.blade.php.
> So therefore, we need a new filetype which has the extension .blade.php and 
> it should support: PHP, Blade Templates, HTML (Don't know whether jade is 
> needed too or not), CSS, JS. See the screenshot from PHPStorm, they already 
> supports Blade.
> Yes it should be possible to have PHP inside too. This is an official 
> statement from the developers:
> *Blade is the simple, yet powerful templating engine provided with Laravel. 
> Unlike other popular PHP templating engines, Blade does not restrict you from 
> using plain PHP code in your views. In fact, all Blade views are compiled 
> into plain PHP code and cached until they are modified, meaning Blade adds 
> essentially zero overhead to your application. Blade view files use the  
> .blade.php file extension and are typically stored in the resources/views 
> directory.*
> The folder is not relevant, it should be possible in every folder. So Syntax 
> highlighting, code completion for each type of the language should be 
> possible in that filetype, like in a normal HTML file.
> Cheers
> Chris



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to