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

AMXX Keywords for Syntax Highlighting


Post New Thread Reply   
 
Thread Tools Display Modes
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
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-14-2015 , 08:14   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #132

Thanks, it's usefull. What you forgot(maybe ?) to say is that someone need to change the language name:
PHP Code:
<association userDefinedLangName="CS" id="pawn_function"/> 
I use Notepad++ AM and the lang name is "Pawn", not "CS".
__________________
HamletEagle is offline
vitorrossi
Senior Member
Join Date: Apr 2012
Location: NY, USA
Old 07-14-2015 , 11:39   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #133

Another alternative is to download SourceCookifier.
This can be downloaded in Notepad++ ---> Plugins > Plugin Manager > Show Plugin Manager
After you download and restart Notepad++, open SourceCookifier, Settings > Language Settings, under Language select C++, then under Extension type .sma in the white box then click Add.
Should do the trick.
vitorrossi is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-08-2016 , 09:35   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #134

Please post how to install
__________________
Depresie is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-08-2016 , 18:34   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #135

Quote:
Originally Posted by Depresie View Post
Please post how to install
Perhaps you should actually read my post.
__________________
fysiks is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-08-2016 , 18:48   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #136

You only tell about the .xml file
You don't explain what .zip people should download and why

For a new user it is very confusing
__________________
Depresie is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-08-2016 , 19:05   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #137

Quote:
Originally Posted by Depresie View Post
You only tell about the .xml file
You don't explain what .zip people should download and why

For a new user it is very confusing
If you want the keywords for CS you download the one that has those two words in it. In there, there is a Notepad++ folder. If you open that, you'll see a ReadMe.txt. Open that, it explains the installation process (as of 2010). If it has changed (which I doubt because I've never had to move it in the numerous versions that I've used) then someone would need to let me know.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 19:59.


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