[Tutorial] PAWN for SA-MP in Sublime Text 3
#1

PAWN for SA-MP in Sublime Text 3


About

Sublime Text 3 is a highly customizable Text-editor with a lot of cool features, that you don't get using the standard Pawno-editor or Notepad++. I know there are already a bunch of tutorials about this, but they don't explain how to install packages very well, which can be confusing for beginners and I added some instructions on using the program.
  • You can fully customize the editor to something you feel comfortable with.
  • Writing code is faster because of the auto-completion and a smart auto-correction.
  • Your code will look a lot cleaner with the neat indentation it offers.
  • A lot of useful (customizable) Keyboard Shortcuts to write code more easily.
  • It also works for a lot of other languages, so it can be used as your primary text editor.
  • Sublime Text is available for Windows, OS X and and Linux.
Features

Auto-completion






Some pre-made Color Schemes








Some pre-made shortcuts

http://docs.sublimetext.info/en/late...tcuts_win.html



Installing

Downloads
Click here - Download and Install the latest Sublime Text
Click here - Download the Package Control file for sublime


Installing the syntax
  1. Download and Install Sublime Text
  2. Download the Package Control file
  3. Paste the Package Control file into C:\Users\Your PC Username\AppData\Roaming\Sublime Text 3\Installed Packages
  4. Open Sublime Text 3 - or restart if already open
  5. Go to Preferences>Package Control and choose Install Package and wait until a new window pops up
  6. Search for pawn and click on Pawn Syntax, wait until it's installed
  7. You can now change the syntax to PAWN in the Lower right corner or View>Syntax>Pawn
You can now start writing SendClientMessage to see if the auto-completion works. If it doesn't you didn't complete these steps successfully.

Installing the compiler
  1. Go to Tools>Build System>New Build System
  2. Replace the code with this code:
    Code:
    {
    	"cmd": ["pawncc.exe", "-i includes", "$file", "-;+"],
    	"path": "C:/path/to/pawno/folder"
    }
  3. You have to change the path to the folder containing pawncc.exe (e.g. "C:/Users/Name/Desktop/MyServer/pawno"), make sure the slashes from your path are / and not \.
  4. Save the file (remember the name) and close the tab
  5. Restart the program
  6. Set your build system: Tools>Build System>name you chose
  7. You can now press Ctrl+B to compile the the code.
Congratulations, you're done



Extra instructions

How can I change the compile button?
  1. Go to Preferences>Key Bindings
  2. Search for build with Ctrl+F
  3. You can replace the current key with something new (e.g. F5)
    You should see something like this:
    Code:
    { "keys": ["ctrl+b"], "command": "build" },
  4. Save the file and restart Sublime Text 3

How can I change the color scheme?
  1. Go to Preferences>Color Scheme
  2. Try out some color schemes. Not satisfied? Go to the next quesion...
How can I get new color schemes?
  1. Go to Preferences>Package Control and choose Install Package
  2. You can search for color schemes between these packages
Indentation
  • Go to View>Indentation
    I recommend Tab Width 4
  • You can adjust the indentation by selecting the line(s) and pressing Ctrl+[ and Ctrl+].
    Or with the Tab button.

More tips

11 Sublime Text Tips for Productivity and a Faster Workflow
Reply


