Raised This Month: $51 Target: $400
 12% 

AMXX Keywords for Syntax Highlighting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #33

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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode