-
Notifications
You must be signed in to change notification settings - Fork 8
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
recognize .pebble files, and customize recognized extensions #56
Comments
Most of the tests and documentation in https://github.com/PebbleTemplates/pebble use the
Not sure I understand your use case. The only case I'm aware of is |
yes
hmm... then it's unfortunate that spring uses .pebble, still might be good to support it out of the box |
You might be looking for language injection, which I just tested on a random test class in the Pebble repo. Put your cursor on the String argument passed to This can be modified later on in |
since pebble doesn't document .peb which I'm arguing for documenting a standard file extension in that upstream ticket. It might be good to document it somewhere visible in the plugin itself. Outside of this and supporting |
I can definitely pre-configure the missing extension + language injection in |
see PebbleTemplates/pebble#553
.pebble
is the default for spring, I'm not using spring, but I'm using pebble for scaffolding, with files such as java templates. Since the extension is customizable, it makes sense to allow a list of file extensions as well (since you may have more than one engine active).Lastly like SQL in Intellij IDEA ultimate, if it's not possible yet, allow highlighting of pebble in strings in a given file extension (for tests and such), I think this could/should be configurable per file, or maybe from a root path (my entire project doesn't use pebble). If you want I can make another ticket for this, but since I'm not certain if it's already possible I haven't.
The text was updated successfully, but these errors were encountered: