- Copy pawn.properties and pawn.api to your SciTE installation directory,
e.g.
C:\wscite
. - Copy SciTEUser.properties to your home directory. On Windows it's usually
C:\Users\your_name
(optional). - Open SciTEGlobal.properties (Tools -> Open Global Options File) and add
import pawn
in the end. This will enable Pawn syntax highlighting for *.pwn and *.inc files. - Set
SAMP_SERVER_ROOT
environment variable to the full path to your server root folder, e.g.C:\samp-server
. On Windows this can be done via Control Panel -> System -> Advanced system settings -> Advanced -> Environment variables -> New... - Add
%SAMP_SERVER_ROOT%\pawno
to yourPATH
or edit pawn.properties and replacepawncc
with the full path to the compiler.
The following key bindings are available by default:
Ctrl + 1
- compile in Release mode (with-d0
)Ctrl + 2
- compile in Debug mode (with-d3
)Ctrl + 3
- preprocess only (-l
)Ctrl + 4
- write assembly code listing (-a
)Ctrl + 5
- disassemble .amx file (pawndisasm
must be present inPATH
)
You can change them or create your own by editing pawn.properties (go to menu -> Options -> Open pawn.properties).
On Linux file associations are not based on file extensions as opposed to Windows, so you might want to add a MIME type for Pawn files to associate them with SciTE.
To add a MIME type for Pawn scripts on Linux do the following:
- Copy linux/pawn.xml to /usr/share/mime/packages
- Run update-mime-database /usr/share/mime
- Restart your file manager (for nautilus it's
nautilus -q
)
-
*No syntax highlighting when editing .inc files
There's probably another language file imported that uses the same file extension. Try commenting out the
#import *
in SciTEGlobal.properties and adding these instead:import others import cpp