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

[TOOLS] Notepad++ SourcePawn Syntax Highlighting 2k14 - Version 2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
404UserNotFound
BANNED
Join Date: Dec 2011
Old 11-07-2014 , 22:30   [TOOLS] Notepad++ SourcePawn Syntax Highlighting 2k14 - Version 2
Reply With Quote #1

Introduction
Most, if not all of you will know about the original tool created by user decaprime, which you can view here. I've used that tool ever since I started doing Sourcepawn scripting, but I had issues with it (due to using an outdated version of Notepad++). I recently updated my Notepad++ and decided to update the userDefineLang.xml file to bring it up to date with the most recent 1.7 snapshot. I'll be keeping this updated as much as possible.

Installation Instructions
1. Download the ZIP file attached
2. Extract the userDefineLang.xml file into C:\Users\<username>\AppData\Roaming\Notepad++ . You can navigate to the AppData folder by opening a folder and entering "%appdata%" into the address bar and pressing Enter.
3. Open Notepad++ and select "Language" on the top bar.
4. Select "SourcePawn" in the section where "Define your language..." and "User-Defined" appear.

Current Version
Updated for SourceMod Version: 1.7.0-git4954
Best used with Notepad version: Anything above 6.2 I believe, though I use 6.6.9

Change Log
Code:
Version 2.0 - November 18, 2014
- Added in highlighting for new TFConds for tf2.inc:
-- TFCond_HalloweenKart, TFCond_HalloweenKartDash, TFCond_BalloonHead, TFCond_MeleeOnly, TFCond_SwimmingCurse, TFCond_HalloweenKartNoTurn, TFCond_HalloweenKartCage

Version 1.0 - Initial Release
- Updated Keywords4 section to add un-highlighted lines from all include files (this includes everything in tf2.inc and cstrike.inc)
- Updated Keywords3 section to add in unhighlighted enum and funcenum names
- Added in new syntax and API terms into Keywords1 and Keywords3.
-- Keywords1: union, function, methodmap, typedef, property, struct
-- Keywords3: void, int, float, char


Did I miss something?

If I've missed something, let me know! If it's not from the base SourceMod includes (for example rtd.inc or saxtonhale.inc), I'm not going to be adding it.

Downloads before Version 2: 38
Attached Files
File Type: zip SourcePawn Syntax Highlighting v2.zip (9.3 KB, 2232 views)

Last edited by 404UserNotFound; 12-08-2017 at 23:07.
404UserNotFound is offline
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 11-12-2014 , 09:10   Re: [TOOLS] Notepad++ Syntax Highlighting - 2014 Edition
Reply With Quote #2

Excellent! It's nice to see someone has taken the time to update and support a very useful scripting tool. Good job
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
404UserNotFound
BANNED
Join Date: Dec 2011
Old 11-12-2014 , 15:14   Re: [TOOLS] Notepad++ Syntax Highlighting - 2014 Edition
Reply With Quote #3

I also recently noticed that this color scheme is the same as Notepad++'s HTML language color scheme. I maaaay change it up a bit. Who knows?
404UserNotFound is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 11-12-2014 , 21:35   Re: [TOOLS] Notepad++ Syntax Highlighting - 2014 Edition
Reply With Quote #4

Slightly off-topic, but it's nice to see that someone other than myself uses green for comments and not gray .

Nice job though (unfortunately, I just moved away from using Np++ as my primary editor, so I probably won't be using this).
__________________
~Wliu
Wliu is offline
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 11-17-2014 , 09:14   Re: [TOOLS] Notepad++ Syntax Highlighting - 2014 Edition
Reply With Quote #5

Thank's
kossolax is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 11-18-2014 , 18:32   Re: [TOOLS] Notepad++ Syntax Highlighting - 2014 Edition - Version 2
Reply With Quote #6

Version 2 released, changelog in main post.
404UserNotFound is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 11-21-2014 , 12:20   Re: [TOOLS] Notepad++ SourcePawn Syntax Highlighting 2k14 - Version 2
Reply With Quote #7

Have you implemented any auto-complete functions for this? There are too many versions of these...
ReFlexPoison is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 11-21-2014 , 12:36   Re: [TOOLS] Notepad++ SourcePawn Syntax Highlighting 2k14 - Version 2
Reply With Quote #8

Quote:
Originally Posted by ReFlexPoison View Post
Have you implemented any auto-complete functions for this? There are too many versions of these...
This is mainly just an update to decaprime's highlighting.

And there's only one version per editor which is just fine.
404UserNotFound is offline
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 11-23-2014 , 10:28   Re: [TOOLS] Notepad++ SourcePawn Syntax Highlighting 2k14 - Version 2
Reply With Quote #9

with this tool i have autocomplete words and natives?
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
404UserNotFound
BANNED
Join Date: Dec 2011
Old 11-23-2014 , 18:06   Re: [TOOLS] Notepad++ SourcePawn Syntax Highlighting 2k14 - Version 2
Reply With Quote #10

Quote:
Originally Posted by Roccoxx View Post
with this tool i have autocomplete words and natives?
For autocompletion, use Decaprime's tool that I linked to in the opening sentence
404UserNotFound is offline
Reply



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 15:57.


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