代码拉取完成,页面将自动刷新
-- Windows requirement to immediately see all lua output.
io.stdout:setvbuf("no")
print('Loading StartUp.lua with '.._VERSION)
--lua >=5.2.x renamed functions:
unpack = table.unpack or unpack
math.mod = math.fmod or math.mod
string.gfind = string.gmatch or string.gfind
table.getn = table.getn or function(tbl) return #tbl end
getn = table.getn
os.exit= function() error("Catched os.exit from quitting SciTE.\n") end
exists= function(f) return os.rename(f,f) end
--add scite_lua dir to lua path
lua_path=props['ext.lua.directory']
print('ext.lua.directory='..lua_path)
if exists(lua_path) then
package.path = lua_path..'/?.lua'..';'..package.path
end
--add command in Tools menu
local function add_command(which,cmd,tbl)
print('command'..which..'='..cmd)
props['command'..which]=cmd
for k,v in pairs(tbl) do
props['command.'..k..which]=v
end
end
-- add Clean on Mac OS X for SciTE version 3.x
if (props['PLAT_GTK']=='1') and (os.execute('uname -a|grep Darwin')) then
add_command('.10.*','$(CMD_MAKER) clean',{name='Clean',subsystem='0',mode='',shortcut='Shift+F7'})
end
--uncomment below to invoke vim/emacs mode
require 'OnKey'
-- require 'vim'
-- require 'emacs'
save_OnKey=OnKey
--require 'extman'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。