Philippe Lhoste wrote:
On 19/06/2007 04:12, Doyle Whisenant wrote:
Hi, I use the lua code above in SciTE all of the time. Now since
upgrading to 1.74, the code doesn't work. What do I need to change in
order for this to work in Version 1.74 (with lua5.1?)
See:
http://article.gman
ortcut.47.*=Ctrl+T
...
...
--
Thanks!
Doyle Whisenant
[EMAIL PROTECTED]
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
hanks!
Doyle Whisenant
[EMAIL PROTECTED]
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
\scite-gdb\scite_lua\gdb.lua:261: attempt to call global
'loadlib' (a nil value)
I'm no guru but I found this:
Note: for Lua 5.1:
The loadlib() function has been moved into the package table, so you
must use package.loadlib() instead.
--
Thanks!
Doyle W
hrough all of
the open buffers and compare against a saved array of buffers.
Or am I missing something? I admit I've not kept up with all of the
recent changes so I am probably missing something vital.
Thanks for any info.
--
Thanks!
Doyle Whisenant
[
ld be considered if there was a very good case.
I would still like to see an OnClose event which is fired when an open
buffer is closed. This would allow a lot more flexibility when dealing
with buffers. Any serious overhaul of the extension interface should at
least consider this.
--
Thanks!
thanks,
bb
--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
mekanixx at gmail dot com
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
t the requirement of many users
Thank you, this works great until something better comes along. I
use: "explorer.exe" /n,/root,"$(FileDir)" which puts me in the
folder of the file that is being edited.
It's amazing how versatile SciTE really is!
--
Doyle Whisenant
htt
string value
I'll figure this out, most likely something I've done. ;-)
Thanks again!
--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic" at "sonet" dot "net"
___
Scite-interest mailing list
Scite-intere
April White wrote:
(This may be a re-post)
Doyle Whisenant wrote:
... I have used the user defined list feature to write custom tool
menus, for example all of the CVS tools (for work). Is this what you
want to do?
I'd be interested in this. Any example code?
Doyle, I have a b
April White wrote:
I am unsure if you want to do the change within SciTE or not. I have
used the user defined list feature to write custom tool menus, for
example all of the CVS tools (for work). Is this what you want to do?
I'd be interested in this. Any example code?
--
Doyle Whisenant wrote:
Hi, in the SciTE Director docs it states...
The actions understood by SciTE are:
...
...
extender: Call the extension interface with the given command.
Is this refering to the Scintilla.iface commands? Or? Anyone have
examples of how to use this in a director app
Hi, in the SciTE Director docs it states...
The actions understood by SciTE are:
...
...
extender: Call the extension interface with the given
command.
Is this refering to the Scintilla.iface commands? Or? Anyone have
examples of how to use this in a director app?
--
Doyle Whisenant
rtup. It will add each opened file to the list.
What you do with them is up to you. ;-)
I am not an expert with lua but this should help get you started.
--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic" at "sonet" dot "net"
_
y at line 20, not
be magically saved to line 15, out of sync with the file?
That's exactly what I'm trying to do. My "newbieness" with Lua is
proving difficult. You're right, I need to concentrate on saving
marks with a buffer save.
Thanks
--
Doyle Whisenant
http://ww
April White wrote:
Doyle Whisenant wrote:
Is there an event that I can use to run a lua script when SciTE is
closing similar to OnOpen? Is it possible to do this? If so, how?
I need to access all open buffers when SciTE closes. Anyone know of a
reliable way to do this?
Do you want when a
Is there an event that I can use to run a lua script when SciTE is
closing similar to OnOpen? Is it possible to do this? If so, how?
I need to access all open buffers when SciTE closes. Anyone know of
a reliable way to do this?
--
Doyle Whisenant
http://www.freewebs.com/mekdesign
FYI, anyone interested in trying out my lua implementation of a
bookmark load/save feature for SciTE can get the files here:
http://www.freewebs.com/mekdesign/testmarker.zip
Be kind, this is my first attempt. Seems to work here on Windows 98
but... ;-)
--
Doyle Whisenant
http
Neil Hodgson wrote:
Doyle Whisenant:
This will save keeping track of yet another file. Will
this mess up the *.ses files?
The *.ses file format will change in the future and additional
information in the file will not be handled when upgrading.
Any idea on what will change? Just
Kein-Hong Man wrote:
Doyle Whisenant wrote:
[snip]
function read_session()
local ln = 0
local n = 1
local bufferpath = props['FilePath']
local f = io.open("SciTE.ses", "r")
if not f then return nil end
for ln in f:lines() do
local s=f:read&qu
:close()
return true
end
If I comment out the line marked above, I get a count of 9 lines
which is correct. Otherwise, I get a count of 5 lines.
What am I doing wrong?
Sorry for the long post!
--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic" at "sonet&qu
ne ln:
editor:MarkerAdd(ln,SC_MARK_ROUNDRECT)
You can hook it on the events OnOpen, OnSave and store/restore it from
file.
Thanks Roman, I'll play with this when I have time.
--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic"
ed in this!
--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic" at "sonet" dot "net"
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
es, IMHO. Then again,
maybe it's just me!
--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic" at "sonet" dot "net"
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
Hi all,
I'm trying to implement a director interface for SciTE in my app
and want to know the best/easiest way to retrieve the names of all
opened files (buffers)in SciTE. Lua script? Or...
Any examples/hints would be nice, thanks.
--
Doyle Whisenant
http://www.freewebs.com/mekd
ne written a Lua script that autocloses the
output pane on a successful build?
i.e. If the phrase ">Exit code: 0" is the last line, automatically
close the output pane. Or is there another way?
Sorry, I'm to Lua fluent yet. Thanks!
--
Doyle Whisenant
http://www.freewebs
April White wrote:
Doyle Whisenant wrote:
Does this mean that one can have multiple tools executing one after
another with only one command? If not, is this possible?
No promises, I've only just cracked open the code...
Ultimately I feel the command system will be able to handle mul
Philippe Lhoste wrote:
Doyle Whisenant wrote:
It would be nice if this could be one command which executed each
in turn (if no errors - exit code 0).
And please, no *.bat files please!
Why ever not? Although I'd use make or scons or similar.
A batch file is just another file to
Neil Hodgson wrote:
Doyle Whisenant:
Does this mean that one can have multiple tools executing one after
another with only one command? If not, is this possible?
It may be but probably through a script rather than an extension to
command.*.
I use SciTE with BCX which means I need to
ed to:
1.) Run BCX to translate the *.bas file
2.) Run the compiler on the *.c file
3.) Optionally run the resource compiler
4.) Run the linker
It would be nice if this could be one command which executed each
in turn (if no errors - exit code 0).
And please, no *.bat files please!
--
;Make the target a Windows .DLL with all functions exportable."
-tWM, "Make a multithreaded application or DLL."
-tWR, "Target uses the dynamic runtime lib. Can use -D_RTLDLL instead."
-tWCR, "Target uses the dynamic runtime lib for CONSOLE apps."
HTH
--
Doyle
which writes to another temporary
file, which we then read. First thing to check is whether
the scite_other.dll has actually been loaded - it
should complain.
Ahh... I get it now. I'll play with this more when I have some free
time. I appreciate it!
Thanks a lot!
--
Doyle Whis
FILE_OUT,'r')
local n = f:read('*n') -- < error here
f:read()
if n == 1 then
our_window = f:read()
end
end
--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic" at "sonet" dot "net"
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
end
local cmd = 1
if other then cmd = 0 end
f:write(verb,':',arg,'\n')
f:write(cmd,' ',our_window,'\n')
f:close()
fn()
f = io.open(TEMP_FILE_OUT,'r')
local n = f:read('*n') -- < error here
f:read()
if n == 1
34 matches
Mail list logo