Philippe Lhoste wrote:
PL> AFAIK, switching buffers should be enough. There may be a more elegant
PL> way, though.

Switching buffers (or lexers) alas but it has no any effect :(

my_script.lua:
> ------------------------------------------------------
local file = props["SciteDefaultHome"].."\\languages\\cpp.properties"
local classic = 'import languages\\cpp_style_classic'
io.input(file)
local text = io.read('*a')
local find = string.find(text, '#'..classic)
if find == nil then
        text = string.gsub(text, classic, '#'..classic)
else
        text = string.gsub(text, '#'..classic, classic)
end
io.output(file)
io.write (text)
io.close()
----> ReloadProperties ???
> ------------------------------------------------------

I am compelled to act so: Run my_script -> Close SciTE -> Run SciTE again
It is very inconvenient :(
Any hints?

-- 
mozers
<http://scite.ruteam.ru>


_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to