Compile plugins easily in Notepad++
This crap took me forever to figure out because I don't know much about the cmd nor spcomp but hopefully this will help you. I am switching to using Notepad++ because PawnStudio seems too outdated with the new syntax change.
First you need to install NppExec http://i.imgur.com/OvRkRCp.png It can be downloaded in this window, you just gotta look for it. http://imgur.com/N9wLIhw.png Press F6 after it's installed and you've restarted Notepad++, then this window should show up. http://imgur.com/Z2qfXvK.png Place this into the textbox, save the script, and now it should work to compile by hitting F6 every time you want to compile, and then OK. Ctrl + F6 will always execute the last script you did. So that is even faster. Code:
NPP_SAVE |
Re: Compile plugins easily in Notepad++
Off-topic but you might want to try out the new SPEdit program written by _AeonOne_.
Or maybe Atom :wink: |
Re: Compile plugins easily in Notepad++
This was already posted by some in the sourcemod highlighting threads, as well as other shortcuts (binding to keyboard, etc.). I've personally adapted the script to the following:
Code:
NPP_SAVE |
Re: Compile plugins easily in Notepad++
Thanks for sharing. I always knew I had to do something like that some day (I did a batch file to help but I never pushed further than you did).
Red |
Re: Compile plugins easily in Notepad++
My ultimate compiler script, compiles current .sp, .c, .cpp or .py file.
PHP Code:
|
Re: Compile plugins easily in Notepad++
Finally no more "YourPlugin.sp is already compiled."
|
Re: Compile plugins easily in Notepad++
I think Bacardi might have had a guide similar to this one somewhere in the SourcePawn Syntax Highlighting for Notepad++ thread. Wherever that thread went.
On a side note: NppExec "helpfully" rebound its help page to Ctrl-Shift-B during its most recent upgrade despite that being the hotkey for compiling in every major IDE everywhere. Which unbound my NppExec shortcut for doing SourcePawn compiling. THANKS NppExec DEVS! |
Re: Compile plugins easily in Notepad++
Quote:
Quote:
EDIT: Here is my modified script, tweaking it a little based on KissLick's code so that it compiles from any location. Code:
set COMPILER = C:\path_to_my_compiler\spcomp.exe
Spoiler
|
Re: Compile plugins easily in Notepad++
Seems a bit overly large, I just use this in NppExec and it will compile from everywhere and anywhere too, placing the .smx next to the .sp. I just hit Ctrl+Shift+C and done. Bind to whatever you want from the Plugin Commands section in Shortcut Mapper.
Code:
D:\Link\To\Your\spcomp.exe -D"$(CURRENT_DIRECTORY)" "$(FILE_NAME)" |
Re: Compile plugins easily in Notepad++
Quote:
|
| All times are GMT -4. The time now is 18:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.