I have built a prettier plugin to format .html.erb files

Hey guys,

I know there is already htmlbeautifier, but the last time I tried it there were some quirks that I didn't like.

I have already released eex (Elixir) plugin and as far as I know it works.

Erb plugin wasn't that much more work and so far it works for me.


Readme is a bit lacking, so if you have any questions, feel free to ask me.

4 thoughts on “I have built a prettier plugin to format .html.erb files”

  1. I have no idea how to use it… Is it a script to run that will make my erb files look better in terms of brackets/lines/tabs…? Is it a plugin for Atom or VSCode?

  2. Edit: got prettier AND this plugin working well thanks to /u/DisownedWeasel below. So much quicker than using Rubocop. Thank you!

    I haven’t been able to get Prettier to work at all w/ Ruby in VSCode and I’ve scrapped it all together at this point. Does anyone have a `plugin-ruby` explainer? I’d love to figure out how to get it to work unilaterally so I don’t have to rely on Rubocop


Leave a Comment