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

PSPad SourcePawn Syntax Highlighting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OneEyed
AMX Mod X Beta Tester
Join Date: Jun 2005
Old 05-13-2007 , 03:53   PSPad SourcePawn Syntax Highlighting
Reply With Quote #1

Black and white sorta sucks, so I got a bag of skittles and threw it at my screen and magical colors filled the syntax nice and pretty.

- Drop the file in C:\Program Files\PSPad editor\Syntax or where your folder is located.
- Add it in through Settings -> User Highlighter
- Go To Settings -> Highlighter Settings
- Click on a <Not Assigned> space, and click Specification Tab.
- Enter "SourcePawn" for Filter Name, and hit OK.
- Then set it using View -> Change Syntax.

The color scheme isn't saved to this file, so you'll need to edit the colors you want each Syntax Type. In the same Highlighter Settings area. But if you use the beta version, you can add this to the bottom of PsPad.INI

Code:
[SourcePawn]
Filter=SourcePawn (sp;sma;inc)|sp;sma;inc
HLTabWidth=2
IndentChar= 
UnIndentChar= 
Compilator File=
Compilator Param=
Compilator LOG=
Compilator Run=
Compilator Help=
Compilator SaveAll=0
Compilator ParsLog=
Compilator Capture=0
Compilator HideOutput=0
Compilator DefaultDir=
Comment=0000800000F8F8F8010
Identifier=1FFFFFFF00F8F8F8000
Key=000078F000F8F8F8100
Key words 2=000000DD00F8F8F8100
Key words 3=00FF800000F8F8F8000
Label=000000FF00F8F8F8000
Number=0080000000F8F8F8000
Preprocessor=00FF000000F8F8F8000
Reserved Word=00FF000000F8F8F8100
Space=0080800000F8F8F8000
String=0040008000F8F8F8000
Symbol=1FFFFFFF00F8F8F8000
It includes coloring for .sma, .inc, .sp

I didn't include every single function, because it's limited to 4 custom keywords.
Attached Files
File Type: ini SourcePawn.INI (6.7 KB, 690 views)
__________________

Last edited by OneEyed; 05-13-2007 at 14:54.
OneEyed is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 05-13-2007 , 13:52   Re: PSPad SourcePawn Syntax Highlighting
Reply With Quote #2

I can't get it to work for some reason.
After adding it I can't find it in View -> Change Syntax.
__________________
sslice is offline
API
Veteran Member
Join Date: May 2006
Old 05-13-2007 , 15:16   Re: PSPad SourcePawn Syntax Highlighting
Reply With Quote #3

Try out the one I posted, then just update the INI with his.
__________________
API is offline
Send a message via AIM to API
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 05-13-2007 , 16:14   Re: PSPad SourcePawn Syntax Highlighting
Reply With Quote #4

Thanks, got it working.
__________________
sslice is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 09-01-2007 , 03:11   Re: PSPad SourcePawn Syntax Highlighting
Reply With Quote #5

Thanks OneEyed

I've changed the one you posted overtime & added support for alot more things & removed some of the deprecated natives/stocks. Thought some people might find it useful with all the extra highlighting ;)

newest link can be found below
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome

Last edited by dubbeh; 10-18-2007 at 04:49.
dubbeh is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 09-01-2007 , 11:19   Re: PSPad SourcePawn Syntax Highlighting
Reply With Quote #6

Oh mu God, dubbeh! Thank you! When I first downloaded his, I went through and added support for most functions, enums, defines, etc. Then I lost that file and didn't feel like doing it again
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
dubbeh
Senior Member
Join Date: Jul 2007
Old 10-18-2007 , 04:48   Re: PSPad SourcePawn Syntax Highlighting
Reply With Quote #7

Updated this to support the latest sourcemod ;)
Attached Files
File Type: ini SourcePawn.INI (24.2 KB, 463 views)
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 11-04-2007 , 05:34   Re: PSPad SourcePawn Syntax Highlighting
Reply With Quote #8

Grr

Crimson Editor anyone?
__________________

BigBaller is offline
raydan
Senior Member
Join Date: Aug 2006
Old 11-05-2007 , 05:52   Re: PSPad SourcePawn Syntax Highlighting
Reply With Quote #9

i need a EmEditor
raydan 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 18:39.


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