View Single Post
vitorrossi
Senior Member
Join Date: Apr 2012
Location: NY, USA
Old 07-13-2015 , 22:33   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #131

I am not sure if this has been demonstrated before, sorry if its a double post.
I just found out how to use the function list on NPP after much searching, and I didn't really find anything well documented. Here is how I did it on v6.7.9.2:

1. Open functionList.xml in Notepad++ directory ( if editing this file doesn't work, also edit the one in AppData\Roaming\Notepad++ ).
2. Underneath were it says <associationMap> is should look something like this:
Spoiler


Add this at the end ( if your user defined language name is not CS, change that field to the corresponding name )
PHP Code:
<association userDefinedLangName="CS" id="pawn_function"/> 
Then at the end of the code, right before </parsers> add this:

Spoiler


So far this has worked with every function I have in the plugins I've downloaded/made, but it might be missing some exceptions. If there are more code statements that I forgot, they can be added here: (if|while|for|switch|do|STATEMENT). Any other character in function names can be added to the pink part of the code below inside the brakets, and characters inside the parenthesis to the code in orange:

Spoiler

Last edited by vitorrossi; 07-13-2015 at 22:35.
vitorrossi is offline