Nicolas Grilly:
I want to automatically set the property wrap=1 when editing .txt files and wrap=0 when editing other files.I tried to build a little Lua extension to do this: function OnOpen(filename) trace('open ' .. filename) props['wrap'] = '1' end
Writing to props will not affect the underlying feature. The way this works is that SciTE reads the properties files in and then immediately interprets those properties to set Scintilla features. Changes to props are not listened for and props will be overwritten next time the properties files are read. Vladislav Vorob'ev's solution looks workable although SciTE's single global setting of wrap mode doesn't suit varying by file type. Neil _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
