Re: [scite] SciTe on Windows: how to set UTF-8 with BOM as default?

2007-07-30 Thread Vladislav Vorob'ev
save next: - local old_OnOpen = OnOpen function OnOpen (filename) local result -- call another OnOpen function if exists if old_OnOpen then result = old_OnOpen(filename) end if props[FileName] == then -- swith to UTF-8 with

Re: [scite] SciTe on Windows: how to set UTF-8 with BOM as default?

2007-07-28 Thread empError
Neil, thanks for your answer, but i use scite mainly for autoit 3. In lua i am absolute beginner, so i dont know how it works. Perhaps anyone have such a script done? ;) thanks! Neil Hodgson wrote: empError: There is no setting that will default new files to having a BOM. You could

[scite] SciTe on Windows: how to set UTF-8 with BOM as default?

2007-07-19 Thread empError
hi, i have searched this forum, but i only found, that i should write into SciTEGlobal.properties code.page=65001 output.code.page=65001 After this, by creating a new file, scite use UTF-8 but without BOM :( I am hopeless... what i am doing wrong? thanks -- View this message in context:

Re: [scite] SciTe on Windows: how to set UTF-8 with BOM as default?

2007-07-19 Thread Neil Hodgson
empError: There is no setting that will default new files to having a BOM. You could look into writing a Lua script for OnOpen that detects a new file (I expect it gets an empty filename) and calls scite.MenuCommand(153) where 153 is IDM_ENCODING_UTF8. Neil