topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 12:14 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Ampa

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
  • I am cute ;)
    • View Profile
    • MonkeyDash - 2 Player strategy boardgame
    • Donate to Member
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
    • View Profile
    • Donate to Member
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #1 on: May 09, 2012, 09:44 PM »
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.autohotke...TE4AutoHotkey_3/web/
https://code.google.com/p/notepad2-mod/

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,832
    • View Profile
    • Donate to Member
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #2 on: May 09, 2012, 09:50 PM »
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)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #3 on: May 09, 2012, 10:07 PM »
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
    • View Profile
    • Donate to Member
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #4 on: May 09, 2012, 10:08 PM »
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):

    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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: AHK Code Highlighting and Code Completion in Notepad++ ?
« Reply #5 on: May 10, 2012, 04: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.