PAWN for SA-MP in Sublime Text 3
11/2/2017, 11:05
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.
[size]
Features
Auto-completion
Some pre-made Color Schemes
Some pre-made shortcuts
[Trebuie sa fiti inscris si conectat pentru a vedea acest link]
Installing
Downloads
[Trebuie sa fiti inscris si conectat pentru a vedea acest link] - Download and Install the latest Sublime Text
[url=https://packagecontrol.io/Package Control.sublime-package]Click here[/url] - Download the Package Control file for sublime
Installing the syntax
[/size]
- Download and Install Sublime Text
- Download the Package Control file
- Paste the Package Control file into C:\Users\Your PC Username\AppData\Roaming\Sublime Text 3\Installed Packages
- Open Sublime Text 3 - or restart if already open
- Go to Preferences>Package Control and choose Install Package and wait until a new window pops up
- Search for pawn and click on Pawn Syntax, wait until it's installed
- You can now change the syntax to PAWN in the Lower right corner or View>Syntax>Pawn
[size]
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
[/size]
- Go to Tools>Build System>New Build System
- Replace the code with this code:
Code:
{
"cmd": ["pawncc.exe", "-i includes", "$file", "-;+"],
"path": "C:/path/to/pawno/folder"
} - 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 \.
- Save the file (remember the name) and close the tab
- Restart the program
- Set your build system: Tools>Build System>name you chose
- You can now press Ctrl+B to compile the the code.
[size]
Congratulations, you're done
Extra instructions
How can I change the compile button?
[/size]
- Go to Preferences>Key Bindings
- Search for build with Ctrl+F
- You can replace the current key with something new (e.g. F5)
You should see something like this:
Code:
{ "keys": ["ctrl+b"], "command": "build" }, - Save the file and restart Sublime Text 3
[size]
How can I change the color scheme?
[/size]
- Go to Preferences>Color Scheme
- Try out some color schemes. Not satisfied? Go to the next quesion...
[size]
How can I get new color schemes?
[/size]
- Go to Preferences>Package Control and choose Install Package
- You can search for color schemes between these packages
[size]
Indentation
[/size]
- 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.
[size]
More tips
[Trebuie sa fiti inscris si conectat pentru a vedea acest link][/size]
__________________
[size=32]Programming With Love[/size]
MY TUTORIALS
Quote:
[/size]
[Trebuie sa fiti inscris si conectat pentru a vedea acest link] |
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum