Hi,
I have tried to do search but couldn't find a solution for this, so any assistance would be helpful. I want to be able to create a comment box round a selection - say round the text "comment box" as below (Eg shown uses Stata style comments). I need functionality primarily for use in the R and Stata bundles. Thanks in advance for any leads.
/************** * * * comment * * box * * * * * **************/
danstan
On 11/5/06, xolela@mac.com xolela@mac.com wrote:
Hi,
I have tried to do search but couldn't find a solution for this, so any assistance would be helpful. I want to be able to create a comment box round a selection - say round the text "comment box" as below (Eg shown uses Stata style comments). I need functionality primarily for use in the R and Stata bundles. Thanks in advance for any leads.
/**************
*
- comment *
- box *
*
*
**************/
Try this keyboard shortcut: control-shift-b, or Bundles -> Source -> Insert Comment Banner.
Hi Ivan,
I had tried that earlier. It does not do what I want ie it gives:
* ============ * = comment box = * ============
I have the tcl proc - attached below - (originally by Vince Darley) that does what I want in alphax & I am sure that it can be converted for use in textmate by someone that has more knowledge of ruby than I do.

On Nov 5, 2006, at 11:31 PM, Ivan Pan wrote:
On 11/5/06, xolela@mac.com xolela@mac.com wrote:
Hi,
I have tried to do search but couldn't find a solution for this, so any assistance would be helpful. I want to be able to create a comment box round a selection - say round the text "comment box" as below (Eg shown uses Stata style comments). I need functionality primarily for use in the R and Stata bundles. Thanks in advance for any leads.
/**************
*
- comment *
- box *
*
*
**************/
Try this keyboard shortcut: control-shift-b, or Bundles -> Source -> Insert Comment Banner.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 6. Nov 2006, at 06:01, xolela@mac.com wrote:
I had tried that earlier. It does not do what I want ie it gives: [...]
It is for single lines only, yes.
I have the tcl proc - attached below - (originally by Vince Darley) that does what I want in alphax & I am sure that it can be converted for use in textmate by someone that has more knowledge of ruby than I do.
Port 160 lines of tcl code? I think just writing something from scratch is easier, here’s a simple 5-line version. It has hardcoded comment characters and is unfortunately not UTF-8 aware (as there seems to be no version of ljust for this).
Brilliant Allan!!!
This works perfectly fine for me!...
Just emphasizes what a wonderful tool textmate is..(esp. when wielded by someone with some knowhow....).... Its almost unbelievable that what took 160 lines to achieve can be done in 5 lines...
You guys behind textmate are the best!!!....
danstan
On Nov 6, 2006, at 12:35 AM, Allan Odgaard wrote:
<Wrap in Comment Box.tmCommand>