Messages In This Thread
PAWN for SA-MP in Sublime Text 3 - by PeanutButter - 14.01.2017, 21:58
Re: PAWN for SA-MP in Sublime Text 3 - by Eoussama - 14.01.2017, 22:06
Re: PAWN for SA-MP in Sublime Text 3 - by princejeet1510 - 15.01.2017, 03:39
Respuesta: PAWN for SA-MP in Sublime Text 3 - by Eloy - 16.01.2017, 01:56
Re: PAWN for SA-MP in Sublime Text 3 - by View - 16.01.2017, 10:40
Re: PAWN for SA-MP in Sublime Text 3 - by PeanutButter - 16.01.2017, 15:42
Re: PAWN for SA-MP in Sublime Text 3 - by PeanutButter - 16.01.2017, 17:00
Re: PAWN for SA-MP in Sublime Text 3 - by View - 16.01.2017, 18:23
Re: PAWN for SA-MP in Sublime Text 3 - by Dayrion - 17.01.2017, 21:14
Re: PAWN for SA-MP in Sublime Text 3 - by Yaa - 17.01.2017, 21:38
Re: PAWN for SA-MP in Sublime Text 3 - by renatog - 30.01.2017, 14:12
Re: PAWN for SA-MP in Sublime Text 3 - by AndreiWow - 30.01.2017, 21:48
Re: PAWN for SA-MP in Sublime Text 3 - by justice96 - 31.01.2017, 04:16
Re: PAWN for SA-MP in Sublime Text 3 - by oMa37 - 31.01.2017, 04:42
Re: PAWN for SA-MP in Sublime Text 3 - by Oxygenated - 31.01.2017, 10:26
Re: PAWN for SA-MP in Sublime Text 3 - by PeanutButter - 31.01.2017, 10:32
Re: PAWN for SA-MP in Sublime Text 3 - by Oxygenated - 01.02.2017, 13:07
Re: PAWN for SA-MP in Sublime Text 3 - by PeanutButter - 01.02.2017, 15:39
Re: PAWN for SA-MP in Sublime Text 3 - by Dayrion - 02.02.2017, 09:35
Re: PAWN for SA-MP in Sublime Text 3 - by renatog - 02.02.2017, 13:06
Re: PAWN for SA-MP in Sublime Text 3 - by Rassh - 03.02.2017, 13:11
Re: PAWN for SA-MP in Sublime Text 3 - by Logic_ - 04.02.2017, 05:34
Re: PAWN for SA-MP in Sublime Text 3 - by Oxygenated - 06.02.2017, 05:05
Re: PAWN for SA-MP in Sublime Text 3 - by BlackbirdXd - 10.02.2017, 09:51
Re: PAWN for SA-MP in Sublime Text 3 - by thaKing - 11.02.2017, 08:28
Re: PAWN for SA-MP in Sublime Text 3 - by muzammilfreeman - 16.02.2017, 13:41
Re: PAWN for SA-MP in Sublime Text 3 - by Hansrutger - 18.02.2017, 13:50
Re: PAWN for SA-MP in Sublime Text 3 - by CezarBR - 18.02.2017, 14:27
Re: PAWN for SA-MP in Sublime Text 3 - by Dayrion - 18.02.2017, 17:44
Re: PAWN for SA-MP in Sublime Text 3 - by MustafaKemalAtaturk - 07.05.2017, 17:20
Re: PAWN for SA-MP in Sublime Text 3 - by Stones - 07.05.2017, 17:52
Re: PAWN for SA-MP in Sublime Text 3 - by MustafaKemalAtaturk - 07.05.2017, 17:53
Re: PAWN for SA-MP in Sublime Text 3 - by Kane - 08.05.2017, 10:00
Re: PAWN for SA-MP in Sublime Text 3 - by Stones - 09.05.2017, 07:26
Re: PAWN for SA-MP in Sublime Text 3 - by [G]am3r - 30.05.2017, 06:48
Re: PAWN for SA-MP in Sublime Text 3 - by Kane - 02.06.2017, 05:02
Re: PAWN for SA-MP in Sublime Text 3 - by Wary - 06.06.2017, 18:25
Re: PAWN for SA-MP in Sublime Text 3 - by DeStRoY232 - 23.08.2017, 13:27
Re: PAWN for SA-MP in Sublime Text 3 - by Misiur - 23.08.2017, 13:43
Re: PAWN for SA-MP in Sublime Text 3 - by DeStRoY232 - 23.08.2017, 13:45
Re: PAWN for SA-MP in Sublime Text 3 - by DeStRoY232 - 24.08.2017, 09:05
Re: PAWN for SA-MP in Sublime Text 3 - by Logic_ - 26.08.2017, 18:44
Re: PAWN for SA-MP in Sublime Text 3 - by Misiur - 26.08.2017, 19:12
Re: PAWN for SA-MP in Sublime Text 3 - by DeStRoY232 - 26.08.2017, 21:09
Re: PAWN for SA-MP in Sublime Text 3 - by Misiur - 26.08.2017, 21:19
Re: PAWN for SA-MP in Sublime Text 3 - by Logic_ - 27.08.2017, 08:38
Re: PAWN for SA-MP in Sublime Text 3 - by Misiur - 27.08.2017, 09:13
Re: PAWN for SA-MP in Sublime Text 3 - by Logic_ - 28.08.2017, 20:00
Re: PAWN for SA-MP in Sublime Text 3 - by kAn3 - 02.09.2017, 13:43
Re: PAWN for SA-MP in Sublime Text 3 - by RedGun2015 - 02.09.2017, 20:10
Re: PAWN for SA-MP in Sublime Text 3 - by Misiur - 02.09.2017, 20:45
Re: PAWN for SA-MP in Sublime Text 3 - by RedGun2015 - 02.09.2017, 21:19
Re: PAWN for SA-MP in Sublime Text 3 - by 5740 - 06.09.2017, 13:35
Re: PAWN for SA-MP in Sublime Text 3 - by DeStRoY232 - 13.09.2017, 13:45
Re: PAWN for SA-MP in Sublime Text 3 - by Oxygenated - 13.09.2017, 15:50
Re: PAWN for SA-MP in Sublime Text 3 - by cengiz6155 - 13.09.2017, 20:06
Re: PAWN for SA-MP in Sublime Text 3 - by n00blek - 10.11.2017, 20:07
Re: PAWN for SA-MP in Sublime Text 3 - by cuber - 10.11.2017, 20:12
Re: PAWN for SA-MP in Sublime Text 3 - by billy1337samp - 10.11.2017, 20:12
Re: PAWN for SA-MP in Sublime Text 3 - by n00blek - 11.11.2017, 11:44
Re: PAWN for SA-MP in Sublime Text 3 - by n00blek - 19.11.2017, 09:53
Re: PAWN for SA-MP in Sublime Text 3 - by n00blek - 13.12.2017, 16:14
Re: PAWN for SA-MP in Sublime Text 3 - by Saddin - 29.01.2018, 09:50
Re: PAWN for SA-MP in Sublime Text 3 - by Shomy1995 - 01.02.2018, 14:29
Re: PAWN for SA-MP in Sublime Text 3 - by Revazix - 05.02.2018, 19:54
Re: PAWN for SA-MP in Sublime Text 3 - by Misiur - 05.02.2018, 20:26
Re: PAWN for SA-MP in Sublime Text 3 - by GospodinX - 02.12.2018, 11:28
Re: PAWN for SA-MP in Sublime Text 3 - by Bif - 02.04.2019, 07:58

Forum Jump:


Users browsing this thread: 4 Guest(s)