![]() |
|
PAWN for SA-MP in Notepad++ - Printable Version +- Las Venturas Playground (https://forum.sa-mp.nl) +-- Forum: Miscellaneous (https://forum.sa-mp.nl/forum-4.html) +--- Forum: Gaming (https://forum.sa-mp.nl/forum-27.html) +--- Thread: PAWN for SA-MP in Notepad++ (/thread-24902.html) |
PAWN for SA-MP in Notepad++ - Slice - 09-04-2010 Hey, I made my own Notepad++ language/API for SA-MP scripting, follow these steps and you can have it too! Here's an example on what it looks like: ![]() Screenshot! For those who aren't familiar with Notepad++, you can read about it & download here: http://notepad-plus-plus.org/ If you want Notepad++ to show every single word in the current document, you can select "Word completion". That might get annoying with large scripts, however. Syntax highlight To get the syntax highlight working, you will need to download my custom userDefineLang.xml then place it in your Notepad++ AppData folder (see below). Now, type in %appdata%\Notepad++ in your Explorer (or in Run). ![]() You should see a folder with a couple files (config.xml, contextMenu.xml, shortcuts.xml, stylers.xml). NOTE: If you have a file called userDefineLang.xml that you want to keep, you will have to merge those files manually. Copy the downloaded userDefineLang.xml to the folder you're in (it should look something like this). After that, you need to associate Notepad++ with PAWN files, see below. ![]() Additionally, you can put .inc there if you want to. Auto-complete You will need an API file for the auto-completion. Download PAWN.xml (right click -> save link/target) and put it in the "APIs" folder; this, however, is not located in your AppData. It's in the program's main folder. ![]() It should look somewhat like this: ![]() Ctrl + Space will pop up the auto-complete, and Ctrl + Shift + Space will show the function arguments. You can, however, make this happen automatically by changing your settings, see below: ![]() Click that and find this tab: ![]() If you want to see the auto-complete instantly, put "From the 1 th character". Compiling For this to work, you will need a plugin called NppExec. If you already have it, skip this step. ![]() If you don't have the Plugin Manager, download the latest copy of Notepad++. Check NppExec and click Install; restart Notepad++ when prompted to. ![]() Put this code in the window that pops up: Code: cd $(CURRENT_DIRECTORY)NOTE: Replace the path to match your PAWN compiler folder; also make sure you have an "include" folder in there with the latest SA-MP include files. ![]() ![]() Now it should try compiling whatever document you have open. If you see any output from the PAWN compiler, then it's looking good so far. ![]() Optionally, check this to slim down the output in the command window. Now you will probably want to assign a hotkey to the compile script. Open up the NppExec settings. ![]() Select "PAWN Compiler" from the list, click "Add/Modify", then click "OK". ![]() Restart Notepad++. Open up the shortcut mapper. ![]() Find "PAWN Compiler" under "Plugin commands"; double click it. ![]() Select a suitable key (combination) then click "OK" and click "Close" on the shortcut mapper. Re: PAWN for SA-MP in Notepad++ - [SWK]Dacads - 09-04-2010 lol nice, your pro scripter. This too hard for me
Re: PAWN for SA-MP in Notepad++ - Chillosophy - 09-04-2010 Cool! although DracoBlue did that years ago Re: PAWN for SA-MP in Notepad++ - Slice - 09-04-2010 (09-04-2010, 04:13 PM)Chillosophy link Wrote: Cool! although DracoBlue did that years agoThat works only for Notepad++ versions released years ago (with old SA-MP includes), and it doesn't show function arguments! Re: PAWN for SA-MP in Notepad++ - Chillosophy - 09-04-2010 (09-04-2010, 04:27 PM)Slice link Wrote: That works only for Notepad++ versions released years ago (with old SA-MP includes), and it doesn't show function arguments! Aight Keep up the good work then!
Re: PAWN for SA-MP in Notepad++ - HoldeN - 09-04-2010 u sooo pro Nice man
Re: PAWN for SA-MP in Notepad++ - LasTRace - 09-04-2010 Really amazing, awesome!
Re: PAWN for SA-MP in Notepad++ - Kase - 09-05-2010 I needed something like this. Amazing work! Re: PAWN for SA-MP in Notepad++ - Strika - 09-05-2010 Nice but Lua > Pawno Re: PAWN for SA-MP in Notepad++ - Matthias - 09-05-2010 How can you compare a scripting language with an editor? |