I am wondering if there is an existing solution for the following problem:
I have the following code:
<div> <div> <div><%= {:something => 'abc', :else => 'abc', :nice => 'ok'} %> </div> </div> </div>
As you can see, it is untreated and hard to read. I was wondering if there is an existing tool in the ruby ββthat can re-document the document (no changes or validity to the source). Just a reindent.
Expected Result:
<div> <div> <div> <%= {:something => 'abc', :else => 'abc', :nice => 'ok'} %> </div> </div> </div>
Also, on the side, I donβt want to implement this as a command in Textmate.
source share