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 BOM
                scite.MenuCommand(153) -- 153 is IDM_ENCODING_UTF8
        end
        
        return result
end
-----------------

as file "new_as_utf8bom.lua" in the same folder with your startup lua
script, that setuped in your properties file by property
ext.lua.startup.script

and add next line to the end of startup lua script:
  dofile ("new_as_utf8bom.lua")


-- 
With best regards,
Vladislav V. Vorob'ev
_______________________________________________
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to