Jump to content
Sign in to follow this  

[SCITE] How to change the macro when the '-' is pressed ?

Recommended Posts

Hi all,

I had search in the config file of scite but i can't find where we can modify the '-' function key

IE, in scite when we press '-' (minus key) scite will put ';~ ' before the line to comment it, and shift+'-' write the - symbol

I want to inverse this.

Thanks you !

Share this post

Link to post
Share on other sites

Run this script and it will modify your Scite configuration to work the way you want:

#include <file.au3>
$configFile = @ProgramFilesDir & "\AutoIt3\SciTE\SciTEGlobal.properties"
If FileExists($configFile) Then
    $lines = _FileCountLines($configFile)
    For $i = 1 To $lines Step 1
        $lineRead = FileReadLine($configFile, $i)
        If $lineRead = "KeypadMinus|IDM_BLOCK_COMMENT|\" Then
            _FileWriteToLine($configFile, $i, "Shift+KeypadMinus|IDM_BLOCK_COMMENT|\", 1)
    MsgBox(0, "", "You have just customized Scite")
    MsgBox(0, "", "Scite config file not found")

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...