notepad icon indicating copy to clipboard operation
notepad copied to clipboard

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

Open SamueldeVries opened this issue 2 years ago • 1 comments

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

SamueldeVries avatar Oct 30 '21 08:10 SamueldeVries