Forum: Ruby scite and rubyw

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ee6788c2faaad7a5cd0bc466c9ea60d8?d=identicon&s=25 unknown (Guest)
on 2007-03-21 20:30
(Received via mailing list)
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
7b4707f974af261f71943e1f2046c9ee?d=identicon&s=25 SonOfLilit (Guest)
on 2007-03-21 20:46
(Received via mailing list)
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
5cd3a4f31b24b379e275a67a68739f5c?d=identicon&s=25 mitchell (Guest)
on 2007-03-22 03:55
(Received via mailing list)
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;
23172b6630dc631a134c9bad2fec2a39?d=identicon&s=25 ChrisH (Guest)
on 2007-03-22 13:56
(Received via mailing list)
On Mar 21, 10:54 pm, mitchell <mforal.n...@gmail.com> 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
23172b6630dc631a134c9bad2fec2a39?d=identicon&s=25 ChrisH (Guest)
on 2007-03-22 15:30
(Received via mailing list)
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
This topic is locked and can not be replied to.