# Scite and rubyw

**URL:** <https://www.ruby-forum.com/t/scite-and-rubyw/89639>\
**Category:** Ruby\
**Created:** [March 21, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/scite-and-rubyw/89639 "2007-03-21T20:30:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 21, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/scite-and-rubyw/89639/1 "2007-03-21T20:30:28Z")

</div>

Hi,

I aiming to run a script within scite, but I am trying to hide the  
command shell.

Is there anyway I can associate the rubyw interpreter with scite to  
achieve this on a windows platform?

I have tried to change the file properties to rubyw.exe, and also  
adding rubyw.exe the Ruby system path

aidy

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 21, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/scite-and-rubyw/89639/2 "2007-03-21T20:46:31Z")

</div>

Scite is very customisable.

I think it’s in global options or in ruby options that you can choose  
to associate commands with menu options (and optionally give them  
shortcuts).

I had once options for “run”, for “run debugger” AND for “run with  
rubyw”.

Aur

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 22, 2007, 3:55am UTC](https://www.ruby-forum.com/t/scite-and-rubyw/89639/3 "2007-03-22T03:55:18Z")

</div>

Hi,

> I aiming to run a script within scite, but I am trying to hide the  
> command shell.
> 
> Is there anyway I can associate the rubyw interpreter with scite to  
> achieve this on a windows platform?

In your ruby.properties:

command.go.$(file.patterns.rb)=rubyw.exe $(FileNameExt)

Take care,  
-Mitchell;

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 22, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/scite-and-rubyw/89639/4 "2007-03-22T13:56:20Z")

</div>

On Mar 21, 10:54 pm, mitchell [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> In your ruby.properties:
> 
> command.go.$(file.patterns.rb)=rubyw.exe $(FileNameExt)
> 
> Take care,  
> -Mitchell;

I have it set up two handle both so when I execute an \*.rb file it  
executes with ruby.exe and  
when I execute a \*.rbw it executes with rubyw.exe

The SciTe site has details on setting up commands in the properties  
file.

cheers  
Chris

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 22, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/scite-and-rubyw/89639/5 "2007-03-22T15:30:39Z")

</div>

Since a “picture” is worth a thousand words, here’s the commands I  
have in my ruby.properties:

command.go._.rb=ruby -w $(FileNameExt) $(1) $(2) $(3) $(4)  
command.go.subsystem._.rb=1  
command.go._.rbw=rubyw -w $(FileNameExt) $(1) $(2) $(3) $(4)  
command.go.subsystem._.rbw=1  
command.help.$(file.patterns.rb)=$(CurrentWord)!c:\chris\ruby\doc  
\ProgrammingRuby.chm  
command.help.subsystem.\*.rb=4  
command.name.1.$(file.patterns.rb)=Check Syntax  
command.1.$(file.patterns.rb)=ruby -cw $(FileNameExt)  
command.name.2.$(file.patterns.rb)=Code Profiler  
command.2.$(file.patterns.rb)=ruby -r profile $(FileNameExt)  
command.name.3.$(file.patterns.rb)=Code Formatter  
command.3.$(file.patterns.rb)=ruby -w U:/Chris/chris/dev/rbeautify/  
rbeautify.rb $(FileNameExt)  
command.name.4.$(file.patterns.rb)=RubyScript2Exe  
command.4.$(file.patterns.rb)=ruby -w U:/Chris/chris/dev/rs2exe/  
rubyscript2exe.rb $(FileNameExt)  
command.name.5.$(file.patterns.rb)=Ri Docs  
command.5.$(file.patterns.rb)=ri.bat $(CurrentWord)  
command.name.6.$(file.patterns.rb)=VisualuRuby Help  
command.6.$(file.patterns.rb)=rubyw -e “exec(‘start C:/chris/ruby/doc/  
VRuby/vrswin-en.chm’)”  
command.name.7.$(file.patterns.rb)=FRi Docs  
command.7.$(file.patterns.rb)=fri.cmd $(CurrentWord)

cheers  
Chris
