Comments (5)
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.
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.
@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.
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.
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
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)
- @if formatting is not working HOT 8
- `unknown directive` on custom blade directives HOT 13
- `@endforeach` autocompletion not working HOT 1
- `Unclosed @if` when `@endif` exists HOT 1
- `mismatched input (` error on working blade HOT 1
- No highlight open tags `@canany`/`@endcanany` when selecting end tags HOT 1
- Custom `@end` prefix tag could have arguments, and if they start witn `end` stops highlight HOT 2
- `extraneous input <EOF>` in a correct blade file HOT 1
- `@include` path suggestions problem HOT 1
- Declaration finder gets stuck when changing Projects HOT 1
- `@can/@canany` skipped on navigation bar
- Bad indenting after component tag opening
- Missing highlighting in blade core/custom attributes HOT 2
- BUG - parser error for `@empty` block HOT 1
- TAB not working after html close tag HOT 2
- Livewire location
- Weird highlight on double quotes HOT 9
- a directive statement block should be commented on Ctr^/
- `@can` and `@endcan` with no content shows mismatched input error
- too many tokens for antlr lexer inside foreach
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netbeans-php-blade-plugin.