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.