Closed fwd079 closed 3 years ago
Hi,
Do you run the npm command in %AppData%\Notepad++\userDefineLangs\
directory or somewhere else?
In later versions of NPP, you can manage UDL files in the above directory, rather than import/modify contents in %AppData%\Notepad++\userDefineLang.xml
file.
Or, you can download the zip file, then move your favourite UDL to the userDefineLangs\
directory. Please restart NPP to take effect.
Here's the screenshot:
Please tell me any output or buy you are facing. Thanks. :-)
Yup, as mentioned I followed instructions to a tee. Those did not work.
Then yes, I downloaded zip file and UDL in userDefineLangs
directory. That didn't work either.
Everything "completed" but restarting Notepad++ didn't make any difference.
Then, I imported as shown and it worked. Kind Regards.
That's weird. I would try to reproduce the problem.
Thanks for your help :)
Well installed NP++ via chocolatey. Steps to install after Chocolatey is installed on Windows:
choco install notepadplusplus --y
But guessing the issue is similar to this one on Notepad++ Git as a cloud is turned on with the path:
And that path did not have userDefineLangs
folder created, but that's not your fault but Notepad++ as linked issue suggests.
As said don't think it's an issue (at least on your side).
Kind Regards.
I have tried to reproduce the problem. Yes, it seems that it is the problem of "cloud" function in NPP.
When "Cloud" directory is set in NPP's Preferences, the <userDefineLangs\>
folder is not created automatically.
NPP will not open the folder when you click in menu: Language → User Defined Language → Open User Defined Language folder...
I still prefer to use the <userDefineLangs\>
to manage your UDL files, rather than modifying a single UDL in the old days.
Let say: You setup your cloud directory at <%UserProfile%\Documents\Notepad++\>
If it is setup correctly, NPP will open Explorer when you click in menu: Language → User Defined Language → Open User Defined Language folder...
Run npx markdown-plus-plus
command in your new <userDefineLangs\>
, instead of the default one.
Yay~
Great. Solved, I guess. 🙂
As said it is mainly NP++'s problem. But thanks for looking into it. The workaround works, closing it now.
Kind Regards.
Good morning,
Not an issue (I think) but just a note that if like myself if you already have a custom language defined (mine was TypeScript) then npm package fails. Only way to install it to get source and then go to
Language -> User Defined Language -> Define your language...
Then import the udl of your choice. Then it works and shows your chosen md themed language.
Kind Regards.