Chris Sutcliffe | 1 Apr 02:25
Picon

Refreshing api file


Hey All,

Is there a way to force SciTE to re-read the api file without restarting SciTE?

Thanx!

Chris

--

-- 
Chris Sutcliffe
http://emergedesktop.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Chris Sutcliffe | 1 Apr 03:26
Picon

Calling a lua function from the output pane


Is it possible to call a lua function from the output pane?  For
example, I can call an executable by typing it's name but I can't
figure out how to call a lua function.

Thanx!

Chris

--

-- 
Chris Sutcliffe
http://emergedesktop.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

KHMan | 1 Apr 04:45
Picon

Re: Make scite open URLs in default web browser (Linux)


G.A.M. wrote:
> 
> On Mar 29, 4:34 am, KHMan <keinh...@gmail.com> wrote:
>> G.A.M. wrote:
>>
>>>> The following in the user properties file works for me in Ubuntu 6.10:
>>>> command.name.1.*=Open Selected URL
>>>> command.1.*=x-www-browser $(CurrentSelection)
>>>> command.save.before.1.*=2
>>>> command.subsystem.1.*=2
> 
>>>   ---------------------------------------------------------------
>>>   -- range selection and extension
>>>   ---------------------------------------------------------------
> 
> Let me ask some more specific questions:
> 
> I have the "Open Selected URL" command working. (And I assigned it a
> shortcut.) I put it in global options because I want it everywhere all
> the time for all users.
> 
> Where would I put the range selection and extension and extension
> code? I would think it should go in a separate file and be called like
> a subroutine. Is that true? I have no idea how that works in SciTE/
> lua.

The Lua extension is an advanced feature, and is a little more
involved than adjusting property files. Please see the following
to get you started:
(Continue reading)

Jingcheng Zhang | 1 Apr 05:15
Picon

Re: How to make SciTE completes brackets automatically?


Hello Frank,
  It works! Thank you very much :)

On Mar 31, 5:09 pm, Frank Wunderlich <frank.wunderl...@gmail.com>
wrote:
> Jingcheng Zhang, 30.03.2008 13:35:
>
> > For example, when I type a "(", it automatically expands to "()", with
> > caret locates at the center.
> > Besides, I hope "[" and "{" may also be used here. Thanks :)
>
> an example doing this with a lua-script (afair taken from autoIT, a bit
> modified by me):
>
> function OnChar(c)
>   local toClose = { ['('] = ')', ['['] = ']', ['{'] = '}', ['"'] = '"',
> ["'"] = "'" }
>   local allowedChars = { [')']=1, [']'] = 1, ['}'] = 1, ['\n'] = 1,
> ['\r'] = 1, [' '] = 1, [';'] = 1 }
>   if (toClose[c]) then
>     local pos = editor.CurrentPos
>     local nextchar = "\n"
>     if pos<editor.Length then
>        nextchar = editor:textrange(pos, pos+1)
>     end
>     if (allowedChars[nextchar] == 1) then
>       editor:SetSel(pos,pos)
>       editor:ReplaceSel(toClose[c])
>       editor:SetSel(pos,pos)
(Continue reading)

SteveD | 1 Apr 07:25
Picon

Re: Scintilla Documentation for Lua


I am happy to maintain it, but I need some keen eyes to catch
the inevitable errors. The ultimate reference to the Lua interface
is Iface.cxx; it tells us for instance that GetLastChild is a method,
not a property, so there's one error to be corrected so far.

steve d.

On Mar 31, 3:46 pm, KHMan <keinh...@gmail.com> wrote:
> Wow, it looks very nice. The big questions are, would it go into
> the source tree and would it be maintained well in the long term...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

SteveD | 1 Apr 08:00
Picon

Re: Calling a lua function from the output pane


Hi Chris,

It's perfectly possible.

http://lua-users.org/wiki/SciteLuaPrompt

This describes a script which interactively interprets Lua statements
typed into the output pane. The main voodoo is enabling a script
to grab input lines, hence the extman dependency, but I'm
sure it can be reorganized not to require extman.

steve d.

