From: mitchell Date: 2006-07-04T00:11:05+09:00 Subject: Re: For SciTE Users: Snippets Marcus Andersson wrote: > Hello Mitchell, > > Looked on the screencasts and it's really nice. I installed scite > (windows) and downloaded your stuff. I downloaded all except /src (I'm > not that into compiling on windows). Do I need /src for other things? > > Everything seems to work except "functions" thingy. > > If I do > > def hello(msg) > puts msg > end > > hello(|) #pressing C+S+l, nothing happens > > #pressing C+A+l here and nothing happens > > I have functions.lua in /scripts. > > Everything else seems to work fine. Any ideas? > > /Marcus Make sure the file is saved as a Ruby file (.rb extension). Then the ruby.properties file will kick in. You can tell if a function is available by looking in the Tools menu. Note: Since you didn't compile from the src directory, a maximum of 50 commands are available to you. In the *.properties files for commands dealing with functions.lua, I have assigned those commands numbers 50 and 51. You'll have to change those numbers to be between 0 and 49. I'll make a note on the website. So if you want to be able to call tools from the functions.lua file on any file that is unsaved, you can copy the commands from ruby.properties to your user or global properties file, but be aware that subsequent calls to those commands work for only ruby code. Thanks for your interest! Take care, -Mitchell;