Import AutoHotKey.XML into NotePad++
-
This is my first use of this NotePad++ forum.
Issue - Connect AutoHotKey_v2_UDL.xml to NotePad v8.8.1
I’m using Windows 10 professional 64-it
• The file is confirmed to be named AutoHotKey_v2_UDL.xml
Go to Notepad++ and try the import again:
1. In Notepad++, go to: Language → User Defined Language → Define your language.
a. Nothing was filled out on this page by me.
2. In that window, click Import…
3. Select the file: AutoHotKey_v2_UDL.xml (This all when good).
4. Click Open ( Got the following error message).:
User Define Language
Failed to Import
I can’t figure this out. Your help is appreciated.Bob
Amerifax -
Best guess: an error in the XML file.
update:
If you had shared more about the file (its contents, or at least the URL where you got the file), we could have looked at it for you, and tried to help you more.
Personally, with the improvements over the years in Notepad++, I don’t use the Import button anymore, because it merges it into the old userDefineLang.xml, which makes it hard. In modern Notepad++ (which includes the v8.8.1 you are using), there is a separate folder where you can just drop your XML file, then when you restart Notepad++, the UDL will be available (assuming it was a valid UDL file).
There is a User Defined Languages Collection where you can download UDLs that have been publically shared, and there is an AutoHotKey UDL in that Collection. And to make it even easier, instead of manually downloading that UDL yourself, and trying to find the right directory, or importing it, or what have you, you could install my CollectionInterface plugin (Plugins > Plugins Admin, checkmark
☑ CollectionInterface
, click Install), and from then on, anytime you want to download a UDL (or auto-completion or functionList or theme) from the UDL or Themes Collections, you can just use the plugin to do it for you. -
I see that a GitHub user
@paulm31
is submitting aAutoHotKey_V2.udl.xml
to the User Defined Languages Collection in PR #324 – I have to assume that’s related to this post, even if it’s not you, given the timing.That PR is merged, and CollectionInterface shows the AutoHotKey_V2.udl entry for me.