From: Holden Glova Date: 2001-08-18T10:03:12+09:00 Subject: [ruby-talk:19963] Re: TIP: invoking help from the scite editor on win32 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, 18 Aug 2001 11:38, Bernard Delm�e wrote: > Right, suppose you're a Win32 user (there goes half the crowd...) > Then you probably already know about the HTML Help version of > the pragmatic programmers' book "Programming Ruby". It is bundled > with the latest ruby distributions Andy has prepared, or can be > grabbed at http://www.bdelmee.easynet.be/ruby/index.html > > There is an easy way to look it up from within the very capable > Scite editor, which has ruby color highlighting since version 1.38 > http://www.scintilla.org/SciTEDownload.html > > Once you've installed scite, edit its $SCITE_HOME/ruby.properties > file, and add the following three lines: > > --------><-------- > if PLAT_WIN > command.help.*.rb=$(CurrentWord)!c:\ruby\ProgrammingRuby.chm > command.help.subsystem.*.rb=4 > --------><-------- > > Of course this assumes you've wisely let the ruby installation > happen under 'C:\Ruby'. > From then on, hitting the key from a scite buffer with a ruby > file loaded will invoke the help viewer with an index entry > selected that begins with the word currently highlighted. You then > need to hit the button or double-click the index entry. > > This is not context sensitive; if you have hilighted a call to > the 'close' method, the above method would present you with the > 'close (dir)' entry whereas you may actually be interested in > 'close (network)'. But scite does not know whether the object on > which the method is invoked represents a directory, a socket > or a wombat! Still I thought I'd share the trick. > And oh, I suggest you leave the help file open, so you wont > need to launch the help viewer for each word lookup. > > HTH, > > Bernard. This is quite cool - thanks for sharing it. I've recently started using SciTE and am very impressed with this small compact little editor. - -- Signed, Holden Glova -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7fb31+mF116Lw2cQRAu37AJ9UPj1p2y+rHunAlUA4vaSfQW1CeQCeJEju BAYfobMIf7VsqpLl3cN8V/w= =oQrC -----END PGP SIGNATURE-----