pebble-intellij icon indicating copy to clipboard operation
pebble-intellij copied to clipboard

Support for Code Style

Open yvanavermaet opened this issue 7 years ago • 4 comments

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

yvanavermaet avatar Jan 24 '17 16:01 yvanavermaet

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)

bjansen avatar Aug 30 '17 13:08 bjansen

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 avatar Sep 04 '17 11:09 bjansen

@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 :)

leveluptor avatar Oct 27 '17 11:10 leveluptor

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.

bjansen avatar Oct 27 '17 14:10 bjansen