Thanks for the response... It was exactly where you said it was in - the
OnChar function of the lua script... Sweet... you just opened up a world of
more editor hacking for me... (I've already spent a week perfecting this
editor for just ONE language... i can't imagine when i start on more :-) )
Jonathan
mitchell writes:
[EMAIL PROTECTED] wrote:
Hello,
I have scite configured to automatically close certain characters like "
(""), ' (''), ( [()]... Is there a way i can temporarily disable this? It
is useful for general programming to have these enabled, but when I am
touching up some pre-written code, it is annoying to have to hit 1 ' and
it produces 2. If someone could give me the exact command or something,
that would be nice too as I don't know how scite automatically closes
those characters (I'm using one of the .properties files that came with
scite)...
As far as I know, SciTE does not close parenthesis, brackets, strings,
etc. It's probably happening in your Lua extension's OnChar function. What
you could do is have a flag, when enabled, fires the completion, otherwise
ignores it. You can have key commands that toggle this flag.
e.g. (untested)
ENABLECLOSURE = true
function OnChar(s)
if ENABLECLOSURE then
-- complete closure code
end
end
function ToggleClosureFlag()
ENABLECLOSURE = not ENABLECLOSURE
end
and then assign a key shortcut to ToggleClosureFlag
Take care,
-Mitchell;
Thank you,
Jonathan
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest