Home Download Buy Blog Forum Support

Ruby beautifier with unnecessary whitespace removal?

Ruby beautifier with unnecessary whitespace removal?

Postby Vishay on Wed Sep 07, 2011 2:02 pm

Great editor!

What's the simplest way to re-indent (beautify / pretty) ruby source code with unnecessary whitespace removal in Sublime Text 2 beta?

I noticed a textmate bundle at https://github.com/mocoso/code-beautifier.tmbundle

Can somebody post some hint for a new sublime user (and also a new ruby user) to accomplish such goal?
Vishay
 
Posts: 1
Joined: Wed Sep 07, 2011 1:57 pm

Re: Ruby beautifier with unnecessary whitespace removal?

Postby Rhywun on Fri Sep 09, 2011 12:33 am

The tmbundle may not work because those are often based on Unix shell scripts whereas Sublime plugins are written in Python. Maybe you can find a command-line pretty-printer, and automate that using a custom command.
Rhywun
 
Posts: 39
Joined: Fri Jun 24, 2011 3:19 am
Location: Brooklyn


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 17 guests