How can I pretty print erb in BBedit indenting rails tags and not just markup?

Posted by Andres Diez on Super User See other posts from Super User or by Andres Diez
Published on 2011-11-06T23:15:12Z Indexed on 2011/11/22 10:01 UTC
Read the original article Hit count: 314

I want to re-indent my code but the rails tags <% foo %> get aligned to the left with no indentation. What I'm using is:

markup > utilities > format > pretty print

Does anyone know if there is a way to reconfigure this behavior?


UPDATE:

I just found this out but cant seem to get it working:

"The 'Pretty print' option for Markup -> Utilities -> Format is now implemented internally using a Dreamweaver-style source format profile. This affords slightly prettier output than was possible before. Advanced users can override the factory format profile by placing an appropriately constructed file at ~/Library/Application Support/BBEdit/SourceFormat.profile."

I opened the bbedit app package, found the file, copied it to the folder indicated in "application support" and tweaked the desired indentation width just as a test before touching anything else, and it doesnt seem to do anything.

© Super User or respective owner

Related posts about format

Related posts about ruby-on-rails