On 11 January 2013 10:56, Viktor Trón <span dir="ltr"><<a href="mailto:viktor.tron@gmail.com" target="_blank">viktor.tron@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div>Does anyone know of a html beautifier (reformatter, codetidy script, library, gem) that can handle erb?<br></div>to my honest surprise my searches only showed up these:<br><br>- <a href="https://github.com/urubatan/gedit_formatter/blob/master/code_formatter/erbbeautifier.rb" target="_blank">https://github.com/urubatan/gedit_formatter/blob/master/code_formatter/erbbeautifier.rb</a><br>


- <a href="https://github.com/hosh/htmlbeautifier" target="_blank">https://github.com/hosh/htmlbeautifier</a><br><br></div><div>(the context is I recently switched to Sublime Text 2 and want to hack this into the BeautifyRuby plugin, which falls short)<br>


<br></div>your help appreciated</div></blockquote><div><br></div><div>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.</div>

<div><br></div><div>Andy</div></div>