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
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
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:
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