[TxMt] “Reformat Comment” command for Ruby bundle

Daniel Harple dharple at generalconsumption.org
Tue Aug 22 17:57:23 UTC 2006


This command overrides reformat paragraph in the comment.line.number- 
sign.ruby scope. Here is the description given by rubywrap.rb:

# RubyWrap is a word wrapper utility designed for ruby scripts.  It  
should,
# however work for any programming language which uses an initial  
prefix for
# comments (see --prefix).  RubyWrap correctly handles indented  
comments,
# indented text within comments, header comments, and many forms of  
lists.  It
# will also pass through code without change and detabify.

Any interest in adding this to the Ruby bundle?

rubywrap.rb goes in Ruby.tmbundle/Support/bin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubywrap.rb
Type: text/x-ruby-script
Size: 13967 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060822/9ef66262/attachment.rb>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Reformat Comment.tmCommand
Type: application/octet-stream
Size: 924 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060822/9ef66262/attachment.tmCommand>
-------------- next part --------------

-- Daniel



More information about the textmate mailing list