Auto Closing quotes, braces, etc. within SciTE




About this tutorial:

Video duration: 2:53
In this video I walk through how you can set up SciTE to close your double quotes, single quotes, curly braces, brackets, and parens.

You can get the files here:

Check out more of my scripts at: Joe Glines
Like what I’ve done? Buy me my favorite beer for $7.89

Incoming search terms:

Post Author: OfficeTutes.com

Apple lover, ICT and LEAN consultant, MS Office lecturer My other website with video tutorials - Tutorials, guides and news for iPhones and iPads

4 thoughts on “Auto Closing quotes, braces, etc. within SciTE

    Manoj Aggarwal

    (June 3, 2019 - 7:40 pm)

    Hello Joe.. I am trying to paste these lines –
    **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

    into UserLuaScript.lua But it is not letting me paste there. Infect I am unable to write anything in UserLuaScript.lua. When i open this file it shows me this warning-
    http://i68.tinypic.com/2643mh2.png

    please help..
    Thanks..

    rafxel

    (June 3, 2019 - 7:40 pm)

    Thank you very much Joe!

    Since I had some difficulties myself, just like Jeff Main mentioned, I would like to offer some guidance regarding potential problems.

    First:

    The 3 files in the zip (http://the-automator.com/automatically-close-brackets-parens-braces-and-quotes-with-scite/) should go in your user folder (NOT in the SciTE installation folder), e.g.:

    "C:Users___User____DocumentsAutoHotkeySciTE"

    The "UserLuaScript.lua" file is also in that same folder. In this file what worked for me was the following content:

    — UserLuaScript.lua
    — =================

    — This file contains user-defined Lua functions
    — You are encouraged to add your own custom functions here!
    **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

    Jeff Main

    (June 3, 2019 - 7:40 pm)

    Somethings not right here. Of course the copy code on the linked website shows '***AutoClose Begin***' while the video shows '—***AutoClose Begin***' as a comment. Scite still doesn't auto close these characters. Do I need to change SciteUserHome to my scite directory???

    Jean Lalonde

    (June 3, 2019 - 7:40 pm)

    Great tip. It worked perfectly as demonstrated. Thanks, Joe

Leave a Reply

Your email address will not be published. Required fields are marked *