code-beautifier.tmbundle
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:An abandoned Textmate bundle for indenting code
# Code Beautifier Textmate Bundle

**Warning:** _I no longer use Textmate and so this is effectively abandonware_

Textmate's indent functionality does a reasonable job of formatting your code BUT there is a great deal of room for improvement.

Code Beautifier only supports Ruby at present but does improve upon Textmate's indent functionality, in particular it is better at indenting multiline statements and cleans up white space.

## Installation

If you have git installed your machine then run this:

    cd ~/Library/Application\ Support/TextMate/Bundles
    git clone git://github.com/mocoso/code-beautifier.tmbundle.git Code\ Beautifier.tmbundle

Otherwise download the [zip][] or [tarball][] and unpack it in ~/Library/Application\ Support/TextMate/Bundles.

  [zip]:http://github.com/mocoso/code-beautifier.tmbundle/zipball/master
  [tarball]:http://github.com/mocoso/code-beautifier.tmbundle/tarball/master

Then select 'Bundles > Bundle Editor > Reload Bundles' from Textmate's menus

## KNOWN ISSUES

 - Does recognize strings with custom delimiters
 - Does not handle multiline blocks within implied brackets
 - Does not indent continuing line statements within brackets correctly

## Credits

This was based on the [ruby beautifier script][rbs] by Paul Lutus and [Beautiful Ruby in Textmate][brit] by Tim Burks

  [rbs]:http://www.arachnoid.com/ruby/rubyBeautifier.html
  [brit]:http://blog.neontology.com/posts/2006/05/10/beautiful-ruby-in-textmate

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。