Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different setup of functionlist and us-def language in NP++ 8.1.5 #4

Open
SamueldeVries opened this issue Oct 30, 2021 · 1 comment

Comments

@SamueldeVries
Copy link

SamueldeVries commented Oct 30, 2021

Hi Julien,

First of all: thank you for this great functionality for Notepad++! I use it a lot.

In setting up the functionlist and user-defined language in the latest version of Notepad++ (v.8.1.5) on a new computer (so not by updating NP++) I came across some problems related to the newer version of NP++. I managed to solve these (not sure if this is the best method) and I thought it would be good to report back here.

In NP++ 8..1.5 (starting in some earlier version?) there are some changes:

  • Use defined languages are contained within seperate xml's in the folder userDefineLangs in %appdata%/notepad++ and no longer in a single file called userDefineLangs. I gues it makes sense to only place the EnergyPlus-JM language there and no longer use the full userDefineLangs.xml file with all the default languages in there as well.

  • The newer versions also use a folder 'functionList' with seperate functions for each language in addition to a file 'overrideMap.xml' that describes the mapping of the function to related language. I therefore did the following:

  • Removed the <associationMap> and <parsers> section from your function list file and saved this as EnergyPlus-JM.xml in the functionlist directory.

  • In the overrideMap.xml I added the association: <association id= "EnergyPlus-JM.xml" userDefinedLangName="EnergyPlus-JM"/>

  • This might be specific to my installation: I couldn't find any functionlist.xml or functionlist folder in %appdata%/notepad++. I did find it in the executable dir C:\Program Files\Notepad++\functionList'. I made the changes mentioned in the previous point there.

I attached my functionlist and overridemap below.

Gr,

Samuel

fixedFuncList.zip

@jmarrec
Copy link
Owner

jmarrec commented Oct 16, 2023

Hi Samuel, I don't use notepad++ anymore (I don't use Windows period, unless I have to), so this repo is basically unmaintained.

I'd welcome a pull request though, and would take a few minutes to test it out. It's hacktoberfest this month, so that'd be a nice period to do a contribution :)

As far as why you didn't find it in %Appdata%, perhaps it's because you used the portable zip? https://npp-user-manual.org/docs/function-list/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants