Syntax Highlighting
Install:
- place files in ...\userDefineLangs folder
- modify files names as desired
The default config is my config, which puts AHK v2 as the default, and is listed first. If you want AHK v1 to be the default, remove the #_ from the file name - go to the UDL ui:
Language > User Defined Language > Define your language... - select the version of AHK UDL you want to edit
- input the extension data ONLY for the one you want to be the default for loading AHK files
- if you are using the light theme, rename the following line (near the top of the file) to exclude (light)
This is particularly important if you plan to use Auto-Complete / Call Tips. I don't actually use the light theme, but I do put effort into maintaining it.
Code: Select all
<UserLang name="AutoHotkeyV2 (light)" ext="" udlVersion="2.1"> --- rename to --- <UserLang name="AutoHotkeyV2" ext="" udlVersion="2.1">
Auto-Complete and Call Tips
Notes:
- only AHK v2.0.10 for now
- I added all #directives, functions, built-in variables
- #directives work with auto-complete with a few conditions:
1) I made a list of #directives starting with _ so you can pull up a list of directives by typing _
2) I also made a list of #directives ending with _ for easy Auto-Complete and identifying which terms are #directives. Of course, backspace the _ when done.
3) Finally, all directives are included with # for call tips. It works if you type ( (and if needed manually invoke the call tip). Of course, don't forget to backspace the ( when you are done. - Most functions have at least 2 pages.
1) Page 1 is the basic syntax.
2) Page 2 is some kind of help, whatever I found to be useful. If I found more info useful, in many cases I added extra pages. - I also included Call Tips for several flow control statements in order to have quick examples at the ready. Just type a ( after the flow control statement, and backspace it when you are done.
- place the file(s) in ...\autoCompletion
- syntax highlighting UDL is required for these to work (see above)
- manually invoke Auto-Complete with CTRL+Space (default)
- manually invoke Call Tips with CTRL+SHIFT+Space (default)
- press ALT+ and ALT+ to navigate the pages of the Call Tips when multiple pages exist
- Notepad++ settings can be set to automatically show Call Tips and Auto-Complete:
Settings > Preferences... > Auto-Completion - I recommend "Function Completion" only. This will allow functioning Call Tips as well as Auto-Complete for functions, #directives, and built-in variables.
Download on GitHub
============================================================
Warning for aspiring coders and newbies...
========================================================================================================================
Updates
============================================================I am currently using these tools on Notepad++ v8.5.7 64-bit.
For custom call tips try CallTipsForAll.
CallTipsForAll is a bit old, and does need to be updated, but it still functions ok-ish.