Easy one...
When I copy and paste code from my Agile Rails PDF file, the indentation gets totally lost and looks like this:
=========================== <h1>Display Cart</h1> <table> <% for item in @items product = item.product -%> <tr> <td><%= item.quantity %></td> <td><%= h(product.title) %></td> <td align="right"><%= item.unit_price %></td> <td align="right"><%= item.unit_price * item.quantity %></td> </tr> <% end -%> </table> ===========================
Is there an easy way to indent my code? I tried using tidy but it likes to convert my special chars into HTML entities which ruins my Ruby code.
Any solution?
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net