On Apr 1, 3:26 am, "Chris Sutcliffe" <ir0nh...@gmail.com> wrote:
> Is it possible to call a lua function from the output pane?  For
> example, I can call an executable by typing it's name but I can't
> figure out how to call a lua function.
>
> Thanx!
>
> Chris
>
> --
> Chris Sutcliffehttp://emergedesktop.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
(Continue reading)

SteveD | 1 Apr 09:24
Picon

Re: Embedding SciTE in another program


It seems doable, to pull out the main widget class and use that.

An interesting stage in such a port would be to get
multiple SciTE toplevel windows working within
an app.

The wonders of OOP...

On Mar 31, 3:43 pm, "jpswen...@gmail.com" <jpswen...@gmail.com> wrote:
> Is there a facility in place for embedding SciTE in another open
> source program?  I am currently working on an IDE for Octave and want
> to combine the editor, Octave terminal, and other windows all in the
> same program.  SciTE is already a fully developed editor with support
> for Octave/Matlab.  I have messed around with GtkSourceView and
> Scintilla, but both of them require so much work to get to a fully
> featured editor.  It would be nice if I could just take a "SciTE
> widget" and put it in a window that is part of my program.  I looked
> through the Main SciTEGTK.cxx file and I think I could hack part of it
> to do the job, but am wondering if there is a better way to do this.
>
> John Swensen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

(Continue reading)

KHMan | 1 Apr 10:33
Picon

Re: Scintilla Documentation for Lua


SteveD wrote:
> I am happy to maintain it, but I need some keen eyes to catch
> the inevitable errors. The ultimate reference to the Lua interface
> is Iface.cxx; it tells us for instance that GetLastChild is a method,
> not a property, so there's one error to be corrected so far.

Roger that. I also have a IFaceTable.cxx parser sitting somewhere,
so I will try do some double-checking and manual proof-reading
this weekend.

--

-- 
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

SteveD | 1 Apr 10:57
Picon

Re: Embedding SciTE in another program


To elaborate, splitting into multiple top level windows
would allow  you to separate the application stuff
from the main window stuff, which are currently
entangled. So there would be an SciTEApp
class as well as a window class.

Of couse, you could also wok the other way,
and just modify SciTE ;)

steve d.

On Apr 1, 9:24 am, SteveD <steve.j.dono...@gmail.com> wrote:
> It seems doable, to pull out the main widget class and use that.
>
> An interesting stage in such a port would be to get
> multiple SciTE toplevel windows working within
> an app.
>
> The wonders of OOP...
>
> On Mar 31, 3:43 pm, "jpswen...@gmail.com" <jpswen...@gmail.com> wrote:
>
> > Is there a facility in place for embedding SciTE in another open
> > source program?  I am currently working on an IDE for Octave and want
> > to combine the editor, Octave terminal, and other windows all in the
> > same program.  SciTE is already a fully developed editor with support
> > for Octave/Matlab.  I have messed around with GtkSourceView and
> > Scintilla, but both of them require so much work to get to a fully
> > featured editor.  It would be nice if I could just take a "SciTE
(Continue reading)

SteveD | 1 Apr 11:12
Picon

Smart Paste and Copy for SciTE


Hi guys,

I've posted a script smartpaste.lua which implements a few useful
block operations. For instance, block_select (Shift+Ctrl+A) will
select the enclosing block of a line; if you click on the start of a
function, it will select the whole function.  smart_paste (Shift+Ctrl
+V) is a block-oriented paste. If you have copied a number of lines
(say by dragging in the margin or with smart_copy), then smart_paste
will try to match the indentation of the current line, and paste the
block after it. It will leave the block selected in case the operation
wasn't particularly smart, and you then have an opportunity of
changing the indentation with <tab> and Shift+<tab>.

block_end(Ctrl+E) works like the SciTE command with the same shortcut;
in fact for C-like languages it merely calls the SciTE implementation
(match braces). Otherwise, it tries to use the folding information to
jump between the start and end of blocks. Unfortunately, Python
confuses it, but any traditional explicit block-marked language seems
to work.

I haven't tested smart paste under Unix; the problem is that
editor:Paste() is not guaranteed to be synchronous.

A few techniques are illustrated, such as how to use a temporary
marker to find out the extent of text that has been inserted. It
includes the LuaBit library by hanzhoo for finding fold lines.

steve d.
--~--~---------~--~----~------------~-------~--~----~
(Continue reading)


Gmane