[LRUG] html.erb formatter

Andy Waite andy at andywaite.com
Fri Jan 11 04:29:45 PST 2013


On 11 January 2013 10:56, Viktor Trón <viktor.tron at gmail.com> wrote:

> Does anyone know of a html beautifier (reformatter, codetidy script,
> library, gem) that can handle erb?
> to my honest surprise my searches only showed up these:
>
> -
> https://github.com/urubatan/gedit_formatter/blob/master/code_formatter/erbbeautifier.rb
> - https://github.com/hosh/htmlbeautifier
>
> (the context is I recently switched to Sublime Text 2 and want to hack
> this into the BeautifyRuby plugin, which falls short)
>
> your help appreciated
>

I looked a while ago and found that many of them choke on the Ruby 1.9 hash
syntax. In the end I used RubyMine just as a one-off to tidy up the whole
project.

Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130111/bec7a889/attachment.html>


More information about the Chat mailing list