DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: AHK Code Highlighting and Code Completion in Notepad++ ?  (Read 14,790 times)

Ampa

  • I am cute ;)
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
I did a Google (other search engines are available) and it looks like code highlighting and completion of AHK in Notepad++ is a mess!

Various xml language files floating around, but nothing official.

A lexer plugin that hasn't worked since Notepad++ 5.7 (current version 6.1.2)

Please someone tell me that a neat solution exists?
Or do I have to use a different app to write AHK scripts?

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #1 on: May 10, 2012, 02:44 AM »
i use PSPad but there are other editors such as SciTE4AutoHotkey and Notepad2-mod. you may have to try a few and see which one is compatible with you.. :)

• http://www.pspad.com/
• http://www.autohotkey.net/~fincs/SciTE4AutoHotkey_3/web/
• https://code.google.com/p/notepad2-mod/

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #2 on: May 10, 2012, 02:50 AM »
I did a Google (other search engines are available) and it looks like code highlighting and completion of AHK in Notepad++ is a mess!

Various xml language files floating around, but nothing official.

A lexer plugin that hasn't worked since Notepad++ 5.7 (current version 6.1.2)

Please someone tell me that a neat solution exists?
Or do I have to use a different app to write AHK scripts?

that pretty much sums it up - various attempts, but nothing that is 'complete'

not sure that the offerings are any better for any of the other editors, but I prefer notepad++ so YMMV

best I could offer would be to try all the various options and settle on one that you like (or that you can best tolerate)
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #3 on: May 10, 2012, 03:07 AM »
I'm a PSPad user as well.  I like the Code Explorer function for AHK files it offers.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #4 on: May 10, 2012, 03:08 AM »
If you can stomach using a separate app, one of lanux128's suggestions:

  http://www.autohotkey.net/~fincs/SciTE4AutoHotkey_3/web/

has (as you might guess) a fair bit of support for AHK -- including debugging (at least for AHK_L):

Quote
    Syntax highlighting
    Calltips (also known as IntelliSense)
    AutoComplete
    AutoIndent
    AutoHotkey help integration
    Abbreviations
    Editing macros
    AutoHotkey_L debugging support
    Tools for AutoHotkey scripting
    A toolbar that enables easy access to the tools

FWIW, I do most of my AHK development in Notepad++ and/or Emacs, but the debugging is way easier to get working (and better supported) with SciTE4AHK, so I tend to use that when testing.  This option is IMHO the easiest to get up and running with in terms of not having to tweak settings and search the net for various syntax-related files...at least compared with the various other options I have tried :)

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #5 on: May 10, 2012, 09:58 AM »
Nice I didn't know PSPad had this built in! I Noticed that there are no longer start menu options to add AHK highlighting to Notepad++ some time back after installing AHK.

Original address: https://www.donationcoder.com/forum/index.php?topic=30949.0