In this short tutorial I walk through how I configured SciTE to automatically close: brackets, parens, braces, and quotes with SciTE.
Here’s what you need to do to try this:1) Export these lua files into your SciTE home directory
2) Open your UserLuaScript.lua script and add the following lines (in this order)
--***AutoClose Begin*** dofile(props['SciteUserHome'].."/Class.lua") dofile(props['SciteUserHome'].."/Common.lua") dofile(props['SciteUserHome'].."/AutoCloseBraces.lua") EventClass:BeginEvents() -- Start up the events (Calls onstartup()). -- ***AutoClose END
Then just restart SciTE and you’ll be able to have SciTE close brackets, parens, quotes on its own!