Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Notepad++ v6.2 , UDL & Syntax Highlighting


  • This topic is locked This topic is locked
48 replies to this topic
jNizM
  • Members
  • 928 posts
  • Last active: Jan 12 2018 09:23 AM
  • Joined: 01 Aug 2012
@genmce
Ill try his file... it works for me
do you use version 6.2?

@vsub
because ahk is not supported by notepad itselfe
- press safe
- type something like: test.ahk
- and press enter
[AHK] 1.1.27.04 x64 Unicode | [WIN] 10 Pro (Version 1709)
My GitHub Profile | Donations are appreciated if I could help you

genmce
  • Members
  • 144 posts
  • Last active: May 21 2015 03:09 PM
  • Joined: 10 Jan 2009

I've forked infogulch's Github project and started updating them. They'll be merged back into infogulch's if he likes them (and IF I can figure out how to do that).
https://github.com/t... ... Hotkey.xml - Fixed Alphabetical order, 'Broken' words (# and {) are commented out at the end of the file.
https://github.com/t... ... neLang.xml - Infogulch/tidbit's list with some small tweaks/fixes/changes and using the 'default' styler.


userDefineLang.xml - fails to import on Notepad ++ 6.2

KeyMce/GenMce - mackie emulator for pc keyboard/Convert your controller to mackie.
Midi I/O - Want to play with midi/ahk? links dead.. pm me


genmce
  • Members
  • 144 posts
  • Last active: May 21 2015 03:09 PM
  • Joined: 10 Jan 2009
So does auto complete work? How do you make it work?
I am used to Scite4ahk and like auto complete on that, but want to have multiple windows for comparing and copying code.
I'm a hack anyway, no worries.

KeyMce/GenMce - mackie emulator for pc keyboard/Convert your controller to mackie.
Midi I/O - Want to play with midi/ahk? links dead.. pm me


jNizM
  • Members
  • 928 posts
  • Last active: Jan 12 2018 09:23 AM
  • Joined: 01 Aug 2012
@genmce
see my How-To in first post
[AHK] 1.1.27.04 x64 Unicode | [WIN] 10 Pro (Version 1709)
My GitHub Profile | Donations are appreciated if I could help you

genmce
  • Members
  • 144 posts
  • Last active: May 21 2015 03:09 PM
  • Joined: 10 Jan 2009
@jNizM

Thanks - followed your directions. Syntax highlight working.
Autocomplete not working - I used your settings. I re downloed the autohotkey.xml file from your link and put it in the API folder.

Should it work like this? I start tying "msg" for msgbox and an autocomplete dialog will come up?
Do I have to hit some keycommand to get autocomplete to work?
I changed the settings as you suggest in N++.

KeyMce/GenMce - mackie emulator for pc keyboard/Convert your controller to mackie.
Midi I/O - Want to play with midi/ahk? links dead.. pm me


twiz
  • Members
  • 33 posts
  • Last active: Oct 08 2013 11:47 PM
  • Joined: 08 Nov 2011

I followed the steps as you said but the autocomplete function still doesn't work.
Neither do the colours.

C:\Program Files (x86)\Notepad++\userDefineLang.xml
C:\Program Files (x86)\Notepad++\plugins\APIs\AutoHotkey.xml

C:\Users\<UserName>\AppData\Roaming\Notepad++\userDefineLang.xml (Syntax Highlighting)
Or you can copy/paste: %AppData%\Notepad++\ into the address bar.

C:\Program Files (x86)\Notepad++\plugins\APIs\AutoHotkey.xml (Autocomplete)


userDefineLang.xml - fails to import on Notepad ++ 6.2

Those are the exact files I'm using.
If you're having problems, double check the folders you are putting the files into.

Grendahl
  • Members
  • 416 posts
  • Last active: Jul 07 2014 08:01 PM
  • Joined: 10 Aug 2009
I must be missing something, but the parameters from AutoHotkey.xml are not showing up at all for me.

Thoughts?
Always have your scripts when you need them with Dropbox.
Sign up for free! http://db.tt/9Hrieqj

