• Login
Community
  • Login

Add AHK language (syntax).

Scheduled Pinned Locked Moved General Discussion
ahkautohotkeylanguage
4 Posts 3 Posters 7.6k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Gonda Wireless
    last edited by Sep 29, 2021, 4:31 PM

    Please add AHK (AutoHotkey) as one of the many that comes pre-installed.
    With syntax highlighting and auto-suggestion.

    I’m completely aware of other IDE for AutoHotkey, but I love to use Notepad++ and I don’t want to switch to another editor for AHK.

    Thank You Npp Team!

    P A 2 Replies Last reply Sep 29, 2021, 4:39 PM Reply Quote 0
    • P
      PeterJones @Gonda Wireless
      last edited by Sep 29, 2021, 4:39 PM

      @Gonda-Wireless ,

      Defining new builtin lexers comes from the Scintilla component and getting that updated component includedin the next release of Notepad++, or from Notepad++ users writing a lexer plugin , or from User Defined Languages (UDL) . The Notepad++ developers do not write the lexers.

      That said, there is a User Defined Languages Collection where users can share their already-defined UDL with others. And in that collection, there is an AutoHotKey UDL shared . So download that XML and save into your userDefineLangs\ folder (where other UDL like the “markdown._preinstalled.udl.xml” are stored), and restart Notepad++; then AutoHotKey files that end in the .ahk extension will show up with UDL-based syntax highlighting.

      G 1 Reply Last reply Sep 29, 2021, 5:23 PM Reply Quote 3
      • G
        Gonda Wireless @PeterJones
        last edited by Sep 29, 2021, 5:23 PM

        @PeterJones,
        Thank You so much! It is working as intended.

        Sorry if I requested for “pain in the A job”.
        After reading your reply, I realized its not that easy as I thought earlier.
        I don’t know the complications, as I’m not (Pro)grammer.
        In spite of that, AHK is quiet understandable to mere mortals like me.

        1 Reply Last reply Reply Quote 1
        • A
          astrosofista @Gonda Wireless
          last edited by Sep 30, 2021, 12:15 AM

          @Gonda-Wireless

          In addition to the fine information provided by @PeterJones and in case you are not aware of this, there is a subforum on the official AutoHotkey website dedicated to everything related to Notepad++.

          In particular, I suggest you check out this post , which explains how to run a script or selection from Notepad++.

          Have fun

          1 Reply Last reply Reply Quote 1
          1 out of 4
          • First post
            1/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors