pebble-intellij
pebble-intellij copied to clipboard
Support for Code Style
Hi
I'm experimenting with Pebble and found your plugin. I saw you already had an issue about autocompletion, thx for working on it!
I was wondering if it would be possible for the peb (and .html.peb, ...)-extension to use the same Code Style's as HTML?
Kind regards, Yannick
I think there are actually two features to implement:
- format the templated language parts (HTML, etc.) according to the language's own code style settings
- format Pebble parts according to Pebble code style settings (which I have to make configurable in the project settings)
The plugin will now let the IDE reformat the templated parts. I still need to add a formatter for Pebble expressions. I uploaded a snapshot of the next version here (in the 'Nightly' tab), if you want to test the current version of the plugin.
@bjansen just wanted to thank you for the plugin. I had a problem with Pebble+XML templates: IDE recognized XML syntax only partially and didn't allow me to collapse/expand XML tags. Stumbled upon this discussion, installed 0.3 snapshot and looks like the problem is gone :)
Oh well I guess I definitely need to release that version, then :) Thanks for your feedback, and please let me know if you encounter other issues.