lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Wim Couwenberg wrote:
Well, I use SciTE 1.57 on both Windows and Linux
(Slackware) platforms, with Lua5, and SciTE it works fine for me.

I use SciTE 1.59 on Windows and it works fine (*).  I
patched three files though:

1.  scintilla/src/LexLua.cxx to fold the repeat ...
until statement.

Good idea.

2.  scintilla/src/LexOthers.cxx to recognize Lua 5
error messages in the message window.

Silly me. I implemented the recognition of Lua 4 messages here, but I forgot to update to Lua 5...

3.  scite/src/SciTEBuffers.cxx to extract file name
and line number from a Lua 5 error message.

You should, if not already done, submit these changes to Neil. Thanks for the other people editing Lua with SciTE :-)

Note: this covers the editing of Lua programs with SciTE, not the embedding of Lua within SciTE to run macros/scripts. This feature will allow SciTE to be listed in the Lua applications page...

--
Wim

(*)  There seems to be a bug in the ctrl-[shift]-tab
navigation through multiple buffers (SciTE crashes on
occasion) but this is off-topic.

It is because someone contributed code to manage tabs in Z-order (jump to latest seen buffer when closing one or switching) but this code will be removed because of these crashes. I desactivated it with
buffers.zorder.switching=0
anyway, as I don't like this confusing behavior.

Bonus note for SciTE users:

if PLAT_WIN
  command.help.$(file.patterns.lua)="file://C:/Lua/Lua50_Manual.html"
  command.help.subsystem.$(file.patterns.lua)=2

will launch Lua manual (change name and path, of course) when hitting F1 in SciTE with a Lua file. If somebody converted the manual to .hlp or .chm formats, we could even jump directly to the keyword under the caret...

--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/ (outdated)
http://philho.multimania.com (in French, for files to download)
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--