Raised This Month: $ Target: $400
 0% 

PSPad SourcePawn Syntax Highlighting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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, 697 views)
__________________

Last edited by OneEyed; 05-13-2007 at 14:54.
OneEyed 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 21:48.


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