ruby on rails - Formatting ERB Templates automatically in textmate -


when writing erb templates in ruby on rails using textmate formatting hand pretty sucks.

do know of textmate bundle handles formatting of erb templates/views? googling has found nothing. thanks!

i think best solution use html (rails) bundle. , when want tidy something, you'll need go bundles menu > html > tidy.

that coupled indent selection (--[) , handles of reformatting needs.

note: unfortunately, when in html (rails) bundle, normal tidy shortcut --h gets overridden , instead launches "create partial selected text" when in *.html.erb file. i'm sure there's way change hasn't been big enough deal me investigate.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -