Re: [scite] Different indent size in PHP file

2005-10-05 Thread Istvan
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

Re: [scite] Different indent size in PHP file

2005-10-05 Thread Neil Hodgson
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

Re: [scite] Different indent size in PHP file

2005-10-04 Thread Istvan
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.

Re: [scite] Different indent size in PHP file

2005-10-04 Thread Neil Hodgson
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.l

Re: [scite] Different indent size in PHP file

2005-10-03 Thread Istvan
Neil Hodgson wrote: >props is a view of volatile data and changes are not propagated back to the editor. Set the TabWidth and Indent properties instead. That's work. Just one question. In Scite 1.62 when I modified something in the SciTEStartup.lua and after I saved, it reloaded the SciT

Re: [scite] Different indent size in PHP file

2005-10-03 Thread Neil Hodgson
Istvan: > Thanks Neil. I've wrote a code in lua and I've put it into function > OnChar(ch): > > if ch=='\n' then > if props['FileExt']=="php" or props['FileExt']=="html" then > if editor.StyleAt[editor.CurrentPos] < 117 then > props['tabsize']=2 > props['in

Re: [scite] Different indent size in PHP file

2005-09-29 Thread Istvan
Neil Hodgson wrote: Is there any solution using LUA to solve this issue? How do I know in which style is the cursor? editor.StyleAt[editor.CurrentPos] The caret is actually between two characters so that is the style of the character after the caret. Thanks Neil. I've wrote a code in lu

Re: [scite] Different indent size in PHP file

2005-09-21 Thread Neil Hodgson
Istvan: > Is there any solution using LUA to solve this issue? > How do I know in which style is the cursor? editor.StyleAt[editor.CurrentPos] The caret is actually between two characters so that is the style of the character after the caret. Neil __

[scite] Different indent size in PHP file

2005-09-21 Thread Istvan
Hi, I'm working with some php files, php files have PHP and HTML codes too and I would like to know if I can set the indent size for PHP to be 4 spaces and the indent size for HTML to be 2 spaces in one file. HTML take too much spaces and I'd like to save some if I can. Is there any solution