Giter Site home page Giter Site logo

ahk_notepad-plus-plus's Introduction

Set up Notepad++ for AutoHotkey

( AHK forum - Tested with Notepad++ v8.4.8 64-bit )


Syntax Highlighting

  • Download userDefineLang_AHK.xml (right-click the download link and choose Save link as)
  • Open your download folder
  • Start Notepad++ and click on menu Language -> User Defined Language -> Open User Defined Language folder...
  • Move userDefineLang_AHK.xml from your download folder to this folder
  • Restart Notepad++

Auto-Completion

  • Download AutoHotkey.xml (right-click the download link and choose Save link as)
  • Save it to the right location:
    • 32-Bit: C:\Program Files (x86)\Notepad++\autoCompletion\
    • 64-Bit: C:\Program Files\Notepad++\autoCompletion\
  • Start Notepad++ and click on menu Settings -> Preferences
  • Click on Auto-Completion and activate Enable auto-completion on each input
  • (Recommendation: From 2th character, Function completion & Function parameters hint on input)

Useful Notepad++ Plugins

These plugins may be useful when using Notepad++ to edit AutoHotkey scripts:

  • AutoSave - automatically save the currently open files based on a timer schedule.
  • RunMe - execute the currently open file, based on its shell association.

Install Notepad++ Plugins

You can install Notepad++ plugins by using the Notepad++ plugin manager:

  • Start Notepad++ and click on menu Plugins -> Plugins Admin...
  • Check the box for the plugins you want to install
  • Click Install

Or by using Notepad++ import:

  • Download the plugin's dll file
  • Start Notepad++ as administrator and click on menu Settings -> Import -> Import plugin(s)...
  • Navigate to the downloaded dll file and click the Open button

Set up AutoHotkey to Use Notepad++

AutoHotkey launches an editor to edit a script when menu option Edit Script or Edit This Script is selected. This menu option is listed in Windows Explorer's right-click menu and in several AutoHotkey menus.

If AutoHotkey v2 is installed

To set up AutoHotkey to use Notepad++ as script editor:

  • Run AutoHotkey (which launches AutoHotkey Dash) and click Editor settings
    (Or select Edit Script or Edit This Script in one of the menus if an editor has not been set yet)
  • A dialog will appear where you can set the editor of your choice. In the Command line field, enter the following text:
    Notepad++.exe "%L"
    
  • Click OK

If AutoHotkey v1 is installed and not also AutoHotkey v2

To set up AutoHotkey to use Notepad++ as script editor, do one of the following:

  • Create and run a .ahk file with the following contents (run as administrator):
    RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, Notepad++.exe "`%L"
    
  • Or execute at the Command Prompt (run as administrator):
    REG ADD HKCR\AutoHotkeyScript\Shell\Edit\Command /ve /t REG_SZ /d "Notepad++.exe \"%L\"" /f
    

Others

  • Hotstrings - (by Helgef) expand parameters for AHK's functions, commands and directives.
  • FunctionList - enable function list in Notepad++ for AHK scripts.
  • MsgBox Creator - (by boiler) integrated into the editor like it is in SciTE4AutoHotkey.
  • Run - (by boiler) run a script directly from Notepad++ whether or not it has ever been saved to a file.

Downloads


Donations

Donations are appreciated if I could help you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.