twiz
  • Members
  • 33 posts
  • Last active: Oct 08 2013 11:47 PM
  • Joined: 08 Nov 2011

I must be missing something, but the parameters from AutoHotkey.xml are not showing up at all for me.

Thoughts?

Settings -> Preferences -> Backup/Auto-Completion (tab) -> tick "Function Parameters hint on input"
It only works for Functions, not 'regular' commands, which I think is due to NP++ 6.2 being so broken

twiz
  • Members
  • 33 posts
  • Last active: Oct 08 2013 11:47 PM
  • Joined: 08 Nov 2011

Does anyone else have this problem.
In NPP click on the icon for new tab\file,change the language to autohotkey(or any user defined language)and when you try to save,it will not save the file with the extension for the language.

The drop-down list in Save as type,doesn't contain ahk.

Just one of the MANY new bugs that seems to have been introduced in the newest Notepad++.
It has nothing to do with it being a UserDefined Language, since it worked in 6.1.x and older.

aRt)Y
  • Members
  • 447 posts
  • Last active: Oct 03 2013 08:40 PM
  • Joined: 17 Nov 2011

C:\Users\<UserName>\AppData\Roaming\Notepad++\userDefineLang.xml (Syntax Highlighting)
Or you can copy/paste: %AppData%\Notepad++\ into the address bar.

C:\Program Files (x86)\Notepad++\plugins\APIs\AutoHotkey.xml (Autocomplete)

Might have got a typo but the files are exactly where you said. Still it doesn't work.

tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008
The name of your User Defined Language needs to exactly match the auto correct file name (minus the extension), case included.

http://i.imgur.com/DN1re.png
Posted Image

rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


aRt)Y
  • Members
  • 447 posts
  • Last active: Oct 03 2013 08:40 PM
  • Joined: 17 Nov 2011
I might add them worgly.

Language -> User defined -> create new -> (call it) AutoHotkey -> Import
But then I can't import the AutoHotkey.xml, only the userDefineLang.xml

I am doing something wrong at adding it, I guess

tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008
You do NOT import AutoHotkey.xml. As my image above and the instructions on the first page say, you need to SAVE (or move) the file into the folder (WhereverYouInstalledNotepad++\plugins\APIs\).

rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


jNizM
  • Members
  • 928 posts
  • Last active: Jan 12 2018 09:23 AM
  • Joined: 01 Aug 2012
How-To:

Syntax-Highlighting: (userDefineLang.xml)
To enable Syntax-Highlighting for Autohotkey, download the file (userDefineLang_AHK.xml) and save it in the right path (Notepad++\)
Then start Notepad++, click on Menu Language and add a custom one. Import your ahk_uDL. Restart Notepad++.

Auto-Completion: (AutoHotkey.xml)
To enable auto-completion for Autohotkey, download the file (Autohotkey.xml) and save it in the right path (Notepad++\plugins\APIs\)
Then go to Settings --> Preferences --> Auto-Completion and activate "Enable auto-completion on each input".
(recommendation: "From 2th character", "Function completion", "Function parameters hint on input").
[AHK] 1.1.27.04 x64 Unicode | [WIN] 10 Pro (Version 1709)
My GitHub Profile | Donations are appreciated if I could help you

aRt)Y
  • Members
  • 447 posts
  • Last active: Oct 03 2013 08:40 PM
  • Joined: 17 Nov 2011

How-To:

Syntax-Highlighting: (userDefineLang.xml)
To enable Syntax-Highlighting for Autohotkey, download the file (userDefineLang_AHK.xml) and save it in the right path (Notepad++\)
Then start Notepad++, click on Menu Language and add a custom one. Import your ahk_uDL. Restart Notepad++.

Auto-Completion: (AutoHotkey.xml)
To enable auto-completion for Autohotkey, download the file (Autohotkey.xml) and save it in the right path (Notepad++\plugins\APIs\)
Then go to Settings --> Preferences --> Auto-Completion and activate "Enable auto-completion on each input".
(recommendation: "From 2th character", "Function completion", "Function parameters hint on input").

After reinstalling np++ and with your guide, it worked. Thanks.