NWN2 nwscript User-defined language for Notepad++
The main differences with "Fancy Colors" (see related projects) are that descriptions of the functions are available and the keywords come from NWN2 nwscript.nss file (therefore don't include NWN1 specific constants).
To add autocompletion and tips if you type your scripts in Notepad++ and not in the NWN2 toolset, or if you want to see what functions and constants are shipped with NWN2 (they'll be colored if that is the case), this might be of use, especially as a short descriptions of the functions is available as soon as the opening parenthesis is typed.
There are 8 different colors, to make it easier to read (not sure about that, but at the time it was fun):
Extract nwscript.udl.xml to C:\Users\<your name>\AppData\Roaming\Notepad++\userDefineLangs
Extract nwscript.xml to C:\Program Files\Notepad++\autoCompletion
If you want to change the colors, just open the "Language" menu and click on "Define your language" in the "User defined language" submenu.
Then select "nwscript" in the dropdown list ("Language") and click on the "Style" button corresponding to the keywords group you want to modify.
Langage utilisateur nwscript NWN2 pour Notepad++
Les principales différences avec "Fancy Colors" (voir related projects) concernent les descriptions des fonctions (maintenant disponibles) et les mots-clés proviennent du fichier de NWN2 nwscript.nss (et par conséquent n'incluent pas les constantes spécifiques à NWN1).
Pour bénéficier de l'autocompletion et des informations sur les fonctions dans vos si vous les écrivez dans Notepad++ et pas dans le toolset, ou si vous voulez savoir quelles fonctions et constantes sont fournies d'origine (elles seront affichées en couleur si c'est le cas), ceci peut vous intéresser, d'autant plus qu'une brève description de chaque fonction apparaît dès que vous entrez la parenthèse ouvrante.
Il existe 8 couleurs différentes, pour une lecture plus simple (enfin, c'était surtout pour le fun à l'époque où j'ai fait ça):
Extraire nwscript.udl.xml to C:\Users\<your name>\AppData\Roaming\Notepad++\userDefineLangs
Extraire nwscript.xml to C:\Program Files\Notepad++\autoCompletion
Si vous voulez d'autres couleurs, ouvrez le menu "Langage" menu et cliquez sur "Definir votre langage" dans le sous-menu "Langage utilisateur".
Puis sélectionnez "nwscript" dans la liste déroulante ("Langage") et cliquez sur le bouton "Style" correspondant au groupe de mots-clés que vous voulez modifier.
Attachment | Size |
---|---|
![]() | 69.47 KB |
This looks very promising. Downloading and playing with now!
Great job, 4760! Since I use Notepad++ when I have problems with scripts, this looks very useful!
Very well executed, love the combined functionality of nwscript and Notepad++. Checking it out, everything seems easy to use.
I didn't read the original post properly and thought it was for NWN1, but it's similar enough to be easy to use for that. Thanks for this fabulous tool!
Thank you. This is going to help out.
Have installed it now and it looks good. You can't compile scripts in Notepad++, right? It would have been nice if that was the case. It's easier to edit stuff in Notepad++ than in the Toolset. Maybe to compile Notepad++ would need access to the module itself to check for include scripts and whatnot.
That depends. If there is a user made commandline script compiler for NwN 2 specifically (there is for NwN) then you should be able to. Open notepad++. Top menu select Plugins, scroll down and select Plugins Admin. Find and install NppExec. Set it up and you should be able to compile without leaving Notepad++.
TR
You can't compile scripts in Notepad++, right?
Not directly, but I wrote a quick tutorial to explain how this can be achieved.
Hey did you ever post your new climbing hak?
For the attention of the 27 users who downloaded the file before today: there was a typo in OBJECT_TYPE_WAYPOINT and MOVETOPOINT.
That's fixed in the version now uploaded.
A l'attention des 27 utilisateurs qui ont téléchargé le fichier avant aujourd'hui: il y avait une faute de frappe dans OBJECT_TYPE_WAYPOINT et MOVETOPOINT.
C'est corrigé dans la version maintenant téléchargeable.