Skip to content

Instantly share code, notes, and snippets.

@raziEiL
Last active August 4, 2020 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raziEiL/03cdab8773ee36a600f7aec19edce53e to your computer and use it in GitHub Desktop.
Save raziEiL/03cdab8773ee36a600f7aec19edce53e to your computer and use it in GitHub Desktop.
Notepad++ | NppExec SourceMod Script and Console Highlight
1. Open Plugins > NppExec > Console Filters > Highlight (or default SHIFT+F6)
2. Add Highlight mask
%FILE%(%LINE%) : error *
Red: 99
Green: 00
Blue: 00
Check: B
%FILE%(%LINE%) : warning *
Red: 00
Green: 50
Blue: 99
Check: I
1. Open Plugins > NppExec > Execute...
2. Copy & paste code below and save (Don't forget to edit comp and scrds variables)
npp_console -
// SM Compiler Path
set comp = G:\srcds\Pawn\fresh\sm-1.10.0\addons\sourcemod\scripting
// SMX Output File Path
set srcds = D:\srcds\l4d2\left4dead2\addons\sourcemod\plugins
npp_save
npp_console +
"$(comp)\spcomp.exe" -D "$(CURRENT_DIRECTORY)" "$(FILE_NAME)"
npp_console -
if $(EXITCODE) == 0 then
if "$(CURRENT_DIRECTORY)" != "$(srcds)" then
set smx = "$(CURRENT_DIRECTORY)\$(NAME_PART).smx"
cmd /c copy $(smx) "$(srcds)"
cmd /c del $(smx)
endif
endif
npp_console +
echo Compiled to $(srcds)\$(NAME_PART).smx
@raziEiL
Copy link
Author

raziEiL commented Jul 19, 2020

Result
notepad++_xsgCod4dV0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment