Neil Hodgson | 4 Oct 2005 14:57
Picon

Re: Different indent size in PHP file

Istvan:

> I didn't modified anything in the properties files, I just addded the .exe and the .dll
> from the new version. This is the way how it works, or there is something what I need
> to change, not to restart Scite on every modification of SciTEStartup.lua .

ext.lua.auto.reload=1
ext.lua.reset=1

   Neil
Istvan | 5 Oct 2005 07:16
Picon
Favicon

Re: Different indent size in PHP file

Neil Hodgson wrote:
> Istvan:
> 
>> I didn't modified anything in the properties files, I just addded the .exe and the .dll
>> from the new version. This is the way how it works, or there is something what I need
>> to change, not to restart Scite on every modification of SciTEStartup.lua .
> 
> ext.lua.auto.reload=1
> ext.lua.reset=1

That's the setting I am using now. If I add a new code, eg. for onChar(ch) function I add: print(ch)
and  save, that will show on the output the chars what I am typing, but if I switch to another buffer
the chars will not be displayed. So that's my problem.

Thanks.
Istvan.
Neil Hodgson | 5 Oct 2005 11:34
Picon

Re: Different indent size in PHP file

Istvan:

> That's the setting I am using now. If I add a new code, eg. for onChar(ch) function I add: print(ch)
> and  save, that will show on the output the chars what I am typing, but if I switch to another buffer
> the chars will not be displayed. So that's my problem.

   I tried:

1) ext.lua.auto.reload=1
2) two buffers open: remove_email_virus.py and mmfold.py
3) Options | open Lua Startup Script
4) Define function:
function OnChar(ch)
   print("ch " .. ch)
end
5) File | Save
6) Type 'c', see in output pane:
ch c
7) Switch to mmfold.py
8) Type 'x', see in ouput pane:
ch x

   Did you spell OnChar with an initial 'o'?

   Neil
Istvan | 5 Oct 2005 13:47
Picon
Favicon

Re: Different indent size in PHP file

Neil Hodgson wrote:
>    I tried:
> 
> 1) ext.lua.auto.reload=1
> 2) two buffers open: remove_email_virus.py and mmfold.py
> 3) Options | open Lua Startup Script
> 4) Define function:
> function OnChar(ch)
>    print("ch " .. ch)
> 

To be honest it wasn't worked for me ... but I've just found the problem.
I had this line on startup script: props['ext.lua.reset']=0
That was there because of buffer switch script.

Moving that line into the function what is responsible for switching, now it's
working both lua startup script reloading and buffer switch too.

Thanks for your time.
Istvan.

Gmane