Git Product home page Git Product logo

Comments (5)

angeljqv avatar angeljqv commented on June 5, 2024 3

that would be great 👍

Also there are custom directives which have closing tags
For example: laravel-permission

https://github.com/spatie/laravel-permission/blob/20dd894eb64e5b02de9dfa28aa13af0643b2e456/src/PermissionServiceProvider.php#L88-L100
@role @elserole @endrole

https://github.com/spatie/laravel-permission/blob/20dd894eb64e5b02de9dfa28aa13af0643b2e456/src/PermissionServiceProvider.php#L102-L109
@hasrole @endhasrole

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024 2

It's not yet implemented, but I think it can be developed like a project option where paths to php files with custom directives are added.

from netbeans-php-blade-plugin.

angeljqv avatar angeljqv commented on June 5, 2024 1

@haidubogdan amazing, thank you, works great

Maybe it is not possible, but what about this idea

It doesn't work with relative paths
Files with custom directives always are inside project root path, so, we can use relative paths instead of absolute paths(same with views path)

After that, what if instead of saving in private.properties it save it in project.properties, so it could be on the repository tree,
everyone with the plugin could use custom directives autocompletion automatically

It is just an idea, it is working now, thanks

from netbeans-php-blade-plugin.

angeljqv avatar angeljqv commented on June 5, 2024

custom directive file configuration - here you can add a php file where you define the new directive. So far just the name autocomplete is available. No declaration link feature or parameter hint is available.

Where is that?? on options?? i can't find the option

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024

Hi sorry for the late answer. I didn't have time to work on the plugin for some while and I noticed the custom directiveautocomplete flow was buggy

The Option for custom directive file path is in Project Properties
image
After adding the file to the list, on the blade template autocomplete process you should have the hint for custom directives names.
The method directive from such a service file can be static or direct.

from netbeans-php-blade-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.